123solar1.6.6

Talks about solar stuff
jeanmarc
Posts: 2055
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar1.6.6

Post by jeanmarc » Sun May 17, 2015 12:16 pm

No problem ;) There is no tool to import data. But, you can export data from PVoutput via 'more' > 'download'. Then, you need to set the data into the appropriate format.

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: 123solar1.6.6

Post by TonyP62 » Mon May 18, 2015 6:28 am

Sorry, but i don't find it on forum search.
There is a time in which the PRODUCTION file is written ? Or it's written by software every n minutes ?
I ask this only because today i have had to write the yesterday production into the file.
May be a permission problem ? actually is RW-R--R-- www-data www-data (User & Group for Apache2).

jeanmarc
Posts: 2055
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar1.6.6

Post by jeanmarc » Mon May 18, 2015 6:56 am

The detailled files are as follow. You better remove the bad file.

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: 123solar1.6.6

Post by TonyP62 » Mon May 18, 2015 7:05 am

As you suggested i try and 123solar/programs/programday.php?invtnum=1 returns:

Code: Select all

{"data":[{"name":"Avg. Power","type":"areaspline","data":[[1431921900000,0],[1431922201000,0],[1431922502000,0],[1431922802000,0],[1431923101000,0],[1431923401000,12],[1431923700000,24.1],[1431924000000,48],[1431924302000,59.6],[1431924600000,72.5],[1431924901000,83.7],[1431925202000,107.6],[1431925500000,108.7],[1431925800000,120],[1431926101000,143.5],[1431926402000,143.5],[1431926702000,156],[1431927001000,168.6],[1431927300000,168.6],[1431928501000,233.8],[1431928802000,299]]},{"name":"Max","type":"scatter","data":[[1431928802000,299],[1431928802000,299]]}],"title":"Oggi (0,2 kWh)","subtitle":"Alba 06:07 - Zenith 13:20 - Tramonto 20:32"}

jeanmarc
Posts: 2055
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar1.6.6

Post by jeanmarc » Mon May 18, 2015 7:14 am

Please don't mess up the 1.6.6 subject and be more precise :roll: You ask about production files then about program :?

TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Re: 123solar1.6.6

Post by TonyP62 » Mon May 18, 2015 7:20 am

Sorry, but i follow the link as you suggested, hoping to find a solution to my problem about production file.
Can you say me if the production file is written at regular interval or it's written at the end of the current day or what ?

jeanmarc
Posts: 2055
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar1.6.6

Post by jeanmarc » Mon May 18, 2015 7:29 am

It is written each 5 min. Please do not to pollute the forum, be ordered and post into the correct topic (or create a new one)

jeanmarc
Posts: 2055
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar1.6.6

Post by jeanmarc » Tue Jun 16, 2015 1:11 pm

Hi,
1.6.6.3 is out, it just 2 really minors modifications :
The Riso and iLeak warnings will be send/log only if they differs from previous values.
Some clean up with spaces and unities.

sovking
Posts: 80
Joined: Fri Feb 27, 2015 12:02 am

Re: 123solar1.6.6

Post by sovking » Mon Jun 22, 2015 9:13 am

Hi jeanmarc,
I've just installed 123solar1.6.6.3. My system is an RPI with debian and PHP 5.4.41-0+deb7u1.
123solar did not start with this version because it got:

Code: Select all

PHP Fatal error:  Can't use function return value in write context in /home/www/123solar/scripts/123solar.php on line 557
The problematic code is:

Code: Select all

      if (!empty(trim($STATE))) {
That is because
Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error.
(from empty function of PHP manual).

My PHP version is 5.4 (the latest stable available on raspberry/debian).
So I did this simple correction:

Code: Select all

       $trimmedSTATE=trim($STATE);
                if (!empty($trimmedSTATE)) {
This did the trick :D

Maybe you can add this to the next version, so systems with PHP<5.5 can work ?

Regarding the spaces inserted, before the units, when you have time, could you change them to non breaking spaces ? &nbsp;

Thanks very much for your work!

jeanmarc
Posts: 2055
Joined: Thu Aug 29, 2013 7:16 am

Re: 123solar1.6.6

Post by jeanmarc » Mon Jun 22, 2015 12:08 pm

Hi,
You will find this empty test several times, i'll change them for a trim test.
Is there a problem rendering spaces (vs &nbsp;) ?

Locked

Who is online

Users browsing this forum: No registered users and 11 guests