overthesun / simoc-sam

Live backend for SAM at Biosphere 2
2 stars 1 forks source link

Sensor Manager #38

Closed granawkins closed 1 year ago

granawkins commented 1 year ago

This implements the sensor manager class, which will run on all devices with connected sensors (i.e. Mac Mini and Raspberry Pi's).

It also implements a 'refresh' route on sioserver which will automatically check for and activate all connected sensors on devices with the sensor manager class running.

To test: 1) Start the server as usual, with python simoc-sam.py run-server 2) In a separate terminal, activate the virtual environment 3) Start sensor-manager with python -m simoc_sam.sensor_manager 4) At this point any connected sensors should begin broadcasting readings to the server.

Timeline moving forward: