Skip to content

sellist/zeropi-sensorhat-html-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published