Browse Source

Correction déclenchement horaires AM/PM

master
Christophe SCAYA 4 years ago
parent
commit
a61fdda3cf
  1. 2
      verif_sonnerie.py

2
verif_sonnerie.py

@ -15,7 +15,7 @@ except IOError: @@ -15,7 +15,7 @@ except IOError:
exit()
for x in Lines:
if arrow.get(x).to('Europe/Paris').format('hh:mm') == arrow.utcnow().to('Europe/Paris').format('hh:mm'):
if arrow.get(x).to('Europe/Paris').format('HH:mm') == arrow.utcnow().to('Europe/Paris').format('HH:mm'):
logging.info("Sonnerie déclenchée à {}".format(arrow.utcnow().to('Europe/Paris').format('HH:mm')))
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)

Loading…
Cancel
Save