Pandora watchdog added (6s timer).

This commit is contained in:
Pecusx
2017-05-15 20:53:46 +02:00
committed by GitHub
parent ec03d571cf
commit 2d504394e0
3 changed files with 16 additions and 4 deletions
+3
View File
@@ -215,6 +215,9 @@ class MyDaemon(Daemon):
msg = "m"
elif input_source == radio.PANDORA:
msg = "p"
# sprawdzamy czy minal czas na potwierdzenie z Pandory i jesli tak to zerujemy flage potwierdzenia
if radio.pandora_watchdog_time <= int(time.time()):
radio.setReload(True)
msg = msg + ' ' + todaysdate # extra space before time (Pecus)
if radio.getStreaming():
msg = msg + ' *'