This is a small API for receiving sensor data from https://sensor.community/ (formerly https://luftdaten.info/) sensor
nodes and saving it in an Influx (version 1) Time Series Database.
Also includes a little html based website for showing the current data of one sensor.
To start the app, just run:
python3.11 server.py
Be aware that you should start the program in the root directory of the project.
Only tested with python 3.11 but should also work with python 3.10 or above.
Needs python 3.10 at minimum due to usage of match case
functionality.
To create a Virtual Environment execute
python3.11 -m venv {venv_directory}
in the root directory of the project.
Then activate it by using
source {venv_directory}/bin/activate
Install requirements in activated Virtual Environment by using
pip install -r requirements.txt
Deactivate Virtual Environment with command
deactivate
In the root directory of the program activate the Virtual Environment
source {venv_directory}/bin/activate
Then just execute like above using
python3.11 server.py