Skip to content

Commit

Permalink
get more information on zmq events
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jul 8, 2024
1 parent 7b57def commit 1892551
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/pixljs_alert/zero_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def process_message(socket, config, agenda):
return ""
data = socket.recv_json()
if data:
print("Receive event %s" % data)
today = datetime.date.today().isoformat()
today_datetime = datetime.datetime.today()
if today in agenda["days"]:
Expand All @@ -219,6 +220,8 @@ def process_message(socket, config, agenda):
b" setTime(%f);E.setTimeZone(%d);"
b"}"
b"onTrainCrossing(false);\n") % (now, now, -time.altzone // 3600)
else:
print("Ignore event as it does not fit in agenda %s " % repr(agenda))
return ""


Expand Down

0 comments on commit 1892551

Please sign in to comment.