Kodi Community Forum
[WORKING] unRAID XBMC go script notification. - 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: [WORKING] unRAID XBMC go script notification. (/showthread.php?tid=171474)



[WORKING] unRAID XBMC go script notification. - alexktz - 2013-08-17

Hi everyone,

I wanted to share with you all a very simple modification to the unRAID go script (this runs once boot is completed) that notifies XBMC. The reason I wanted this is that my server runs Xen, a hypervisor. I run XBMC on the host itself and as a consequece it's some 60 secs before my unRAID VM has booted.

Now I don't have to manually check, I just await the notification. The array is set to auto mount at startup so this is pretty neat.

Code:
#xbmc notification
wget -q -O/dev/null --header='Content-Type: application/json' --post-data='{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"unRAID Notification","message":"unRAID is now booted!"},"id":1}' http://xbmc:[email protected]:8080/jsonrpc

Make sure to edit the ip address of your XBMC and the username:password section accordingly. Mine are set to 10.0.0.99:8080 and 'xbmc' respectively. You must edit these, or it will not work.