-
Gesamte Inhalte
1.132 -
Benutzer seit
-
Letzter Besuch
-
Tagessiege
1
Inhaltstyp
Profile
Forum
Kalender
Downloads
Blogs
Galerie
Articles
Beiträge erstellt von rich
-
-
Hallo,
@drjv
warte mal noch etwas, ich bin momentan dabei die kompletten EPG-Vorschaudaten zu verarbeiten und es sieht auch schon recht gut aus.
@all
zurzeit habe ich aber noch das Problem, wie wandelt man im Script die Sende Startzeit in eine Uhrzeit (z.B. "18:30) um?
rich
-
Eine weitere Auswertung von Sendedaten würde glaube ich zu aufwändig und damit für Scrips und die D-Box zu langsam werden. Dazu ist dann sicher das Plugin von DrStoned "TimerBoxt1oBox2-Plugin" besser.
-
Hallo,
hier noch einmal eine überarbeitete Version des Remote-Timers für die laufende und nachfolgende Sendung.
/var/plugins/remote_timer.sh
#!/bin/sh IP_BOX2="192.168.0.55" # IP der Box2 anpassen ping -c 1 $IP_BOX2 if [ $? -eq 0 ]; then wget -q -O /tmp/t_sender http://localhost/control/zapto wget -q -O /tmp/t_jetzt http://localhost/control/epg?ext wget -q -O /tmp/t_prog http://localhost/control/epg?`cat /tmp/t_sender` sed -n '/^'`cat /tmp/t_sender`" "'/p' /tmp/t_jetzt > /tmp/t_sendung start=$(cut -d" " -f2 /tmp/t_sendung) ende1=$(expr $start + `cut -d" " -f3 /tmp/t_sendung`) sed -n '/'" "$ende1" "'/p' /tmp/t_prog > /tmp/t_sendung2 ende2=$(expr $ende1 + `cut -d" " -f3 /tmp/t_sendung2`) case "$1" in "JETZT") wget -q -O /dev/null http://$IP_BOX2/control/timer?'action=new&type=5&alarm='$start'&stop='$ende1'&channel_id='`cat /tmp/t_sender`'&rs=1' ;; "NACH") wget -q -O /dev/null http://$IP_BOX2/control/timer?'action=new&type=5&alarm='$ende1'&stop='$ende2'&channel_id='`cat /tmp/t_sender`'&rs=1' ;; *) echo "usage: remote_timer.sh [JETZT]|[NACH]" ;; esac rm /tmp/t_* wget -O /dev/null http://localhost/control/message?popup=Timer%20auf%20Remote-Box%20\($IP_BOX2\)%20wurde%20gesetzt! exit; fi wget -q -O /dev/null http://localhost/control/message?popup=Fehler:%20Remote-Box%20\($IP_BOX2\)%20antwortet%20nicht. exit;
und noch der Eintrag in shellexec.conf
MENU=Remote Aufnahme-Timer ACTION=Aufnahme der laufenden Sendung,/var/plugins/remote_timer.sh JETZT ACTION=Aufnahme der folgenden Sendung,/var/plugins/remote_timer.sh NACH ENDMENU
rich
-
Eine tolle Sache währe ja beim Timer setzen mit der roten Taste noch eine Zwischenauswahl zuschalten zu können um aus z.B. zwei Boxen wählen zu können. Dies wird aber glaube ich nur gehen wenn das direkt in Neutrino eingebaut würde.
-
Ich habe hier mal grob was für die folgende Sendung zusammengebaut,
funktioniert über FlexMenü recht gut.
# Aufnahme der folgenden Sendung wget -q -O /tmp/sender http://localhost/control/zapto wget -q -O /tmp/jetzt http://localhost/control/epg?ext wget -q -O /tmp/programm http://localhost/control/epg?`cat /tmp/sender` sed -n '/'`cat /tmp/sender`'/p' /tmp/jetzt > /tmp/sendung cut -d" " -f2 /tmp/sendung > /tmp/start expr `cat /tmp/start` + `cut -d" " -f3 /tmp/sendung` > /tmp/ende sed -n '/'`cat /tmp/ende`'/p' /tmp/programm > /tmp/sendung2 expr `cat /tmp/ende` + `cut -d" " -f3 /tmp/sendung2` > /tmp/ende2 wget -q -O /dev/null 'http://192.168.0.55/control/timer?action=new&type=5&alarm='`cat /tmp/ende`'&stop='`cat /tmp/ende2`'&channel_id='`cat /tmp/sender`'&rs=1' rm /tmp/sender rm /tmp/jetzt rm /tmp/start rm /tmp/ende rm /tmp/ende2 rm /tmp/sendung rm /tmp/sendung2 rm /tmp/programm wget -O /dev/null http://localhost/control/message?popup=Timer%20auf%20Remote-Box%20der%20nachfolgende%20Sendung%20wurde%20gesetzt!
-
Hallo,
@drjv
ich habe Dein Skript mal getestet, funktioniert bei mir aber leider nicht.
Problem ist in meinem Image "| tail -1 dadurch habe ich es für mich mal etwas geändert womit es bei mir dann klappt.
wget -q -O /tmp/sender http://localhost/control/zapto wget -q -O /tmp/jetzt http://localhost/control/epg?ext sed -n '/'`cat /tmp/sender`'/p' /tmp/jetzt > /tmp/sendung cut -d" " -f2 /tmp/sendung > /tmp/start expr `cat /tmp/start` + `cut -d" " -f3 /tmp/sendung` > /tmp/ende wget -q -O /dev/null 'http://192.168.0.55/control/timer?action=new&type=5&alarm='`cat /tmp/start`'&stop='`cat /tmp/ende`'&channel_id='`cat /tmp/sender`'&rs=1' rm sender rm jetzt rm start rm ende rm sendung wget -O /dev/null http://localhost/control/message?popup=Timer%20auf%20Remote-Box%20wurde%20gesetzt!
rich
Edit: das aktuelle Plugin kann jetzt hier gezogen werden
-
Versuch es mal so
wget -O /dev/null 'http://192.168.0.55/control/timer?action=new&type=5&alarm=1118175338&stop=1118185338&channel_id=2100850383&rs=1'
edit: damit klappt es bei mir (remote) mit jedem Versuch
-
Hallo,
Timer setzen funktioniert bei mir damit
wget -O /dev/null http://192.168.0.55/control/timer?action=new&type=5&alarm=1118162880&stop=1118166240&channel_id=2100850383&rs=1
rich
-
also Versuch ich es mal so
Box1
/var/tuxbox/plugins/zap_rec
IP_BOX2="192.168.x.xx" # IP von Box2 anpassen ping -c 2 $IP_BOX2 if [ $? -eq 0 ]; then wget -q -O /tmp/rec_status http://$IP_BOX2/control/setmode?status if [ `grep "on" /tmp/rec_status` != "on" ]; then rm /tmp/zap_rec wget -q -O /dev/null http://$IP_BOX2/cgi-bin/exec?record wget -q -O /dev/null http://localhost/control/message?popup=Aufnahme%20auf%20Box2%20\($IP_BOX2\)%20wurde%20beendet. exit; else wget -q -O /tmp/zap_rec http://localhost/control/zapto wget -q -O /dev/null http://$IP_BOX2/control/zapto?`cat /tmp/zap_rec` wget -q -O /dev/null http://$IP_BOX2/cgi-bin/exec?record wget -q -O /dev/null http://localhost/control/message?popup=Aufnahme%20auf%20Box2%20\($IP_BOX2\)%20wurde%20gestartet. exit; fi fi wget -q -O /dev/null http://localhost/control/message?popup=Box2%20\($IP_BOX2\)%20antwortet%20nicht. exit;
Box2
/var/tuxbox/plugins/record.sh
# Die rcsim-Befehle müssen eventuell noch etwas angepasst werden! if [ -e /tmp/record_on ]; then rm /tmp/record_on; wget -q -O /dev/null http://localhost/control/setmode?record=stop rcsim KEY_BLUE 1 rcsim KEY_RED 1 rcsim KEY_HOME 1 else touch /tmp/record_on; wget -q -O /dev/null http://localhost/control/setmode?record=start rcsim KEY_BLUE 1 rcsim KEY_RED 1 fi; exit;
noch Rechte und IP der Box2 anpassen bzw. Plugin durch "zap_rec.so" und "zap_rec.cfg" lauffähig machen.
rich
Leider sind im CODE von Box1 noch zwei Zeilenumbrüche bei "wget -q -O /dev/null" hinzugekommen, die müsste man noch entfernen.
Wenn man den Inhalt der CODE-Fenster kopiert und z.B. bei UltraEdit einfügt sollte es wieder richtig werden.
-
Hallo,
ich möchte hier auch mal meine Lösung zum Besten geben,
aber wie hängt man hier eine Datei an?
rich
-
Hallo,
füge mal in den Code sleep 1 ein, danach hat es bei mir funktioniert.
Ist zweimal drin.
(echo CAPA;echo user $NAME;echo pass $PASS;sleep 1;echo top ...
plugin wanted: aufnahmegerät wählen
in DBox2 Plugins
Geschrieben · bearbeitet von SnowHead
Hier mal wieder die neuste Version.
Bitte teste!
/var/plugins/remote_timer.sh
und noch der Eintrag in shellexec.conf
rich
Edit: Probleme gibt es nur noch bei Sendern ohne EPG-Daten.
Edit: das aktuelle Plugin kann jetzt hier gezogen werden