Copied from https://sbfspot.codeplex.com/discussions/644444
when I call:
```
/usr/local/bin/sbfspot.3/SBFspot -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_0.cfg -nosql
```
Output:
> 20150901-19:51:57 229.070 0.194 44.000 0.000 0.000 0.000 0.000 0.000 0.000 49.980 81.481 54.730 0.000 22337.072 316.750 0.086 27.000 314.520 0.087 27.000 229.070 0.194 44.000 >>>S123:OK
There is no data to export!
Where is the Problem ?
Source Code:
```
int ExportMonthDataToCSV(const Config *cfg, InverterData *inverters[])
{
char msg[80 + MAX_PATH];
if (cfg->CSV_Export == 1)
{
if (VERBOSE_NORMAL) puts("ExportMonthDataToCSV()");
if (inverters[0]->monthData[0].datetime <= 0) //invalid date?
puts("There is no data to export!"); //First day of the month?
else
{
FILE *csv;
ect.
........
```
Comments: Fixed in V3.1.2
when I call:
```
/usr/local/bin/sbfspot.3/SBFspot -finq -q -123s=DATA -cfg/var/www/123solar/config/SBFspot_0.cfg -nosql
```
Output:
> 20150901-19:51:57 229.070 0.194 44.000 0.000 0.000 0.000 0.000 0.000 0.000 49.980 81.481 54.730 0.000 22337.072 316.750 0.086 27.000 314.520 0.087 27.000 229.070 0.194 44.000 >>>S123:OK
There is no data to export!
Where is the Problem ?
Source Code:
```
int ExportMonthDataToCSV(const Config *cfg, InverterData *inverters[])
{
char msg[80 + MAX_PATH];
if (cfg->CSV_Export == 1)
{
if (VERBOSE_NORMAL) puts("ExportMonthDataToCSV()");
if (inverters[0]->monthData[0].datetime <= 0) //invalid date?
puts("There is no data to export!"); //First day of the month?
else
{
FILE *csv;
ect.
........
```
Comments: Fixed in V3.1.2