PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [spark] Uhrzeit anzeigen statt Sendernahme im Display



portion
14.02.2014, 13:38
Kann diese Option nirgendwo finden, würde aber gerne bei meinem Pingulux immer die Uhr anzeigen anstatt den Sendernamen.
Geht das irgendwie?

santa
14.02.2014, 13:59
Probier es mal bitte mit der boardsuche, glaube da könntest du was finden

harryhase
14.02.2014, 14:59
ich habe dazu mal ein script geschrieben und hier im Board veröffentlicht

portion
25.02.2014, 01:14
Danke!
Ich habe es etwas angepasst und gleich einen no-ip.org updater mit eingebaut, falls das jemand mal sucht:

#!/bin/sh# updates time into the display of your stb instead of channel names (by harryhase - http://tinyurl.com/opgermc)
# updates your no-ip account every ~5min (by AntonioCS - https://github.com/AntonioCS/no-ip.com-bash-updater)


i=1
while [ 1 -le 2 ]
do
h1=`date | cut -c12-12`
h2=`date | cut -c13-13`
m1=`date | cut -c15-15`
m2=`date | cut -c16-16`
ss=`date | cut -c18-19`
if [ "$ss" -gt "45" ] && [ "$m2" -ne "9" ]; then
echo $h1$h2:$m1$m2:$ss
let "m2 += 1"
fi
echo $h1$h2.$m1$m2 > /dev/vfd

#no-ip.org updater:
i=$(( i + 1 ))
if [ "$i" -gt "15" ]; then
# No-IP uses emails as passwords, so make sure that you encode the @ as %40
USERNAME=
PASSWORD=
HOST=
LOGFILE=/usr/noip/noip.log
LOGFILEwget=/usr/noip/noipwget.log
STOREDIPFILE=/usr/noip/current_ip
USERAGENT="Simple Bash No-IP Updater/0.4 antoniocs@gmail.com"


if [ ! -e $STOREDIPFILE ]; then
touch $STOREDIPFILE
fi


NEWIP=$(wget -O - http://icanhazip.com/ -q)
STOREDIP=$(cat $STOREDIPFILE)


if [ "$NEWIP" != "$STOREDIP" ]; then
RESULT=$(wget -O "$LOGFILEwget" --user-agent="$USERAGENT" --no-check-certificate "http://$USERNAME:$PASSWORD@dynupdate.no-ip.com/nic/update?hostname=$HOST&myip=$NEWIP")
LOGLINE=" [$(date +"%Y-%m-%d %H:%M:%S")] Update $NEWIP"
echo $NEWIP > $STOREDIPFILE
fi
echo $LOGLINE >> $LOGFILE

i=1
fi
#end no-ip.org updater
sleep 21
done

Macbest
25.02.2014, 11:41
Danke können einige sicher gut gebrauchen.