Sensor
Created by: cschloer
A view for creating and editing sensor data on the dashboard
- Top level parent sensor with Senseware, Awair and Other
- 3 node types for senseware: Boiler, Apartment and Repeater
- Forms specific to each node
- Can create as many sensors/nodes as you want
- Apartment node has 3 inputs (node_wall_type, node_location and tenant_heating_issue) that are dropdown menus with an Other option that supports free text input
- Notes for all sensors/nodes
- Display name that is generated from the form inputs (different for each sensor/node type) + easy copy of the text
- Forms are all auto-saving and offline aware
- Yellow object title bar when an object has not saved yet (saving occurs once every second)
- Red object title bar when an error occurs while saving (with error text at the top)
- Green success message at top of screen on successful save/create
- Yellow message at top of screen when offline notifies the user how long it has been since the data has been saved
- Text next to object title notifies the user if an object was created offline
Relies on OLTP update and new iotservice https://github.com/Blocp/oltp/pull/46 https://github.com/Blocp/iotservice/pull/1
The only new .env variable is the URL for iotservice:
REACT_APP_IOT_SERVICE=http://0.0.0.0:5408