-
Notifications
You must be signed in to change notification settings - Fork 9
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
CPU 100% busy on Raspberry #24
Comments
It's happening because one thread is completely dedicated to udp actions (offline). |
may be commented it for now? |
If I comment the
|
I'll update this and make udp optional. |
Hello @vagfed . I just updated python-sdk and made udp optional. You can try again with latest version. |
I have the same problem. |
In _sinricprosocket.py in function async def handle the first while True is a busy loop. |
Fixed by adding:
|
hi @marcoaltomonte. client.handle_all(udp_client, sleep=1) Please check out this in new update |
Are these changes part of version 2.4.2 or 2.4.1? I still have 100% cpu usage with this code: I am using version 2.4.1 that was installed with: pip3 install sinricpro |
I found that for me the only way to reduce cpu usage was to add a delay in the Events() procedure. I also found that on my Linux machine my program would become unresponsive after 15 minutes or so if I didn't also include the call to client.event_handler.raiseEvent in the procedure. def Events(): |
I have just started to use sinricpro python library on a Raspberry pizero and CPU is constantly at 100% with processor quite hot. Probably there is an event loop very tight. Is there a way to reduce CPU load? I basically use three lines of code:
The text was updated successfully, but these errors were encountered: