Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
--action="activatewindow(home)" I would think.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 40
Joined: Jan 2011
Reputation:
1
Thanks nickr,
--action="activatewindow(home)" just brings up the channel guide.
--action="XBMC.PlayerControl(Stop)" will stop the stream and bring up the settings page from there I must select exit.
It seems the only option I have to quit out of the hdhomerun addon without invoking the gui is to restart kodi.
is this correct?
kind regards,
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
I'll have a play later. don't have a tv/kodi on now.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 806
Joined: Nov 2015
Reputation:
33
What about the StopScript() function?
Also, this forum is for the PVR client managed by the PVR Manager, not SD's HDHomeRun addon.
Posts: 40
Joined: Jan 2011
Reputation:
1
Hi rpcameron,
Apologies for posting in wrong place.
I have tried your suggestion, not sure I'm formatting this correctly but it is crashing the addon/kodi
kodi-send --host=127.0.0.1 --action="StopScript(script.hdhomerun.view)"
kind regards,
Posts: 806
Joined: Nov 2015
Reputation:
33
All I can say is if you wish the addon to behave differently, then perhaps you ought to ask the authors how they see it working, The SD forums have a place for the Kodi addon, as they are the ones that develop it.
Personally, I can't help beyond offering a suggestion as I don't care for their software in any way.
Posts: 40
Joined: Jan 2011
Reputation:
1
Thanks nickr,
That works a treat!
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
Yeah but its a hack. The addon should exit gracefully. StopScript crashed on mine too.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 40
Joined: Jan 2011
Reputation:
1
Kodi-send is generally used via command line, you would need to ssh into the device running kodi and then issue the command.
You could also tie the command to your remote or keyboard in keymaps.
Personally my intention was to have the “sleep timer” addon issue the command after a predefined period of inactivity
As nickr says the above kodi-send actions are “just a hack” to manipulate the gui, as if you was pressing the keys on the remote, not ideal but it works.
There really should be a way to interact with the hdhomerun script directly without resorting to messing with the gui.