Linux send notifications as image
#1
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?u...d=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
Reply
#2
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!
Reply

Logout Mark Read Team Forum Stats Members Help
send notifications as image0