-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
- Test and verify each of below expected behaviours
- Document how this works, probably on the wiki
Expected behaviour:
- the app shows to the user when it can't setup the MQTT connection to the Venus-device, and when it loses the connection.
- the app shows two dashes,
--, in case data is not available - when a device disappears (one of the extra batteries goes away for example); all is fine: either show dashes, or just hide the boxes: to signal the user that something has been disconnected is a different issue; not to be solved here.
- the app shows two dashes, when data becomes stale. Data can become stale in two ways:
- a service leaves the D-Bus; a
NameOwnerChangedsignal is sent on D-Bus - the service remains, but a value is invalidated, a
PropertiesChangedsignal is sent on D-Bus, containing DBUS-INVALID.
- a service leaves the D-Bus; a
Note that above item needs to be tested for data retrieved via the .system service; for which in all cases it will be the PropertiesChanged signal thats sent out. And it needs to be tested for data retrieved directly from other services, for example battery data from .battery services (2nd and 3rd battery service).
Signalling to the user, in a notification for example, that a device has been disconnected, is out of scope. Business logic for that needs to made on Venus; which then generates notifications, just like other alarms such as over voltage; and all the HTML5-app needs to do is show those notifications.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels