Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TedSjoblom committed Mar 29, 2023
1 parent 144a9bb commit f9a4d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
MQTT_BASE_TOPIC = env("MQTT_BASE_TOPIC")

CLUON_CID = env.int("CLUON_CID", 111)
CLUON_ENVELOPE_ID = env.int("CLUON_MS_ID", 1201)
CLUON_ENVELOPE_ID = env.int("CLUON_ENVELOPE_ID", 1201)

RADAR_ATTITUDE: list = env.list("RADAR_ATTITUDE", [0, 0, 0], subcast=float, validate=lambda x: len(x) == 3)
RADAR_MIN_READING_WEIGHT = env.int("RADAR_MIN_READING_WEIGHT", 0)
Expand Down Expand Up @@ -239,6 +239,6 @@ def to_mqtt(envelope: Envelope):

# Register triggers
session = OD4Session(CLUON_CID)
session.add_data_trigger(CLUON_ENVELOPE_ID, source.emit)
session.add_data_trigger(1201, source.emit)

mq.loop_forever()

0 comments on commit f9a4d14

Please sign in to comment.