Skip to content

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.

License

Notifications You must be signed in to change notification settings

nikilase/new_sensor_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

new_sensor_api

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.

Startup

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.

Python Virtual Environment

Create a Virtual Environment

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

Run in Virtual Environment

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published