|
|
@@ -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 |
|
|
|