- Posts: 79
- Thank you received: 30
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.
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.
As I am using the API with username+password, I assumed that I would be allowed to get fresh data every 5 seconds as mentioned on opensky-network.org/apidoc/rest.html . But if I try to decrease the delay to less than 10 seconds between requests, the API prints "WARNING:opensky_api:Blocking request due to rate limit".
if __name__ == "__main__":
api = OpenSkyApi("username", "password")
import time
while True:
api.get_states()
time.sleep(5)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.