Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Egi testing #5

Merged
merged 15 commits into from
Feb 3, 2021
Prev Previous commit
Next Next commit
Update flighttracker.py
  • Loading branch information
luke-iqt committed Jan 22, 2021
commit ac20e2c533cf7e3febc928418e80625cc3c3b63a
4 changes: 3 additions & 1 deletion tracker/flighttracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ def on_message(client, userdata, message):
if message.topic == plane_topic:
q.put(update) #put messages on queue
elif message.topic == "/egi/":
print(update)
logging.info(update)
else:
logging.info("Topic not processed: " + message.topic)

class FlightTracker(object):
__mqtt_broker: str = ""
Expand Down