From d38a226922f50211c430977bf80229cb4402fa83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Sat, 1 Dec 2012 15:20:34 +0100 Subject: [PATCH] Added more radio stations --- changedisplay.sh | 12 +++++++++ elecciones.sh | 5 ++++ flasher.sh | 3 ++- play-hitfm.sh | 2 ++ playlist-radios.xml | 36 ++++++++++++++++++++++++++ unlock-livebox.py | 63 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 120 insertions(+), 1 deletion(-) create mode 100755 changedisplay.sh create mode 100755 elecciones.sh create mode 100755 play-hitfm.sh create mode 100644 playlist-radios.xml create mode 100644 unlock-livebox.py diff --git a/changedisplay.sh b/changedisplay.sh new file mode 100755 index 0000000..26ed7dd --- /dev/null +++ b/changedisplay.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# Author: Andrew Martin +# Credit: http://ubuntuforums.org/showthread.php?t=1309247 +echo "Enter the primary display from the following:" # prompt for the display +xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1 # query connected monitors + +read choice # read the users's choice of monitor + +xrandr --output $choice --primary # set the primary monitor + + + diff --git a/elecciones.sh b/elecciones.sh new file mode 100755 index 0000000..f5f1501 --- /dev/null +++ b/elecciones.sh @@ -0,0 +1,5 @@ +#!/bin/bash +cd /tmp +wget http://www3.upm.es/elecciones/resultados/#1 -O resultados + + diff --git a/flasher.sh b/flasher.sh index 0038720..442dcba 100755 --- a/flasher.sh +++ b/flasher.sh @@ -5,7 +5,8 @@ # @author: balkian destfile="$HOME/VideoCuevana$$" -info=($(lsof -p `pgrep -f flashplugin` | grep -i /tmp/flash | awk '{print $2; print $9}')) +PID1=$(pgrep -f flash) +info=($(lsof -p $PID1 | grep -i /tmp/flash | awk '{print $2; print $9}')) dir="/proc/${info[0]}/fd" file=${info[1]} #echo "pid" $pid diff --git a/play-hitfm.sh b/play-hitfm.sh new file mode 100755 index 0000000..dcade42 --- /dev/null +++ b/play-hitfm.sh @@ -0,0 +1,2 @@ +#!/bin/bash +mplayer -vo null -idle http://ice.5.c3.audiovideoweb.com:8000/4c3ice5500 diff --git a/playlist-radios.xml b/playlist-radios.xml new file mode 100644 index 0000000..c8cf0e6 --- /dev/null +++ b/playlist-radios.xml @@ -0,0 +1,36 @@ + + + Playlist + + + rtmp://antena3fms35geobloqueolivefs.fplive.net/antena3fms35geobloqueolive-live/stream-europafm + EuropaFM + + 0 + network-caching=1000 + + + + http://4633.live.streamtheworld.com:80/M80RADIO_SC + M80 Radio + 125287770 + + 1 + network-caching=1000 + + + + rtmp://kissfm.es.flash3.glb.ipercast.net/kissfm.es-live/aac.stream + KISSFM + + 2 + network-caching=1000 + + + + + + + + + diff --git a/unlock-livebox.py b/unlock-livebox.py new file mode 100644 index 0000000..4db9c8a --- /dev/null +++ b/unlock-livebox.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import telnetlib, time + +# Poner esto a 0 para deshabilitar las opciones del menĂº +# o a 1 para habilitarlas +HABILITAR = 1; + +tn = telnetlib.Telnet ( "192.168.1.1" ); +tn.read_until("login: "); +tn.write("LBV2techno\n"); +tn.read_until("Password: "); +tn.write("1901b95ae4295d613abf9eabae0b9d40\n"); +for i in `range(1,3)`: + tn.write("\n"); + tn.write("rg_conf_set wbm/settings/pages/backuprestore %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/vpn %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/fax %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/log %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/licence %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/community %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/visio %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/livezoom %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/pages/hsiab %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/network/dhcp %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/network/ftlock %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/network/ftlock %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/network/tvrouted %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/services/professionnal %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/services/rtcphone %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/services/universal_phone %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/services/wifipushbutton %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/services/msgwaiting %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/test/sipdev %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/test/fmdev %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/network/h323 %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("rg_conf_set wbm/settings/services/wpspushbutton %i\n" % HABILITAR); + tn.read_until("Returned 0"); + tn.write("save\n"); + time.sleep(2); + tn.write("reboot\n");