Skip to main content

Sensor servers for Telecom Box

Project description

Sensor API for the Raspberry Pi


Install the required software:

sudo apt update
sudo apt install libatlas-base-dev libopenjp2-7-dev gunicorn3


gunicorn --bind= heiafr.hydrocontest.sensor_api:app

or start using sysdemd (e.g. hydro-sensors.service):

Description=Hydrocontest Sensors server

ExecStart=gunicorn --bind= heiafr.hydrocontest.sensor_api:app


Nginx Configuration

location /sensors {
    proxy_set_header    Host $host;
    proxy_set_header    X-Real-IP $remote_addr;
    proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header    X-Forwarded-Proto $scheme;
    proxy_pass          http://localhost:8081/;
    proxy_read_timeout  90;

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for heiafr-hydrocontest-sensor_api, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size heiafr-hydrocontest-sensor_api-1.0.4.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page