Hi guys, it was a wish by a user to show you how we can have a real-time "now playing" from XBMC and also the state of VoxCommando in iRule.
https://www.youtube.com/watch?v=FAqd4eiag5MThis is only interest if you use the iRule remote app or plan to use it
http://iruleathome.com/You must have installed Eventghost with the DynamicWebserver plugin or any other Webserver running on your machine to have access to a html page on it.
Step 1: Activate the webserver addon in XBMC and use the default one (make sure that you enable "control XBMC over HTTP)
Step 2: open the iRule builder and go to the page where you want to have the "now playing" info or create a new page.
Step 3: insert from the iRule "widgets" a URL with drag'n drop on the panel and set in the URL properties following
http://yourXbmcIP:8080/#remote adjust the width and height of the cells
Step 4: insert a second blank URL on a empty place in the same panel (you can set the cell width to 3 and height also to 3) save the settings (let the URL address field blank)
Step 5: start VoxCommando, open the command tree and create a new command group. As next insert a new command and open the LCB editor with a double-click on the command.
Step 6: Add first a logic block with following settings IF (A)==(B) and for (A)->{LastEvent} for (B)-> VC.On THEN action "File.Write" -> path to the a html file where you will write (example: drive:\pathVC\dynWeb\state.html) and as text
ON (you can also type here a path of a picture that is stored on your machine (example:
<img src="pics/mic_40_green.png">)
create two more logic blocks - one with VC.Standby and VC.Off and save the command.
Step 7: go back to iRule and paste followed URL address in the blank field from Step 4:
http://IPofyourPC/state.html and save the settings - sync your iRule device.
(if you use the Eventghost Dynamic Webserver plugin, make sure that you set the port in the EG websever to 80)
Step 8: as next create 3 events to the created command VC.On VC.Standby VC.Off and restart VC
thats all - I hope I forgot nothing