Difference between revisions of "Dreambox"
m (add category, template, fix typo) |
|||
Line 16: | Line 16: | ||
− | <pre> | + | {{Code box|ch_chan.sh|<pre> |
#!/bin/bash | #!/bin/bash | ||
# This script is for building Dreambox into my running MythTV-system | # This script is for building Dreambox into my running MythTV-system | ||
Line 50: | Line 50: | ||
cd /scripts/garbage | cd /scripts/garbage | ||
wget http://$DREAMBOX/cgi-bin/rc?5 & | wget http://$DREAMBOX/cgi-bin/rc?5 & | ||
− | + | </pre>}} | |
− | |||
− | |||
− | </pre> | ||
Continuing depending on how many channels you'll need to make it work properly. | Continuing depending on how many channels you'll need to make it work properly. | ||
Line 67: | Line 64: | ||
<nowiki> | <nowiki> | ||
− | ln -s /scripts/ch_chan. | + | ln -s /scripts/ch_chan.sh /usr/bin |
</nowiki> | </nowiki> | ||
Line 76: | Line 73: | ||
Peque | Peque | ||
+ | [[Category:HOWTO]] | ||
+ | [[Category:Scripts]] |
Revision as of 13:13, 27 May 2009
Adding a Dreambox / Inetbox to MythTV
This is my guide to how I manage to get a Dreambox/Inetbox along with MythTV.
Since I live in the Country, the only way here i Denmark is to use a satelite dish. So I get a Inetbox.
Since you have a webGUI where you can administrate the Inetbox and change channels etc, we'll use this to also change the channels in MythTV.
Connecting the Inetbox
I connected the Inetbox to the Hauppauge PVR500 RGB Input.
Since MythTV change the channels by sending the FreqID, we need to syncrone your satelite list of favorite channels to MythTV channels list. Go to the webGUI of the Dreambox / Inetbox, and find the remotecontrol page. rigthclick on it - and choose to view the sourcecode. in here we have the different JAVA script codes that'll be send to the Inetbox and changes the channel.
So with this I made a script called ch_chan.sh and placed it in a directory /scripts/
#!/bin/bash # This script is for building Dreambox into my running MythTV-system # Made by PBJ 20080101 - myth@pbj-design.dk # ###################################################################### # History: # version 0.1 - 20080101: # Started out with the script. # ##################################################################### # Setting up the parameters DREAMBOX="10.0.0.3" # 1 elif [ "$1" = "1" ]; then cd /scripts/garbage wget http://$DREAMBOX/cgi-bin/rc?2 & # 2 elif [ "$1" = "2" ]; then cd /scripts/garbage wget http://$DREAMBOX/cgi-bin/rc?3 & # 3 elif [ "$1" = "3" ]; then cd /scripts/garbage wget http://$DREAMBOX/cgi-bin/rc?4 & # 4 elif [ "$1" = "4" ]; then cd /scripts/garbage wget http://$DREAMBOX/cgi-bin/rc?5 &
Continuing depending on how many channels you'll need to make it work properly. Since I use the wget command i places a file each time - so that's why the garbage folder - where I empty the folder once a hour in cron.hourly!
Instead of filling up the garbage folder, it is possible to change the wget command so that all files received are deleted instantly, like this:
wget http://$DREAMBOX/cgi-bin/rc?5 -O /dev/null &
Make a symlink from /usr/bin to the script
ln -s /scripts/ch_chan.sh /usr/bin
And aftewards syncronize the channellist from Inetbox to mythTV!
That's it - and you're ready to go.
Peque