From a61fdda3cf5686a5c46352af787ca81b2c91704d Mon Sep 17 00:00:00 2001 From: Christophe SCAYA <> Date: Sun, 20 Mar 2022 15:08:57 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20d=C3=A9clenchement=20horaires=20AM?= =?UTF-8?q?/PM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- verif_sonnerie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)