Update README.md
This commit is contained in:
69
README.md
69
README.md
@@ -1,5 +1,6 @@
|
|||||||
based on: https://github.com/mkfam7/solaxx3
|
based on: https://github.com/mkfam7/solaxx3
|
||||||
|
|
||||||
|
# Registers
|
||||||
| available register| value|
|
| available register| value|
|
||||||
|------|------|
|
|------|------|
|
||||||
|grid_voltage | 238.5|
|
|grid_voltage | 238.5|
|
||||||
@@ -164,3 +165,71 @@ based on: https://github.com/mkfam7/solaxx3
|
|||||||
|user_password| 0.0|
|
|user_password| 0.0|
|
||||||
|advanced_password| 2014.0|
|
|advanced_password| 2014.0|
|
||||||
|machine_type| 3.0|
|
|machine_type| 3.0|
|
||||||
|
|
||||||
|
# DB SQL Queris
|
||||||
|
```
|
||||||
|
"select grid_voltage_r, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"R-Grid",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select inverter_status, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"Inverter Status",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select total_yield as self_use,uploadDate as `time`\nFROM solax.solax_daily\nWHERE $__timeFilter(uploadDate)\n",
|
||||||
|
"Total Daily Yield",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select (total_yield-feed_in) as self_use,uploadDate as `time`\nFROM solax.solax_daily\nWHERE $__timeFilter(uploadDate)\n",
|
||||||
|
"Self Use",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select battery_capacity as \"Available\" , uploadTime as `time`\nfrom solax.solax_local \norder by uploadTime desc\nlimit 1\n",
|
||||||
|
"Battery",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select dc_s"olar_power, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"SOLAR PANELS",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select feed_in_power, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"GRID",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select grid_voltage_s, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"S-Grid",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select time_count_down, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"Count Down",
|
||||||
|
================================================================================================================================================
|
||||||
|
"SELECT \tfeed_in as feedinenergy, uploadDate as `time`\nFROM solax.solax_daily\nWHERE $__timeFilter(uploadDate)\n;",
|
||||||
|
"Daily FeedIn",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select (inverter_ac_power-feed_in_power) as Consumption, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"Consumption",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select battery_power, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"Battery",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select grid_voltage_t, uploadTime as `time`\nfrom solax.solax_local\nwhere uploadTime > now(3) - INTERVAL 2 MINUTE\norder by uploadTime desc\nlimit 1\n;\n",
|
||||||
|
"T-Grid",
|
||||||
|
================================================================================================================================================
|
||||||
|
"SELECT \t(max(consumeenergy) - min(consumeenergy)) as consumeenergy, uploadTime as `time`\nFROM solax.solax_local\nWHERE $__timeFilter(uploadTime)\n",
|
||||||
|
"Daily Grid Consumption",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select `battery_capacity` as \"Battery Charge\" , uploadTime as `time`\nfrom solax.solax_local\n\n",
|
||||||
|
"select `feed_in_power` as \"Grid\" , uploadTime as `time`\nfrom solax.solax_local\n\n",
|
||||||
|
"select `dc_solar_power` as \"Solar\", uploadTime as `time`\nfrom solax.solax_local\n\n",
|
||||||
|
"select `battery_power` as \"Battery\", uploadTime as `time`\nfrom solax.solax_local\n\n",
|
||||||
|
"select (inverter_ac_power-feed_in_power) as \"Consumption\", uploadTime as `time`\nfrom solax.solax_local",
|
||||||
|
"Solar Panels - LOCAL",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select sum(total_yield-feed_in) as Self_Use, uploadDate as `time`\nfrom solax.solax_daily\ngroup by year(uploadDate), month(uploadDate)",
|
||||||
|
"select sum(feed_in) as Feed_In, uploadDate as `time`\nfrom solax.solax_daily\ngroup by year(uploadDate), month(uploadDate)",
|
||||||
|
"SELECT \t(max(consumeenergy) - min(consumeenergy)) as From_x, DATE_SUB(LAST_DAY(uploadTime),INTERVAL DAY(LAST_DAY(uploadTime))-1 DAY) as `time`\nFROM solax.solax_local\ngroup by year(uploadTime), month(uploadTime)\n;\n",
|
||||||
|
"Yearly Solar Production",
|
||||||
|
================================================================================================================================================
|
||||||
|
"select (total_yield-feed_in) as \"Self Use\", uploadDate as `time` \nfrom solax.solax_daily\n;",
|
||||||
|
"select feed_in as \"Feed In\", uploadDate as `time` \nfrom solax.solax_daily\n;\n\t",
|
||||||
|
"Monthly Solar Production",
|
||||||
|
===============================================================================================================================================
|
||||||
|
"select `peps1` as \"EPS 1\" , uploadTime as `time`\nfrom solax.solax_stats\n\n",
|
||||||
|
"select `peps2` as \"EPS 2\" , uploadTime as `time`\nfrom solax.solax_stats\n\n",
|
||||||
|
"select (`peps3`) as \"EPS 3\", uploadTime as `time`\nfrom solax.solax_stats\n\n",
|
||||||
|
"select (`peps3`+`peps2`+`peps1`) as \"EPS Total\", uploadTime as `time`\nfrom solax.solax_stats\n\n",
|
||||||
|
"EPS Power",
|
||||||
|
"Solax",
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user