On Screen Notifications from shell script?
#1
Prior to upgrading to XBMCv10, I used to do...

"wget -q --spider "http://xbmclive:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Not
ification($1,$2,30000))" > /dev/null"

In order to pop up notifications on the TV screen. This no longer works with XBMCv10.

Can anyone helpfully recommend an alternative way of achieving this?

Many thanks.
Reply
#2
You can send notifications in Dharma using xbmc-send. I use it in shell scripts in conjunction with mythlink to import symlinks into XBMC and then export scraped info/fanart into the symlinked directory. I believe you can use it as following to pop-up a notification:

xbmc-send -a "Notification(header,message)"

if the machine is remote, you can specify --host=x.x.x.x and --port=xxxx. If you don't specify these, it'll assume that you're actually on the host machine and automatically pass localhost and 9777.

a full list of possible commands and syntax can be found here:

http://wiki.xbmc.org/index.php?title=Lis..._Functions

xbmc-send is available as part of the xbmc-eventclients-xbmc-send package, so if you're on debian/ubuntu it's:

sudo apt-get install xbmc-eventclients-xbmc-send

hope this helps - I've found it really a really useful command!

Jim
Reply
#3
Thank you very much. That is perfect.

Tested, works.

Don't spose you can also use it to read if XBMC is currently playing?
Reply

Logout Mark Read Team Forum Stats Members Help
On Screen Notifications from shell script?0