Project to add a raspberry pi zero to a Bekant desk.
sudo crontab -e Add the line. @reboot sudo python3 /route/to/script
Save and reboot to test if it's working.
sudo nano /boot/config.txt dtparam=i2c_baudrate=1000000
In case of a dietpi put 1000Khz on i2c settings.
pip3 install adafruit-circuitpython-ssd1306 pip3 install adafruit-circuitpython-si7021
- pip3 install adafruit-circuitpython-bme280
- pip3 install adafruit-circuitpython-bmp280
- pip3 install adafruit-circuitpython-ahtx0 pip3 install requests
sudo apt install i2c-tools python3-pil python3-numpy python3-gpiozero mosquitto-clients
Script to control the two lights the desk has, sends commands through MQTT to the Mosquitto broker and the Tasmotas power toggle the lights.
Adafruit script to control the bmp280 sensor for temp and pressure.
Script to control the si7021 sensor, for temp and humidity
Adafruit script to control the temp and humidity, not working properly, investigate.
Script to control the vl53l0x ToF sensor, for distance.
Adafruit script to control the monochromatic OLED of 128x64 lines.
Open Weather Map script that using the OWM API retrieves the meteo data for the given city ID.