no logging for gtw id

master
Tobias Brunner 2 years ago
parent ec11549edc
commit a6351f0c30
  1. 2
      main.py

@ -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