123Solar: There is no data to export!

Topics: 5. Support
May 3, 2015 at 10:10 AM
Edited May 3, 2015 at 10:24 AM
Hi, I have a SBFspot + 123solar system that works perfectly except that the first day of every month!
During the first day of each month I got:
pi@raspberrypi ~ $ /usr/bin/SBFspot -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_1.cfg
20150501-10:47:49 231.750 4.694 1087.000 0.000 0.000 0.000 0.000 0.000 0.000 49.980 95.602 31.050 0.000 15819.477 281.810 2.716 765.000 281.410 1.325 372.000 231.750 4.694 1087.000 >>>S123:OK
__There is no data to export!__ 
From the second day everything starts to work normally.

May 3, 2015 at 10:43 AM
dear paolo, can you provide the following additional information

an output report running the command with the extra options -d5 -v5
to catch the output you can redirect to file using: 1>catch-out.txt 2>catch-err.txt where "catch" stands for a name tah you choice

in your case SBFspot applies the default selection for the command-line -> which is -ad1 -am1 -ae0 (for the first of the month this is -am2 :-) )
you can force this by running the command with an option -am2 (eg only at first day in a month)

from your output one can not find whether the fault message is about the "month" file or "about" another output types

eg: at first of the month there is not yet "data for this month" as output -> no data to export

kr wim
May 3, 2015 at 7:42 PM
Not sure about this, but I think you need -am0 on the SBFspot command line when using with 123Solar.
Better post this question on 123Solar forum
Jul 1, 2015 at 6:00 PM
Hi, sorry for my late answer but I lost the June 1st to get the additional information so I had to wait until July 1st...

You can download catch-out.txt here: catch-out.txt;
You can download catch-err.txt here: catch-err.txt (but it's empty).

Here you can find the output with -am0 option and with -am2 option:
pi@raspberrypi ~ $ /usr/bin/SBFspot -am0 -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_1.cfg
20150701-19:42:09 235.950 0.721 170.000 0.000 0.000 0.000 0.000 0.000 0.000 49.970 86.735 54.100 0.000 17178.977 259.660 0.489 126.000 252.360 0.280 70.000 235.950 0.721 170.000 >>>S123:OK
pi@raspberrypi ~ $ /usr/bin/SBFspot -am2 -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_1.cfg
Wed Jul  1 19:34:15 2015: CRITICAL: bthConnect() returned -1
I think -am0 is the correct option to use... How can I use it in 123 solar?
Must I use the -am0 option only the first day of the month?

Thanks in advance!