Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/cfoos/Powerwall-Dashboard i…
Browse files Browse the repository at this point in the history
…nto pr/525
  • Loading branch information
jasonacox committed Sep 28, 2024
2 parents 5ea679a + b2c49a4 commit 4064e00
Show file tree
Hide file tree
Showing 20 changed files with 1,469 additions and 33,567 deletions.
1 change: 1 addition & 0 deletions influxdb/influxdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ CREATE CONTINUOUS QUERY cq_strings7 ON powerwall BEGIN SELECT mean(E2_Current) A
CREATE CONTINUOUS QUERY cq_strings8 ON powerwall BEGIN SELECT mean(E3_Current) AS E3_Current, mean(E3_Power) AS E3_Power, mean(E3_Voltage) AS E3_Voltage, mean(F3_Current) AS F3_Current, mean(F3_Power) AS F3_Power, mean(F3_Voltage) AS F3_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT E3_Current, E3_Power, E3_Voltage, F3_Current, F3_Power, F3_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
CREATE CONTINUOUS QUERY cq_strings9 ON powerwall BEGIN SELECT mean(E4_Current) AS E4_Current, mean(E4_Power) AS E4_Power, mean(E4_Voltage) AS E4_Voltage, mean(F4_Current) AS F4_Current, mean(F4_Power) AS F4_Power, mean(F4_Voltage) AS F4_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT E4_Current, E4_Power, E4_Voltage, F4_Current, F4_Power, F4_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
CREATE CONTINUOUS QUERY cq_strings10 ON powerwall BEGIN SELECT mean(E5_Current) AS E5_Current, mean(E5_Power) AS E5_Power, mean(E5_Voltage) AS E5_Voltage, mean(F5_Current) AS F5_Current, mean(F5_Power) AS F5_Power, mean(F5_Voltage) AS F5_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT E5_Current, E5_Power, E5_Voltage, F5_Current, F5_Power, F5_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
CREATE CONTINUOUS QUERY cq_strings11 ON powerwall BEGIN SELECT mean(E_Current) AS E_Current, mean(E_Power) AS E_Power, mean(E_Voltage) AS E_Voltage, mean(F_Current) AS F_Current, mean(F_Power) AS F_Power, mean(F_Voltage) AS F_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT E_Current, E_Power, E_Voltage, F_Current, F_Power, F_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
CREATE CONTINUOUS QUERY cq_inverters ON powerwall BEGIN SELECT mean(Inverter1) AS Inverter1, mean(Inverter2) AS Inverter2, mean(Inverter3) AS Inverter3, mean(Inverter4) AS Inverter4 INTO powerwall.strings.:MEASUREMENT FROM (SELECT A_Power+B_Power+C_Power+D_Power+E_Power+F_Power AS Inverter1, A1_Power+B1_Power+C1_Power+D1_Power+E1_Power+F1_Power AS Inverter2, A2_Power+B2_Power+C2_Power+D2_Power+E2_Power+F2_Power AS Inverter3, A3_Power+B3_Power+C3_Power+D3_Power+E3_Power+F3_Power AS Inverter4 FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
CREATE CONTINUOUS QUERY cq_inverters1 ON powerwall BEGIN SELECT mean(Inverter5) AS Inverter5, mean(Inverter6) AS Inverter6 INTO powerwall.strings.:MEASUREMENT FROM (SELECT A4_Power+B4_Power+C4_Power+D4_Power+E4_Power+F4_Power AS Inverter5, A5_Power+B5_Power+C5_Power+D5_Power+E5_Power+F5_Power AS Inverter6 FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
CREATE CONTINUOUS QUERY cq_vitals1 ON powerwall BEGIN SELECT mean(PW1_PINV_Fout) AS PW1_PINV_Fout, mean(PW2_PINV_Fout) AS PW2_PINV_Fout, mean(PW3_PINV_Fout) AS PW3_PINV_Fout, mean(PW4_PINV_Fout) AS PW4_PINV_Fout, mean(PW5_PINV_Fout) AS PW5_PINV_Fout, mean(PW6_PINV_Fout) AS PW6_PINV_Fout INTO powerwall.vitals.:MEASUREMENT FROM (SELECT PW1_PINV_Fout, PW2_PINV_Fout, PW3_PINV_Fout, PW4_PINV_Fout, PW5_PINV_Fout, PW6_PINV_Fout FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
Expand Down
Loading

0 comments on commit 4064e00

Please sign in to comment.