[x] Create API for direct POST request with binary data
[x] Update with the correct units
[x] Remove data aggregation
Changes (running list)
Removed chirpstack-api package
Removed get request from protobuf endpoints
Created direct API at /sensor/
Created TTN webhook at /ttn/
Create util.py to handle similar processing of two endpoints
Deleted old protobuf and sensor endpoints
Moved migrate.sh to backend/migrate.sh
Updated endpoint.sh development to host on all address. Otherwise inaccessible outside of docker container.
sensor_data*.py endpoints now return correct response codes and binary messages
Deleted getters.py (seemed unused)
Updated backend entrypoint to flask to expose on all interface (to work within docker)
Removed data aggregation, left the stream argument in as it shouldn't effect anything
Updated units to expect units in db to be mV for voltage and uA for current. This may cause the current plots to show weird number, but this is what we were going to do on the device moving forward. (Sorry I feel like we've changed this a lot)
I was able to upload binary data and JSON data to the end point and could view it on my local browser. I will send binary data over slack as it has some EUIs that I want to keep secret.
TODO
soil-power-sensor-protobuf
packageChanges (running list)
chirpstack-api
package/sensor/
/ttn/
util.py
to handle similar processing of two endpointsmigrate.sh
tobackend/migrate.sh
endpoint.sh
development to host on all address. Otherwise inaccessible outside of docker container.sensor_data*.py
endpoints now return correct response codes and binary messagesgetters.py
(seemed unused)stream
argument in as it shouldn't effect anythingmV
for voltage anduA
for current. This may cause the current plots to show weird number, but this is what we were going to do on the device moving forward. (Sorry I feel like we've changed this a lot)I was able to upload binary data and JSON data to the end point and could view it on my local browser. I will send binary data over slack as it has some EUIs that I want to keep secret.