-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Handling / Closing of Websocket? #58
Comments
{ |
This is the out.log from MMM: |
If I understand you correct, you say that the module is keeping the websocket open after the module (MM) is closed. How do you close MM? Can you examine and post the log from when closing? The module is keeping the websocket open as long as it is running. The update frequency is decided by Tibber, as it is coming on a graphql subscription. |
I have tried different methods of "closing". The logs kind of just go quiet upon closure / reboot;
[10.03.2024 11:10.48.183] [LOG] Starting MagicMirror: v2.26.0 I realize this gets a little confusing, and I am not sure it is a fixable problem. It is clear that Tibber limits the amount of active sockets to one. It is just clear that MM seems to be more sensitive at start up (sometimes takes 15-20 minutes after reboot) than my pytibber display which starts up fine even with MM still running. It also seems that the available socket remains occupied long after powering off the MM. |
{
|
I just configured a Magic Mirror with this very nice module.
I am running into issues with the MMM module were it does not release the websocket connection to tibber upon closure. I get connection refused in the API Explorer due to "too many connections" even if the Magic Mirror is shut down for quite some time.
I have developed my own display unit using the pytibber python library, and with this unit I have no problems running the API explorer at the same time and have never had any problem with too many connections.
There is a higher refresh rate (almost live, similar to the Mobile App) in the Magic Mirror whereas the pytibber implementation is on a 10s Callback by default. Could this be part of the problem?
The text was updated successfully, but these errors were encountered: