martinmeinke / rlog

Raspberry Pi based logger for KACO Powador inverters
6 stars 0 forks source link

DST changes (postgres branch) #47

Open stylpen opened 9 years ago

stylpen commented 9 years ago

well, there was a problem with negative consuption (smart meter aggregation) in the hour where time is adjusted backwards (on 26.10.14)

timePassedSinceLastUpdate = Decimal((now  -self.SmartMeterHour.timestamp).total_seconds())

does not seem to work in this case and produce rather large negative value