From a4d80bd332f76a1099291ca778bc633b734cc1bf Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sun, 19 Jan 2020 23:21:31 -0800 Subject: [PATCH] add quit message and other minor updates --- NOTES.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NOTES.md b/NOTES.md index 7dcf2cf..3a588a8 100644 --- a/NOTES.md +++ b/NOTES.md @@ -40,6 +40,10 @@ to add/remove the end null point and add points as they dynamically arrive WebSocket Definition -------------------- +Messages to the websocket: + + q Quit + Messages from the websocket: @@ -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