Install package in hassio, does not have apt-get

I want to install xbmc-eventclients-xbmc-send, but in hassio there is no apt-get command how can I install…

you can’t.

Then again, HA does have the ability to control Kodi, so those packages shouldn’t be needed.

Aside from the Kodi query, apt-get is not available but I believe pip is (at least on the standard docker it is so I suspect on hass.io too) so you’ll need to find a package that’s available via pip

How to import from package not installed on hassio

1 Like

I need to run this command:

ssh kodi_username@kodi_ip_address 'xbmc-send -a "XBMC.RunPlugin(plugin://plugin.video.surveillanceroom?action=show_preview&camera_number=1)"'

I’m running this through json, it does the job … but not in the way that I wish. It takes me to the addon screen and performs the task. The first command only executes the task.

curl -i -X POST -H “Content-Type: application/json” -d ‘{“jsonrpc”:“2.0”,“method”:“Addons.ExecuteAddon”,“params”:{“wait”:false,“addonid”:“plugin.video.surveillanceroom”,“params”:{“action”:“show_preview”,“camera_number”:“1”,“id”:“1”}},“id”:2}’ http://192.168.1.20:8080/jsonrpc

Unable to execute XMBC.RunPlugin command by JSON

Hello, Sorry to everyone. I’ve solved the problem. Adding one more command.

Perhaps you should document your solution?

Actually ue did not need to install package.

I used one more command to control the kodi.

I said “document”, not “be vague”.

All right my buddy, I used the two commands through a .sh file and a shell_command.

curl -i -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"wait":false,"addonid":"plugin.video.surveillanceroom","params":{"action":"show_preview","camera_number":"1","id":"1"}},"id":2}' http://192.168.1.163:8080/jsonrpc

curl -i -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "GUI.SetFullscreen", "params": { "fullscreen": "toggle" }, "id": "1"}' http://192.168.1.163:8080/jsonrp
2 Likes

Thanks, it is always good to leave these details behind for others to learn.

3 Likes

Yes, don’t use hassio.

1 Like