Closed lindehoff closed 8 years ago
I have not tested how this performs in a threaded environment. As long as it is sequential there should not be any limitations on the client side. I would guess that Verisure has some kind of limit on their servers. How often are you calling get_overview?
Ok I also think it's on the Verisures side. I started with 10 sec for testing purposes and got the error. I now changed to 30 sec and I don't get any errors.
I did a test program and tried to get it to fail, but could not.
import time
from verisure import MyPages
def print_overview(overview):
print(overview.get_typename())
for key, value in overview.get_status():
print('\t{}: {}'.format(key, value))
with MyPages(username, password) as verisure:
while True:
time.sleep(0.5)
overviews = verisure.get_overview('alarm')
print_overview(overviews[0])
I ran this for a few minutes. Could you post an example showing how you used the module?
Sorry I didn't reply sooner, I did some more testing and everything seems to work. The problem was probably on my side.
First of, thank you for this script it saved me a lot of coding.
However if i call get_overview to often i get the following error:
Is there a limit on how often you should call get_overview?