Hi,
now for each inverter the energy total counter which is read from inverter (when it is awake) is stored in LIVEMEMORY.
But that data could useful even when the inverter is sleeping, for example for analisys and reporting and it's necessary to display "Total production" and "xxx Tonnes CO2" on /123solar/info.php (Usually I look at that page in the evening).
Could you move or copy that data in MEMORY shared area to have such data always available ?
Thanks
Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
Re: Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
Hi,
You can comment the line #105 of 123solar.php
That should do the trick
You can comment the line #105 of 123solar.php
Code: Select all
//$livememarray["KWHT$i"] = 0;
Re: Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
Cool!
You are right! It's very simple solution.
Do you think that such modification could have any side effect ?
If not, could you merge that into the next release ?

Do you think that such modification could have any side effect ?
If not, could you merge that into the next release ?

Re: Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
No side effect
i'll include that in next releases

Re: Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
A side effect though, if you turn off 123s or restart it by night, the livememory is cleared.
Re: Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
That is quite rare so such reset it could be acceptable.
Just a question: how do you choose what should belong to MEMORY and what should belong to LIVEMEMORY ?
Just a question: how do you choose what should belong to MEMORY and what should belong to LIVEMEMORY ?
Re: Moving KWHTx from 123s_LIVEMEMORY to 123s_MEMORY
MEMORY is for values that don't change much..
LIVEMEMORY values change on each iteration (when the inverter is awake)
LIVEMEMORY values change on each iteration (when the inverter is awake)
Who is online
Users browsing this forum: No registered users and 3 guests