Browse Source

wrap lines, and add text talking about points before/after range

main
John-Mark Gurney 4 years ago
parent
commit
317306caab
1 changed files with 13 additions and 7 deletions
  1. +13
    -7
      NOTES.md

+ 13
- 7
NOTES.md View File

@@ -73,20 +73,26 @@ Messages from the websocket:
id description
c Consumption -- current power consumed
Sent for each update. units kW.
ng Net Grid -- What the current power draw is from the grid (negative when sending power).
ng Net Grid -- What the current power draw is from the grid
(negative when sending power).
Sent for each update. units kW.
p Solar production -- 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

win The graph has set a window size. The two arguments are start and end. If this is the
first time, NaN will be sent for both, which means to send all data.
win The graph has set a window size. The two arguments are start
and end. If this is the first time, NaN will be sent for both,
which means to send all data.

windata Data in response to a window command. The format is an object w/ the keys, production,
grid and consumption. Each will be a list of data points. Each point is a pair of
timestamp in miliseconds and the value for the point.
windata Data in response to a window command. The format is an object
w/ the keys, production, grid and consumption. Each will be a
list of data points. Each point is a pair of timestamp in
miliseconds and the value for the point. It should include a
point just before and just after the time range so that lines
off the graph are rendered properly.

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


Loading…
Cancel
Save