-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requestservices.rsMiddleware & data management written in rustMiddleware & data management written in rust
Description
Simplify data model
Description
This change set simplifies the flow of data so that we deal with two main abstractions:
deviceswhich may hold arbitrary sensor reading data: temp, humidity, or PHareasto which devices are attached
Sensor readings flow onto devices, and the devices being linked to individual areas drives the display in the LED status helper, and in the web app.
The introduction of the DHT11 sensor in #89 was done in a sloppy manner, introducing a dichotomy between "tanks" and "areas". "Tanks" are no longer tracked, they're just called "areas".
"Sensors" in Redis are renamed to "devices". This ends the distinction between a PH sensor, a temp sensor, or a DHT11 sensor. Every sensor reading simply attaches to a single Redis device record, so matter how many individual sensors are wired up to that device.
Components altered
- sensor_tracker
- redis_aggregator
- pond
- led_status_helper
- frontend
- ph_ref_calibration (be careful with the redis values!)
Testing strat
- Use a testing namespace!
- Pi: use images tagged as
:fix_dataon the build server 🔬
Branch info
We are working in the fix/data branch
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestservices.rsMiddleware & data management written in rustMiddleware & data management written in rust