Hi, I'm trying to get the states using get_states() and specifying time_secs as seconds since epoch. But it never returns anything. Tried passing as int and string. Any ideas?
#No data returned
api = OpenSkyApi()
api.get_states(time_secs="1497376628")
api.get_states(time_secs=1497376628)
#Data returned
api = OpenSkyApi()
api.get_states()
it looks like you initialized the api without user credentials. Without login you are only able to access live data. Try initializing the api like this:
api = OpenSkyApi(USERNAME, PASSWORD)
Take a look at the
documentation
for further details. See
this page
for limitations like the one you experienced.