jlab-sensing / DirtViz

DirtViz is a project to visualize data collected from sensors deployed in sensor networks.
https://dirtviz.jlab.ucsc.edu/
MIT License
4 stars 8 forks source link

Add API endpoint for handling serialized data from new Soil Power Sensor #145

Closed jmadden173 closed 1 month ago

jmadden173 commented 7 months ago

Waiting for https://github.com/jlab-sensing/soil-power-sensor-firmware/pull/24 to be merged. The jist is that there's a python package that you can add to the requirements with encode and decode functions for the measurement and response. The measurement will be decoded and the response will be encoded and sent back to the device giving it the OK to clear the most recent measurement.

Link to TestPyPI for package until it is actually published: https://test.pypi.org/project/soil-power-sensor-protobuf/

aaron-wu1 commented 6 months ago

TODO: still need to test the endpoints.

rl_endpoint: https://dirtviz.jlab.ucsc.edu/api/power-proto/
teros_endpoint: https://dirtviz.jlab.ucsc.edu/api/teros-proto/
sensor_endpoint: https://dirtviz.jlab.ucsc.edu/api/sensor/
jmadden173 commented 1 month ago

Closing this issue as it looks like it's been implemented and tested. The leaf wetness deployment is running fairly smoothly.