Kodi Community Forum
An Unusual Request: Video Alarm - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: An Unusual Request: Video Alarm (/showthread.php?tid=369342)



An Unusual Request: Video Alarm - wwitv - 2022-08-21

Does anyone know of a way to use a Firestick + Kodi to basically play a video?

What I'm trying to do is set up an IOT alarm that would turn on my projector and play a video on the wall.

In theory, it would like this:
  • Alarm off Google Home/Play/phone would trigger my IOT to turn on the projector + firestick (this is the easy part)
  • Kodi is launched with some sort of command to play a specific playlist or video (not sure how to do this part)

Just wondering if anyone's done this or seen something similar with Kodi?


RE: An Unusual Request: Video Alarm - DaVu - 2022-08-22

(2022-08-21, 03:01)wwitv Wrote: Kodi is launched with some sort of command to play a specific playlist or video (not sure how to do this part)

If the system is able to trigger a curl-command, you can do nearly anything with Kodi via JSON. Even playing a video or a playlist. Just just have to be sure that the curl-command is only triggered after Kodi and the projector is up and running. The curl-command produces an exit-code. So you could probably do that by putting it in a while-loop. Not sure how flexible your home-automation system is in that case. 

Just have a look here: 

https://kodi.wiki/view/JSON-RPC_API