overthesun / simoc-sam

Back-end system to support SIMOC Live air quality monitor sensor array as used at the SAM Mars habitat analog.
https://samb2.space/
2 stars 1 forks source link

Sensor Manager #38

Closed granawkins closed 2 years ago

granawkins commented 2 years 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: