Hi Guys,
Does the 4K+ have an API or an ability to send HTTP commands to control the device? On/Off etc
Thanks
Hi Guys,
Does the 4K+ have an API or an ability to send HTTP commands to control the device? On/Off etc
Thanks
There is a JSON-RPC API.
You can suspend and wake the device via HTTP, yes.
Thanks sam. Can the status of the unit in either state be polled ? Ie to determine if its on off or standby . Can you share the documentation for how this works so i can get a head start. My unit had shipped
https://kodi.wiki/view/JSON-RPC_API
In regards to on/off. If the Vero is Off it would not react to any network commands and therefore could also not be controlled. Only suspend would be a possible mode for the Vero still to be controlled.
The Vero can be woken from suspend with any key press (by network; CEC; IR etc).
Thanks guys, plenty of options then to integrate into OpenHab2
Can you give me some basic syntax examples? Iām not familiar with RPC, and my test requests in Postman arenāt receiving any response.
This is a script example via curl to switch audio output:
curl -H āContent-type: application/jsonā -X POST -d ā{ājsonrpcā:ā2.0ā,āmethodā:āSettings.SetSettingValueā, āparamsā:{āsettingā:āaudiooutput.audiodeviceā,āvalueā:āPI:HDMIā},āidā:1}ā http://:@/jsonrpc
Is there a way to determine if the Vero 4K is currently playin a video via this API? ie to run a HTTP get to determine if something is playing. The reason is that I would trigger a scene, such as turning up the lights again if the movie has finished
I can see the API has Player.OnStop and Player.OnPlay which I assume is what iād use.
How would I obtain that via curl?
To be honest when you want to programm something I would expect you are able to do some searching.
Well, why not start with a ready-made Kodi binding ā¦
For OpehnHAB 2:
https://www.openhab.org/v2.2/addons/bindings/kodi/
āold onesā / OpenHAB 1:
https://www.openhab.org/addons/bindings/xbmc1/
For FHEM:
https://wiki.fhem.de/wiki/XBMC
https://waschto.eu/xbmc_kodi_mit_fhem_verbinden/
For eQ-3 / CCU (or FHEM):
https://forum.kodi.tv/showthread.php?tid=204667
Seems useful, but should this layer of overhead be necessary when Kodi already has an API? It seems to me like the problem is with the Kodi API documentation (which I canāt understand, personally).
Iām looking to set up a variant of this project that will play songs (and potentially videos) from Kodi rather than over Sonos: qrocodile: the kid-friendly Sonos system - Raspberry Pi
If using openhab is going to make my life easier, Iāll do it, no problem, but it doesnāt seem like it should be necessary.
Well you jumped into this thread that was about openhab usage with OSMC. So the reply from @mathiasn wasnāt meant for you but for the original thread owner. I suggest you open a new thread if you want to get help for your topic.
But to be honest without some basic programming knowledge I am not seeing you getting anywhere.
Right, thanks. Sorry I missed the OpenHAB reference in the thread. Iām only looking for some clarification of the documentation, not extensive help on my specific topic.