diff --git a/bundles/infobeamer-monitor/files/monitor.py b/bundles/infobeamer-monitor/files/monitor.py index 9ac2333..f61cb43 100644 --- a/bundles/infobeamer-monitor/files/monitor.py +++ b/bundles/infobeamer-monitor/files/monitor.py @@ -169,7 +169,11 @@ while True: state = new_state - if datetime.now(timezone.utc).strftime("%H%M") == "1312" and online_devices: + if ( + datetime.now(timezone.utc).strftime("%H%M") == "1312" + and online_devices + and int(datetime.now(timezone.utc).strftime("%S")) < 30 + ): mqtt_out("Online Devices: {}".format(", ".join(sorted(online_devices)))) sleep(30) except KeyboardInterrupt: