Open GoogleCodeExporter opened 9 years ago
Problem solved.
Somebody told me that the program does not send updates at night or when
current is 0 or when you use the -d -v options. Is this correct? because
yesterday afternoon I used that.
And therefor I had to try it this morning and now it works.
Original comment by zweinste...@gmail.com
on 2 Sep 2011 at 11:00
I believe the reason why it failed in the evening and succeeded in the morning
is as follows: smatool selects data for uploading that are within the range
defined by
Date_Sub(CURDATE(),INTERVAL 14 DAY).
For me, the date and time is 20111221 16:44
When I execute in mysql 'SELECT Date_Sub(CURDATE(),INTERVAL 14 DAY);' I get
2011-12-07
With this specification, smatool attempts to send data to pvoutput starting
with 2011-12-07 09:35, which is more than 14 days, so pvoutput refuses to
accept the upload.
A solution would consist of using the expression
Date_Sub(CURDATE(),INTERVAL 13 DAY).
This limits a bit the amount of historic data that is sent, but at least it
work on all times of day
Original comment by vereecke...@gmail.com
on 21 Dec 2011 at 3:50
Original issue reported on code.google.com by
zweinste...@gmail.com
on 1 Sep 2011 at 1:34