- Posts: 62
- Thank you received: 2
from opensky_api import OpenSkyApi
api = OpenSkyApi(USERNAME, PASSWORD)
states = api.get_my_states()
print(states)
for s in states.states:
print(s.sensors)
NameError: name 'USERNAME' is not defined
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.