fixed new-years bug in move.py, increased cbtime for barometer
parent
122ddde5e3
commit
cf49c05cc2
2
all.py
2
all.py
|
|
@ -56,7 +56,7 @@ import array
|
|||
cbtimetemp=30000
|
||||
cbtimehumi=30000
|
||||
cbtimeambi=60000
|
||||
cbtimebaro=30000
|
||||
cbtimebaro=60000
|
||||
|
||||
tempmaxdiff=200 # 200== 2.0 C
|
||||
|
||||
|
|
|
|||
7
move.py
7
move.py
|
|
@ -8,7 +8,12 @@ checkfile='locks/records_moved'
|
|||
|
||||
def prevday(then,now):
|
||||
#ist "then" gestern (oder noch älter)?
|
||||
return ((then.tm_yday<now.tm_yday) and (then.tm_year==now.tm_year)) or ((then.tm_yday==366) and (now.tm_yday==1))
|
||||
greaterDay=(then.tm_yday < now.tm_yday) and (then.tm_year == now.tm_year)
|
||||
if(greaterDay):
|
||||
newYear=False
|
||||
else:
|
||||
newYear=then.tm_year < now.tm_year
|
||||
return (greaterDay) or (newYear)
|
||||
def preptime():
|
||||
now=time.localtime()
|
||||
day=now.tm_mday
|
||||
|
|
|
|||
Loading…
Reference in New Issue