nebgor / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

Patch for /smatool.c - Handle the missing midnight stamp (00:00:00) issue #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Not all inverters (like the SMA 2100TL) are generating a midnight time stamp. 
Most likely because these inverters are going to sleep once the sun sets.

This patch determines the start of day value, which is used for pvoutput, by 
looking at the 1st entry of the day.

The maximum number of history days is adjusted to 13 days, this safely below 
the 14 day history limit imposed by pvoutput; seems to be related to timezone 
issues.

Original issue reported on code.google.com by ysbrand....@gmail.com on 9 Aug 2012 at 7:03

Attachments: