Browse Source

no logging for gtw id

master
Tobias Brunner 10 months ago
parent
commit
a6351f0c30
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.py

+ 1
- 1
main.py View File

@ -35,7 +35,7 @@ def on_publish_ot(client, userdata, rc):
def on_message_ttn(client, userdata, msg):
data = json.loads(msg.payload)
logging.info("message from ttn received for %s - #%s", data["dev_id"], data["counter"])
logging.info("received via gw %s", data["gateways"][0]["gtw_id"])
#logging.info("received via gw %s", data["gateways"][0]["gtw_id"])
if data["payload_fields"]["latitude"]:
# transform received data into OwnTracks format


Loading…
Cancel
Save