Moved migrate.sh to the backend folder and added it to the dev docker image. This was so that I could migrate without having to set up env vars. I just docker compose exec to access it. Can change back if needed.
Fixed foreign key in data model. It was set to cell.id rather than sensor.id
Merge all sensor endpoints to /sensor/. This handles both GET and POST for current methods of uploading.
Added check for f_port from a TTN message to prevent unhandled exceptions
Pinned python package soil-power-sensor-protobuf to a specific test version until code gets merged in firmware repo
Added name field to frontend queries
Notes:
We don't know what the leafWetness measurement will be. The units is currently ? This is a placeholder once future information is known. Currently its set to display the raw voltage value.
Example Phytos31 measurement posted to /api/sensor/
Changes:
migrate.sh
to the backend folder and added it to the dev docker image. This was so that I could migrate without having to set up env vars. I justdocker compose exec
to access it. Can change back if needed.data
model. It was set tocell.id
rather thansensor.id
/sensor/
. This handles bothGET
andPOST
for current methods of uploading.f_port
from a TTN message to prevent unhandled exceptionssoil-power-sensor-protobuf
to a specific test version until code gets merged in firmware reponame
field to frontend queriesNotes:
leafWetness
measurement will be. The units is currently?
This is a placeholder once future information is known. Currently its set to display the raw voltage value.Example Phytos31 measurement posted to
/api/sensor/
Closes #214