-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New chart for power production for all inverters in a same graph #129
Comments
Thank a lot Autourdupc, very useful |
I also made a calculation of energy, but seem to be not the same as the one calculated by Patience, expecially on low values... |
hi, |
here is the warnings Warning: include(): Failed opening 'setTimezone.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/chartjs/lbo_chart_p.php on line 34 |
Hum... No warning here...
|
Ok thanks..
|
|
Oups m'y version is RPI-ECU-v3_10, i need to update...
|
DO not forget to backup database !!! But should work because chart is not RPI version dependant |
In fact, this file is mandory. If not present the timezone comes UTC so chart time values come bad. In the 4.2 version, there is no warning and everything goes right with thoses lines. |
Ok i really need to update my rpiEcu... |
Hi Laurent, Apparently you had a good time playing with the software. With nice result. I cannot test with your chart (because i have only one inverter), but i trust that it works oke. I have never put any effort into this overall graph because i cannot test and.... wel the chart will pretty much look like the charts of the individual inverters so i thought it wouldn't add much of value. But again, i could not verify this assumption since i have only one inverter. So how do you experience the response time? Anyway when i have time i can study your code. At a first shot i saw that it is much more complicated than a simple query of one inverter. If you are wondering about the energy values, the wiki explains how they are calculated. |
Hello.
Grrrrr ! Response time is good... Nothing special on Pi zero CPU load ! (I also tested 1 month on 1 chart, it was a pain but working... Approx 1 minute response time, and 6 months up to 10 minutes). Concerning calculation, it is a little bit complicated bec. I had to query each values for each inverters in one query then SUM them via a PHP loop. Concerning power, I got it, but I find values not the same as yours... I asked Ai "Claude" to help me, and my calculation is okay according to Claude, so I need to do more tests. Today, due to the storm all my 5 panels went away... Cables I made are still in good health, but thoses I bought are broken (the crimps have come loose). |
Well... I'm not lucky... It a SAMSUNG EVO... |
Hello @patience4711 I published a new release of the chart with energy calculation (available in the first post of this thread), but I found a big difference with your calculation. I'm really confused with the Energy values. What is your opinion about it ? |
I don't see the problem. The energy values come from the inverter, it is the difference between a counters begin- (normally 0 at reboot, start of the day) and end-value. You don't have to calculate that. I don't know how you calculate, maybe average current * average voltage or so? these values are not useable because they reflect only the level at polling time. |
Energy can be calculated... As I told you, I tried to give the whole dataset for a full day to an AI, and it give me the same results as me... Actually in my region we have fog, so the values are bad - aroud 40 W produced (with peak at 120 W) for 1200 W installed. I definitively wonder why energy calculation is so different ! FYI, this is what Claude AI says... To calculate the total consumption in watt-hours from power measurements taken every 5 minutes, the method is exactly the same as for solar production: If your measurements are: 500W, 600W, 550W, 520W |
From which région are you autourdupc, in France ?
Le ven. 13 déc. 2024 à 14:29, autourdupc ***@***.***> a
écrit :
… Energy can be calculated...
It is the power given during a time period.
We can calculate the energy even if we have one measure each 5 minutes. Of
course, we don't have the value between the 2 points, but the energy
calculation is still good.
Try to read some websites, or ask AI systems on energy calculation, they
ill give you the same answer.
As I told you, I tried to give the whole dataset for a full day to an AI,
and it give me the same results as me...
Actually in my region we have fog, so the values are bad - aroud 40 W
produced (with peak at 120 W) for 1200 W installed.
The power variation between 2 collected points will not vary very much...
ANd we can also say that we could have same variation less than variation
more... So in the average the SUM of variations tend to reach 0.
I definitively wonder why energy calculation is so different !
—
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ4CK5ZDX72FXIR52TNXV3T2FLOMZAVCNFSM6AAAAABR4BQVP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRGQ3DQNBUGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My mistake... It is not fog but clouds... Yes, I'm in France, Lyon.Le 13 déc. 2024 16:05, defaliz ***@***.***> a écrit :
From which région are you autourdupc, in France ?
Le ven. 13 déc. 2024 à 14:29, autourdupc ***@***.***> a
écrit :
Energy can be calculated...
It is the power given during a time period.
We can calculate the energy even if we have one measure each 5 minutes. Of
course, we don't have the value between the 2 points, but the energy
calculation is still good.
Try to read some websites, or ask AI systems on energy calculation, they
ill give you the same answer.
As I told you, I tried to give the whole dataset for a full day to an AI,
and it give me the same results as me...
Actually in my region we have fog, so the values are bad - aroud 40 W
produced (with peak at 120 W) for 1200 W installed.
The power variation between 2 collected points will not vary very much...
ANd we can also say that we could have same variation less than variation
more... So in the average the SUM of variations tend to reach 0.
I definitively wonder why energy calculation is so different !
—
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ4CK5ZDX72FXIR52TNXV3T2FLOMZAVCNFSM6AAAAABR4BQVP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRGQ3DQNBUGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Same here in Normandy, no sun since many days...
Le ven. 13 déc. 2024 à 16:47, autourdupc ***@***.***> a
écrit :
… My mistake... It is not fog but clouds... Yes, I'm in France, Lyon.Le 13
déc. 2024 16:05, defaliz ***@***.***> a écrit :
From which région are you autourdupc, in France ?
Le ven. 13 déc. 2024 à 14:29, autourdupc ***@***.***> a
écrit :
> Energy can be calculated...
> It is the power given during a time period.
> We can calculate the energy even if we have one measure each 5 minutes.
Of
> course, we don't have the value between the 2 points, but the energy
> calculation is still good.
> Try to read some websites, or ask AI systems on energy calculation, they
> ill give you the same answer.
>
> As I told you, I tried to give the whole dataset for a full day to an
AI,
> and it give me the same results as me...
>
> Actually in my region we have fog, so the values are bad - aroud 40 W
> produced (with peak at 120 W) for 1200 W installed.
> The power variation between 2 collected points will not vary very
much...
> ANd we can also say that we could have same variation less than
variation
> more... So in the average the SUM of variations tend to reach 0.
>
> I definitively wonder why energy calculation is so different !
>
> —
> Reply to this email directly, view it on GitHub
> <
#129 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AJ4CK5ZDX72FXIR52TNXV3T2FLOMZAVCNFSM6AAAAABR4BQVP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRGQ3DQNBUGI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ4CK53TXQ2CR4JGQU4E6CL2FL6RZAVCNFSM6AAAAABR4BQVP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRG4ZTQMZVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sure, I understand, but usually, the values above and the values under are quite equals so the error is small... And finally, my calculation is so different of the inverter measurements... |
Anyway your calculation can't be right, too much difference. I just stick to the values the inverter provides, there is no way i can prove that they are wrong. If your measurements are: 500W, 600W, 550W, 520W Energy calculation is about power over a period of time, if you have a constant powerlevel of 2170 during 5 minutes, then the 180.83 Wh is correct. The closest approach is avarage power level during 5 min/12 but even then, if you don't know what happened during this time you can't calculate the energy. |
Hello @patience4711 I'm pleased to tell you that I found my mistake in my code for energy calculation. Now I'm able to get the same value as yours. V1.30 is now okay. Remains some minors enhancements I need to do |
Hi autourdupc Fatal error: Uncaught InfluxDB\Client\Exception: error parsing query: found WHERE, expected identifier at line 1, char 28 in /usr/lib/cgi-bin/ecu/vendor/influxdb/influxdb-php/src/InfluxDB/ResultSet.php:49 Stack trace: #0 /usr/lib/cgi-bin/ecu/vendor/influxdb/influxdb-php/src/InfluxDB/ResultSet.php(39): InfluxDB\ResultSet->validate() #1 /usr/lib/cgi-bin/ecu/vendor/influxdb/influxdb-php/src/InfluxDB/Driver/Guzzle.php(107): |
@defaliz Then Then sudo ls -l /var/www/ecu_data/inverters/ |
Hi, software version RPI-ECU-v4_3 -rwxr-xr-x 1 root root 16697 Jan 7 11:57 /var/www/html/chartjs/lbo_chart_p.php cat /var/www/ecu_data/inverterCount.txt --> 1 pour l'instant 1 seul inverter ls -l /var/www/ecu_data/inverters/ -rw-r--r-- 1 www-data www-data 427 Dec 7 2021 invData0 |
i found the error actually i've only one inverter because the other is out of order, i think it's in the loop |
Hello @defaliz Can you please test this 1.6 version ? |
@defaliz Concerning HA, got test data coming to HA. Need now to create sensor. I'm also working on some other automations to test/learn HA and scripts stuffs... Not so easy |
Ok, i've downloaded last version 1.6, all is good now |
New version 1.70... |
Merci 👍 |
Hello Patience.
Let me provide a new php file that displays power measurements for all inverters in one single chart.
It displays in real time the total power for all inverters, displays the max power of the day and other stuffs.
One can change the date on the calendar to get chart for other days.
It refreshs every 112 secondes
It works on phone device and on computers browser.
Find below the php file named lbo_chart_p.php
Put it in the /var/www/html/chartjs folder -> /var/www/html/chartjs/lbo_chart_p.php
Need to sudo chmod +x /var/www/html/chartjs/lbo_chart_p.php
Then call it via http://your-ip/chartjs/lbo_chart_p.php
You will find the source code fully commented for maintenance and explanations.
I actually do not know how to link it to your existing main page, but I will work on it !
23/01/2025 : File updated to V1.70 (Better handling if missing inverters + more robust data reading)
lbo_chart_p.zip
11/01/2025 : File updated to V1.60 (Error counting inverters + better handling possible errors)
lbo_chart_p.zip
28/12/2024 : File updated to V1.50 (Manage day changing - Now chart follow the actual day)
lbo_chart_p.zip
19/12/2024 : File updated to V1.40 (Manage units automatically - Code cleaned)
lbo_chart_p.zip
17/12/2024 : File updated to V1.30 (energy calculation is now ok)
lbo_chart_p.zip
15/12/2024 : File updated to V1.20 (no more "undefined" date after date selection)
lbo_chart_p.zip
15/11/2024 : File updated to V1.10
lbo_chart_p.zip
15/11/2024 : Original file V1.00
lbo_chart_p.zip
I hope to live up to your expectations.
Cheers,
Laurent.
The text was updated successfully, but these errors were encountered: