Skip to content

Document and verify out of date data #49

@mpvader

Description

@mpvader
  • 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 NameOwnerChanged signal is sent on D-Bus
    • the service remains, but a value is invalidated, a PropertiesChanged signal is sent on D-Bus, containing DBUS-INVALID.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions