You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that webpage is not available when mpchc is off. So that's the hard part. Is there way this addon could ping the /variables.html ? And if there i nothing, set the state to off ?
I mean,
When I close mpc-hc . I mever get an updated state. The state stays at the last knows value before i close the program.
If i chek the code here, it is supposed to send a off if there is no info available?
And the else should be stopped.
You can also get the 0,1,2 value from the web page .
So ... if 0 return STATE_STOPPED
If 1 return STATE_PAUSED
If 2 return STATE_PLAYING
Else return STATE_OFF
———-
@Property
def state(self):
"""Return the state of the device."""
state = self._player_variables.get('statestring', None)
The text was updated successfully, but these errors were encountered: