For a long time I’ve been using the kodi-player plugin in my Pimatic setup to get some extra functionality, eg a toast message when someone’s at the door and to control the lights in my living room when watching a movie.
This worked perfectly fine with kodi on a Raspberry pi because that device was always on.
But now I’m having a little problem: I decided to use kodi on the Xbox one but that device isn’t always on obviously.
The plugin now generates polling errors whenever the Xbox is off, wich is completely logical.
But is there a way to suppress these errors? Maybe with a rule or something like that?
There hasn’t been any development on the plugin for a long time now so I don’t expect the dev to fix this, was just wondering if something can be done in Pimatic to “hide” these messages.
-
Kodi polling error, how to hide?
-
@djmvt If “debug” is set to false (which is the default if debug is not set) repeated errors should only be logged once. Can you please check the plugin setting? Looking at the source code there is “debug” message output “'connection rejected” on the connection handler when an error occurs. Is this also logged in you case? Can you please post an excerpt of the log messages you get. Thanks
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Not at home right now but I am able to log in to Pimatic. These are the error messages:
error [pimatic-kodi]: [KodiPlayer#xbox-kodi-woonkamer] Unable to update player: Error: Socket error: connect ETIMEDOUT 192.168.2.25:9090 10:01:38 error [pimatic-kodi]: [KodiPlayer#xbox-kodi-woonkamer] Unable to update player: Error: Socket error: connect EHOSTUNREACH 192.168.2.25:9090 09:57:10 error [pimatic-kodi]: [KodiPlayer#xbox-kodi-woonkamer] Unable to update player: Error: Socket error: connect ETIMEDOUT 192.168.2.25:9090 09:52:41 error [pimatic-kodi]: [KodiPlayer#xbox-kodi-woonkamer] Unable to update player: Error: Socket error: connect EHOSTUNREACH 192.168.2.25:9090
Debug setting can be done in the CONFIG.json?
The plugin itself doesn’t seem to have any debug settings. -
@djmvt said in Kodi polling error, how to hide?:
Debug setting can be done in the CONFIG.json?
Yes, or using Plugin Setting of the Web UI
The plugin itself doesn’t seem to have any debug settings.
If it is not set all that’s ok as the default for
debug
isfalse
.I think the problem is that you get altering error messages, i.e.
ETIMEDOUT
andEHOSTUNREACH
. The message facility can only suppress plugin messages if the same message is repeated all the time. As a work-around a specific solution for the plugin can be developed. It is a bit tricky as more error cases may occur, e.g., Xbox is getting back online, but service port is not yet available. Error handling may also vary depending on the OS running pimatic (not a big issue perhaps as most users have Raspbian).Btw, it is somewhat strange that you get
ETIMEDOUT
message in between. This may be a bug of the underlyingkodi-ws
package. I’ll eventually look into this."It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Ok! For now I think I will disable the kodi plugin because the error messages annoy me hahahaha
Hope there’s a way to fix this, is there something I can do in the code as a workaround?