Code: Alles auswählen
[NI-FLASH-002351] /tmp # temp=$(cat $DATA_DIR/tmp.txt | sed -e 's/[{"}]//g' |
t -d: -f2)
[NI-FLASH-002351] /tmp # cat $temp >/tmp/lcd/temp
cat: can't open '1.9': No such file or directory
[NI-FLASH-002351] /tmp #
Code: Alles auswählen
[NI-FLASH-002351] /tmp # temp=$(cat $DATA_DIR/tmp.txt | sed -e 's/[{"}]//g' |
t -d: -f2)
[NI-FLASH-002351] /tmp # cat $temp >/tmp/lcd/temp
cat: can't open '1.9': No such file or directory
[NI-FLASH-002351] /tmp #
Code: Alles auswählen
#!/bin/sh
DATA_DIR=/tmp/lcd
wget -q -O $DATA_DIR/tmp.txt http://privat.dyndns.org:99/tmp.txt
temp=$(cat $DATA_DIR/tmp.txt | sed -e 's/[{"}]//g' | cut -d: -f2)
echo "$temp" > /tmp/lcd/temp
Code: Alles auswählen
Widget wetter {
class 'Text'
expression exec('/var/lcd/scripts/wetter', 90000) # 15 minutes
width 0
}
Code: Alles auswählen
#!/bin/bash
DATA_DIR=/tmp/lcd
wget -q -O $DATA_DIR/tmp.txt http://privatportal.org:99/tmp.txt
wget -q -O $DATA_DIR/hum.txt http://privatportal.org:99/hum.txt
temp=$(cat $DATA_DIR/tmp.txt | sed -e 's/[{"}]//g' | cut -d: -f2)
humbechen=$(cat $DATA_DIR/hum.txt | sed -e 's/[{"}]//g' | cut -d: -f2)
echo "$tempbechen" > /tmp/lcd/temp
echo "$humbechen" > /tmp/lcd/hum