Browse Source

- lcd4linux: update lcd4linux files; remove unneeded weather files

master
vanhofen 6 years ago
parent
commit
bdc63ddb19
  1. 971
      archive-imagefiles/lcd4linux/etc/lcd4linux.conf
  2. 0
      archive-imagefiles/lcd4linux/share/lcd/icons/mode/weather_off.png
  3. 0
      archive-imagefiles/lcd4linux/share/lcd/icons/mode/weather_on.png
  4. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0000.png
  5. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0001.png
  6. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0002.png
  7. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0003.png
  8. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0004.png
  9. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0006.png
  10. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0007.png
  11. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0008.png
  12. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0009.png
  13. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0010.png
  14. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0011.png
  15. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0012.png
  16. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0013.png
  17. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0016.png
  18. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0017.png
  19. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0018.png
  20. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0019.png
  21. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0020.png
  22. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0021.png
  23. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0024.png
  24. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0025.png
  25. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0026.png
  26. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0027.png
  27. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0028.png
  28. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0029.png
  29. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0032.png
  30. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0033.png
  31. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0034.png
  32. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0035.png
  33. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0036.png
  34. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0037.png
  35. BIN
      archive-imagefiles/lcd4linux/share/lcd/icons/weather/0040.png
  36. 57
      archive-imagefiles/lcd4linux/share/lcd/scripts/weather

971
archive-imagefiles/lcd4linux/etc/lcd4linux.conf

File diff suppressed because it is too large

0
archive-imagefiles/lcd4linux/share/lcd/icons/weather/weather_off.png → archive-imagefiles/lcd4linux/share/lcd/icons/mode/weather_off.png

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

0
archive-imagefiles/lcd4linux/share/lcd/icons/weather/weather_on.png → archive-imagefiles/lcd4linux/share/lcd/icons/mode/weather_on.png

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 240 B

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0000.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 B

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0001.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0002.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0003.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0004.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0006.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0007.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0008.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0009.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0010.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0011.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0012.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0013.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0016.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0017.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0018.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0019.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0020.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0021.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0024.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0025.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0026.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0027.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0028.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0029.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0032.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0033.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0034.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0035.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0036.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0037.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
archive-imagefiles/lcd4linux/share/lcd/icons/weather/0040.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

57
archive-imagefiles/lcd4linux/share/lcd/scripts/weather

@ -1,57 +0,0 @@
#!/bin/sh
eXit() {
echo .
exit $1
}
test -e /var/etc/.lcd-weather || eXit 1
DATA_DIR=/tmp/lcd
DATA_XML=/tmp/weather.xml
if [ -e /var/tuxbox/config/tuxwetter/tuxwetter.conf ]; then
DATA_LOC=$(grep -m1 "Stadt=" /var/tuxbox/config/tuxwetter/tuxwetter.conf | cut -d= -f2 | cut -d, -f2,3)
fi
test -z $DATA_LOC && eXit 1
if [ -e /var/tuxbox/config/tuxwetter/tuxwetter.mcfg ]; then
#MCFG_KEY=$(grep "^LicenseKey=" /var/tuxbox/config/tuxwetter/tuxwetter.mcfg | cut -d= -f2)
MCFG_KEY="32z7znf5z7bwm2nednkyevb7"
fi
test -z $MCFG_KEY && eXit 1
test -d $DATA_DIR || mkdir -p $DATA_DIR
wget -q -O $DATA_XML "http://api.worldweatheronline.com/free/v1/weather.ashx?q=${DATA_LOC}&format=xml&num_of_days=2&key=${MCFG_KEY}"
if [ -e $DATA_XML ]; then
query=$(sed -n 's/.*<query>\(.*\)<\/query>.*/\1\n/p' $DATA_XML)
temp=$(sed -n 's/.*<temp_C>\(.*\)<\/temp_C>.*/\1\n/p' $DATA_XML)
tempmax=$(sed -e 's/<\/tempMaxC>/<\/tempMaxC>\n/g' $DATA_XML | \
sed -n 's/.*<tempMaxC>\(.*\)<\/tempMaxC>.*/\1/p')
iconurls=$(sed -e 's/<\/weatherIconUrl>/<\/weatherIconUrl>\n/g' $DATA_XML | \
sed -n 's/.*<weatherIconUrl>\(.*\)<\/weatherIconUrl>.*/\1/p' | \
sed -e 's/<!\[CDATA\[//g' -e 's/\]\]>//g')
echo "$query" > $DATA_DIR/location
echo "$temp" > $DATA_DIR/temperatures
echo "$tempmax" >> $DATA_DIR/temperatures
rm -f $DATA_DIR/weathericons
for url in $iconurls; do
icon=${url##*/}
echo ${icon:8:4}.png >> $DATA_DIR/weathericons
done
#TODO: fix lan/lon-entrys in $DATA_DIR/location
#http://maps.google.com/maps/geo?output=xml&oe=utf8&ll=(LAT),(LON)&key=asdad&hl=de
rm -f $DATA_XML
fi
eXit 0
Loading…
Cancel
Save