Sucess!!!
Posting an update to say that I've installed the flexmenu plugin on my secondary 500 and modified shellexec.conf menu to point to a new script in var/bin which changes channel on my primary box to match that of my secondary box.
Bear in mind that this sort of plugin is only useful whn noone is watching the primary box as they might be quite annoyed by you changing the channel they were watching... especially the wife!!!
Here is my patched together code to get the current channel of the secondary box and change the primary channel via the web interface.
Note: I had to disable http authentication on my primary box as I have no idea how to get wget to log in with a username and password.
Code:
#!/bin/sh
# get the current steam info (i.e. channel) from local box
wget -O /var/tmp/steaminfo.html http://192.168.123.157/xml/streaminfo
# extract the channel reference from steam info
VAR=`sed -n '/reference/ p' /var/tmp/steaminfo.html | sed s/.\<reference\>// | sed s/.\<.reference\>//`
echo $VAR
MYVAR1="http://192.168.123.7/cgi-bin/zapTo?path="
MYVAR2="&curBouquet=0&curChannel="
# change channel on primary box connected to motor to match that of local box
wget -O /var/tmp/changechannel.txt $MYVAR1$VAR$MYVAR2
any questions or pointers how to make something easier/better... just post as ideally I would like to do it with 1 or 2 button presses but obviously happy I can do this at all
Bookmarks