ahndee
(Andreas A.)
April 14, 2016, 3:00am
7
Official device with fixes outlined in
@yaimavaldivia Shouldn’t line 285 in wattvision-manager.groovy read
schedule("0 * * * * ?", "getDataFromWattvision") // every 1 minute
instead of
schedule("* /1 * * * ?", "getDataFromWattvision") // every 1 minute
With the original (current) line, the job runs multiple times per minute and fairly quickly dies (typically within less than an hour). With the changed schedule I had it running without fail for more than 24h so far (keeping my fingers crossed…). I actually use a number other than “0” for the seconds to try and avoid peak times.
and
@yaimavaldivia Figured out the “Failed to save page: rootPage” issue - line #264 currently reads:
if (diff > 259200000) { // 3 days in milliseconds
However, based on the Wattvision API as well as the comment in the following line, this should be
if (diff > 10800000) { // 3 hours in milliseconds
instead.
to fix obvious bugs (though those are in the Manager which obviously is not the issue as it still updates the data). In the device handler I changed the logging to be a little less chatty and added unit
and backgroundColors
properties to the “power” valueTile
. No display issues at all until today.