diff --git a/verif_sonnerie.py b/verif_sonnerie.py index e99f2fb..755b5e7 100644 --- a/verif_sonnerie.py +++ b/verif_sonnerie.py @@ -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)