| @@ -40,6 +40,10 @@ to add/remove the end null point and add points as they dynamically arrive | |||||
| WebSocket Definition | WebSocket Definition | ||||
| -------------------- | -------------------- | ||||
| Messages to the websocket: | |||||
| <id> | |||||
| q Quit | |||||
| Messages from the websocket: | Messages from the websocket: | ||||
| <id> <args> | <id> <args> | ||||
| @@ -48,11 +52,14 @@ Messages from the websocket: | |||||
| Sent for each update. units kW. | 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. | 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. | Sent for each update. units kW. | ||||
| ov overview of data, contains gird, production and consumption data. | ov overview of data, contains gird, production and consumption data. | ||||
| following is JSON object | following is JSON object | ||||
| One the first connection, the following messages/data will be sent: | 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 | c, ng, p | ||||