Skip to content
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

First day of month: "There is no data to export!" #32

Closed
SBFspot opened this issue Nov 4, 2017 · 4 comments
Closed

First day of month: "There is no data to export!" #32

SBFspot opened this issue Nov 4, 2017 · 4 comments

Comments

@SBFspot
Copy link
Owner

SBFspot commented Nov 4, 2017

First day of month I get the message: "There is no data to export!" on every run (5 minute cronjob):
/usr/local/gvs_cron/SMAspot240/bin/Release/SMAspot -ad2 -am2 -v0 -q -d0
This happend last month as well.

This work item was migrated from CodePlex

CodePlex work item ID: '26'
Vote count: '1'

@SBFspot
Copy link
Owner Author

SBFspot commented Nov 4, 2017

[SillieWimons@1/04/2014]
dear since you did not include more information
I'll assume that you refer to the monthly file,

  • the information related to "total-production" of a day, eg for the first day of a month
    is only available the morning after the first day,
    for that reason the report by SMAspot "no-data" is correct

note: see also the discussions on "googlecode" for SMAspot

kr wim

@SBFspot
Copy link
Owner Author

SBFspot commented Nov 4, 2017

[SBF@1/04/2014]
Maybe the message is a bit confusing, but like Wim said, the first day of the month there is still no month data. It is only available after a complete day: in this case 2nd of April at 00:00

@SBFspot
Copy link
Owner Author

SBFspot commented Nov 4, 2017

[gvs@2/04/2014]
Although "no-data" is correct on the first day of the month. it is a message the code will always create the first 24 hours of a month. An inexperienced user might see as an error not knowing how to solve.

Normally if a Linux cron job runs and a error or message is created, it will create a mail. This is to report errors to administrator.
I the case of SMAspot the administrator wants a mail when the program has messages or errors and not send to "1> /dev/null 2>&1", virtually make administrator blind for messages or errors.

The code could check for first day of month and not report this message because it is normal behavior, not an error.
If you do not think this should be in the code could you help me. I was looking at the code but I am not a C-programmer, if you know a possible solution only to remove it on the first day of the month, not on other days of the month could you give me a hint, thanks Ger.

@SBFspot
Copy link
Owner Author

SBFspot commented Nov 4, 2017

Issue closed by SBF with comment
This is normal behaviour - By design of SMA firmware

Reason closed
Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant