You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small client to send sensor data as a JSON provided by a Environment Sensor HAT connected to a Raspberry Pi Zero W to a designated URI.
Needed env variables:
- 'BASE_URL' - base url of the server to post to
- 'INTERVAL' - interval in seconds between each post
- 'SENSOR_ID' - name of the sensor to include in http post
Needed dependencies:
- python3-smbus
- python3-pil
- i2c-tools
- python3-pip
Config:
- Either placing the args in the .env, setting them as env variables, or passing them as args will work. Order of precedence is 1. program arguments, 2. system variables, 3. .env file.
To run:
Download package, set needed env variables, run run.sh on first run or update, or run main.py in a new process