Kodi Community Forum
Linux send notifications as image - 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: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux send notifications as image (/showthread.php?tid=257720)



send notifications as image - ddragas - 2016-01-25

Hi all

if this topic is in wrong section, please move it to right place Wink

I want to send notifications to Kodi as Image along with title and message.

if I send this
PHP Code:
http://192.168.1.10:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Sample Title","message":"Sample Message","image":"http://www.online-image-editor.com//styles/2014/images/example_image.png","displaytime":10000},"id":1} 

it works (only I'd like to image to be bigger 800x600px)

but if I send this

PHP Code:
http://192.168.1.10:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Sample Title","message":"Sample Message","image":"http://192.168.1.24:90/videostream.cgi?user=username&pwd=password","displaytime":10000},"id":1} 

it doesnt work
url http://192.168.1.24:90/videostream.cgi?user=username&pwd=password is my front door camera video streaming

if it is impossible to accomplish what I want, is there addon that would accept notification with iframe url ?

thank you all in advance


RE: send notifications as image - mazeprince - 2016-01-25

Hi,

i´m not sure, but isn´t
PHP Code:
*videostream.cgi?user=username&pwd=password 
the whole video stream? What camera model is it?

Maybe try something like a snapshot function:
PHP Code:
snapshot.cgi?user=username&pwd=password 
so in your case:
PHP Code:
http://192.168.1.10:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Sample Title","message":"Sample Message","image":"http://192.168.1.24:90/snapshot.cgi?user=username&pwd=password","displaytime":10000},"id":1} 

Have a nice day!