Browse Source

add quit message and other minor updates

main
John-Mark Gurney 5 years ago
parent
commit
a4d80bd332
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      NOTES.md

+ 8
- 1
NOTES.md View File

@@ -40,6 +40,10 @@ to add/remove the end null point and add points as they dynamically arrive
WebSocket Definition
--------------------

Messages to the websocket:
<id>
q Quit

Messages from the websocket:
<id> <args>

@@ -48,11 +52,14 @@ Messages from the websocket:
Sent for each update. units kW.
ng Net Grid -- What the current power draw is from the grid (negative when sending power).
Sent for each update. units kW.
p Solar product -- current power produced by the solar panels in aggregate.
p Solar production -- current power produced by the solar panels in aggregate.
Sent for each update. units kW.

ov overview of data, contains gird, production and consumption data.
following is JSON object

One the first connection, the following messages/data will be sent:
c, ng, p, ov

The following will be sent as they are updated:
c, ng, p

Loading…
Cancel
Save