15944 days, 15:24:18
Thanks for looking at it
Code: Select all
def humanize_time(secs):
mins, secs = divmod(secs, 60)
hours, mins = divmod(mins, 60)
return '%02d:%02d:%02d' % (hours, mins, secs)
nowm = str(eg.plugins.Nest.plugin.Values_timestamp)
projected = int(eg.plugins.Nest.plugin.Values_time_to_target)
print nowm
now = int(nowm)
now = now/1000
print now
if projected == "0":
print "no data"
else:
ttt = projected-now
print ttt
print humanize_time(ttt)
ttt1 = humanize_time(ttt)
timettp = u'timett=:='+ttt1