rkkrs.nl

Just another blog

Follow me on TwitterRSS Feeds

  • Home
  • About me

Dreambox standby channel script

Aug 20th

Posted by Ruben in Dreambox

No comments

My dreambox 800hd combined with a Multitenne dish can’t wake up on a HD channel, will give a “Tune failed” message.
So every time I had to switch to a SD channel and switch back to the HD channel to get an image.

I created a little script that can do the switch for you, I use the BVN channel as standby channel so if the box wakes up i BVN is on. You can set your own startup channel in three steps as described in the script.

  1. Put zapscript.sh on your dreambox somewhere (i.e. your root home dir)
  2. Enter “chmod 755 zapscript.sh”
  3. Start script “./zapscript.sh”
  4. Optional but recommended add to startup: enter “ln -s /home/root/zapscript.sh /etc/rcS.d/S80zapscript.sh” the script will run if the box get booted after a power down or reboot.

download zapscript.sh
Source:

#!/bin/sh
#
# Set default channel in standby mode
# To select your default channel:
# 1. navigate to http://dreamboxip/web/getservices and select your bouquet reference value and copy it
# 2. navigate to http://dreamboxip/web/getservices?sRef=YOURBOUQUET
#     Something like: 1:7:1:0:0:0:0:0:0:0:FROM%20BOUQUET%20%22userbouquet.dbe17.tv%22%20ORDER%20BY%20bouquet
# 3. copy your channel reference to use as your standby channel
#
# Used source for dreambox web interface: http://dream.reichholf.net/wiki/Enigma2:WebInterface
#
STANDBYCHANNEL="1:0:1:FB0:451:35:C00000:0:0:0:"
LASTCHANNEL=0
LINE="------------------------------------------------------"
echo $LINE
echo "Standby channel script running"
echo $LINE

sleep 300
while [ 1 ]
do
	CHANNEL=`wget -O- -q http://localhost/web/about | grep "servicename" | sed 's/.*\(.*\)<\/e2servicename.*/\1/'` 	if [ "$CHANNEL" = "" ]; then 	   if [ "$LASTCHANNEL" != "BVN" ]; then 			echo "TV standby, set channel to bvn and go back to standby." 			`wget -O- -q http://localhost/web/powerstate?newstate=0 >> /dev/null`
			echo "power on"
			sleep 10
			`wget -O- -q http://localhost/web/zap?sRef=$STANDBYCHANNEL >> /dev/null`
			echo "channel changed"
			sleep 5
			`wget -O- -q http://localhost/web/powerstate?newstate=0 >> /dev/null`
			echo "goto standby"
			LASTCHANNEL="BVN"
	   else
			echo "TV channel already set to BVN, do nothing"
	   fi
	else
	   echo "TV channel: $CHANNEL"
	   LASTCHANNEL=$CHANNEL
	fi
	echo $LINE
	sleep 300
done
exit 0
channelscript, dreambox, standbyscript, zapscript
Yamaha Osco mount

Yamaha R6 and the Osco Chainoiler

Feb 27th

Posted by Ruben in Motor

No comments

For about a year ago I bought a Osco Chainoiler system. This is a semi-automatic chainoiler for all motor cycles and saves you a lot of time with chain lubrication. Just pull the systems button after each 300km and you are ready.

Just mount the reservoir at an easy to reach place (while riding with +/- 30km/h).

For the R6 (2001) I prefer the right side and I did mount it at the brake oil reservoir.

 

 

Youtube: Mounting the Osco chainoiler

 

Osco chainoiler, Yamaha R6

HowTo add custom radio stations to the TwonkyMedia server

Dec 27th

Posted by Ruben in My Life

1 comment

My set-up:
NAS: QNAP TS219p (running Twonky Media Server Version 4.4.17)
Media player: Zyxel DMA-2500

I only used it so far with some shoutcast radio station, but what if you have a radio station that’s not listed on the shoutcast list?

Answer: CREATE A PLAYLIST!
Just create a playlist file in m3u format.

It should look something like this:

#EXTM3U
#EXTINF:-1,HARD.fm @192k mp3 – Your #1 Hardstyle Radio

http://192.mp3.streams.lsw.evo.hard.fm:8000/

Store your .m3u file in one of your Twonky media folders and re-scan your folders.

If I go to my media player i can connect to my Twonky server:

Then select Internetradio and there should your station be listed:

and PLAY!

internet radio, nas, qnap, twonky, zyxel dma-2500

Dijit.form.combobox widget with loading image

Dec 23rd

Posted by Ruben in Other

No comments

I needed some feedback on my dijit.form.combox and a queryreadstore to fetch the list.
If you press the dropdown button it would be nice to display a loading image.
Nice website to create your loading image: ajaxload.info
The following widget extends the default combobox:


dojo.provide("myWidgets.ComboBox");
dojo.declare
(
"myWidgets.ComboBox",
[dijit.form.ComboBox],
{
// summary:
// extended version of the dijit form ComboBox widget with a loading image.
// Loading image will appear on the start search and will disappear on the show result list. 

dropdownbutton: "",
loadingImg: "",

/* *********************************************************** postCreate */
postCreate: function()
{
this.inherited(arguments);

//store the current dropdownbutton
this.dropdownbutton = this.downArrowNode.innerHTML;
},

/* ********************************************************* _startSearch */
_startSearch: function(evt)
{
this._updateButtonStateLoading();
this.inherited(arguments);
},

/* ****************************************************** _showResultList */
_showResultList: function(evt)
{
this._updateButtonStateDefault();
this.inherited(arguments);
},

/* ******************************************** _updateButtonStateLoading */
_updateButtonStateLoading: function()
{
//set the loading image
this.downArrowNode.innerHTML = this.loadingImg;
},

/* ******************************************** _updateButtonStateDefault */
_updateButtonStateDefault: function()
{
//set default dropdown button back
this.downArrowNode.innerHTML = this.dropdownbutton;
}
}
);

dijit, dojo, widget

Disable the close button of dijit.Dialog

Dec 9th

Posted by Ruben in Other

No comments

Just found this javascript to disable the close and escape button of the DOJO dijit.Dialog (source)

dijit, dojo, widget

Need a motorcycle manual?

Jun 22nd

Posted by Ruben in My Life

No comments

At this website you can find your service and workshop manual: www.carlsalter.com
All downloadable as PDF!

manual, motor

Logitech harmony dreambox problems

Jun 21st

Posted by Ruben in Dreambox

2 comments

I had some problems with my setup and the harmony remote control. If I turn my dm800 + AV receiver (Yamaha RX-V463) + Tv (samsung) on I had a disturbing picture and bad sound!
The problem is that you have to change the order of the power on sequence!
What worked for me was TV -> AV receiver -> Dreambox.

Very strange problem!

Another problem, the exit button is not working properly yet..

dreambox, harmony, logitech

Dreambox Nabilosat image

Jun 14th

Posted by Ruben in Dreambox

No comments

Since my new dreambox 800hd pvr I started using the Nabilosat image, and I like it!

It’s very stable has much options and a nice big community!


dreambox, nabilosat
  • Follow Me

    Follow Us on FacebookFollow Us on TwitterFollow Us on LinkedInFollow Us on RSS
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • Archive

    • August 2011 (1)
    • February 2011 (1)
    • December 2009 (3)
    • June 2009 (3)
  • Links

    • Pli dreambox images
  • Tags

    channelscript dijit dojo dreambox harmony internet radio logitech manual motor nabilosat nas Osco chainoiler qnap standbyscript twonky widget Yamaha R6 zapscript zyxel dma-2500
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top