2013-08-17, 17:02
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.
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.
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.