You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
9 months ago | |
---|---|---|
.vscode | 3 years ago | |
collector | 9 months ago | |
sensors | 3 years ago | |
.coveragerc | 4 years ago | |
.envrc | 9 months ago | |
.gitignore | 9 months ago | |
LICENSE | 4 years ago | |
Makefile | 9 months ago | |
README.md | 4 years ago | |
collector.sh | 9 months ago | |
flake.lock | 9 months ago | |
flake.nix | 9 months ago | |
manage.py | 3 years ago | |
pytest.ini | 4 years ago | |
requirements.txt | 9 months ago | |
run.sh | 9 months ago |
README.md
environment_sensors
A project to read temperature, humidity and pressure from a Raspberry Pi Sense Hat and display the corresponding graphs on a simple website.
Installation
Make sure that you have the following libraries installed on your system.
python-cairo pygobject
On Arch Linux you can do this with:
sudo pacman -S python-cairo python-gobject
Running
Afterwards you can run the application with:
make
Development and Testing
If you want to create a development environment simply run:
make test
This will create a virtual environment which includes some useful dependencies for development including the SenseHat emulator. In addition it will run all tests. If all tests finish correctly you know that the environment is setup correctly.