1 (edited by smatofu 2013-03-31 11:45:42)

Topic: Weather using beautiful NOAA images

Hi,

You can see a sample of NOAA images here:

http://www.srh.noaa.gov/images/fxc/fwd/ … _full1.gif
http://www.srh.noaa.gov/images/fxc/fwd/ … _full2.gif
http://www.srh.noaa.gov/images/fxc/fwd/ … _full3.gif
http://www.srh.noaa.gov/images/fxc/fwd/ … _full4.gif

Replace "fwd" with your region code.

Thanks to ZURK for his work on chumby!!! The procedure below is for Offline-Mode ver. 22.

1.  Access chumby through web browse and modify zwapi.sh using Weather Data Editor. Lines with img?.gif are new

# MODIFY THE LINES BELOW FOR THE WEATHER ONLY. DO NOT MODIFY ANY OF THE REST OF THE FILE. ENSURE THE URLS WORK BY GOING TO YOUR WEB BROWSER AND LOADING THEM.
wget -q --output-document=/tmp/zwapi.html "http://m.wund.com/cgi-bin/findweather/g … ney+TX+USA"
wget -q --output-document=/tmp/x "http://rss.wunderground.com/auto/rss_fu … units=both"
wget -q --output-document=/tmp/0.png "http://radar.weather.gov/ridge/lite/N0R/FWS_7.png"
wget -q --output-document=/tmp/1.png "http://radar.weather.gov/ridge/lite/N0R/FWS_6.png"
wget -q --output-document=/tmp/2.png "http://radar.weather.gov/ridge/lite/N0R/FWS_5.png"
wget -q --output-document=/tmp/3.png "http://radar.weather.gov/ridge/lite/N0R/FWS_4.png"
wget -q --output-document=/tmp/4.png "http://radar.weather.gov/ridge/lite/N0R/FWS_3.png"
wget -q --output-document=/tmp/5.png "http://radar.weather.gov/ridge/lite/N0R/FWS_2.png"
wget -q --output-document=/tmp/6.png "http://radar.weather.gov/ridge/lite/N0R/FWS_1.png"
wget -q --output-document=/tmp/7.png "http://radar.weather.gov/ridge/lite/N0R/FWS_0.png"
wget -q --output-document=/tmp/img1.gif "http://www.srh.noaa.gov/images/fxc/fwd/ … _full1.gif"
wget -q --output-document=/tmp/img2.gif "http://www.srh.noaa.gov/images/fxc/fwd/ … _full2.gif"
wget -q --output-document=/tmp/img3.gif "http://www.srh.noaa.gov/images/fxc/fwd/ … _full3.gif"
wget -q --output-document=/tmp/img4.gif "http://www.srh.noaa.gov/images/fxc/fwd/ … _full4.gif"
# STOP MODIFYING BELOW THIS LINE. DO NOT MODIFY ANY OF THE REST OF THE FILE.
#wget -q --output-document=/tmp/anim.gif "http://radar.weather.gov/ridge/lite/N0R/ATX_loop.gif"
#sed 's!<link>.*</link>!!g' /tmp/x > /tmp/x2
#sed 's!<pubDate>.*</pubDate>!!g' /tmp/x2 > /tmp/x
#sed 's!<guid.*</guid>!!g' /tmp/x > /tmp/x2
#sed 's/<\/title>//g' /tmp/x2 > /tmp/x
#sed 's/<description>//g' /tmp/x > /tmp/x2
#sed 's/<\/description>/<\/title>/g' /tmp/x2 > /tmp/x
#awk '$1=$1' ORS=' ' /tmp/x >/tmp/x2
#rm -f /tmp/x2
cp /tmp/x /mnt/storage/zurk/lighty/html/zurksofw/rss.xml
cp /tmp/x /mnt/storage/zurk/lighty/html/zurksofw/rss

rm -f /mnt/storage/zurk/lighty/html/photos/img1.gif
rm -f /mnt/storage/zurk/lighty/html/photos/img2.gif
rm -f /mnt/storage/zurk/lighty/html/photos/img3.gif
rm -f /mnt/storage/zurk/lighty/html/photos/img4.gif

cp /tmp/img1.gif /mnt/storage/zurk/lighty/html/photos/img1.gif
cp /tmp/img2.gif /mnt/storage/zurk/lighty/html/photos/img2.gif
cp /tmp/img3.gif /mnt/storage/zurk/lighty/html/photos/img3.gif
cp /tmp/img4.gif /mnt/storage/zurk/lighty/html/photos/img4.gif

rm -f /tmp/img1.gif
rm -f /tmp/img2.gif
rm -f /tmp/img3.gif
rm -f /tmp/img4.gif

rm -f /tmp/x
rm -f /mnt/storage/widgetcache/*
sync

2. Submit the change and let it run for a few hours.
Test if it works by:
http://your_chumby_ip/photos/img1.gif

3. Now, you have to create multiple ImgURL/Intercom widgets in your chumby widget folder. You can get the widgets from the attached file. See cpnew.sh in the attachment for hints.

4. Optionally, you can replace the following files on your chumby with the attached:
profiles.sh - sets widget timeout to 30 seconds,
clockoverlay.xml - defines large clock overlay with large fonts.



Attachment: https://docs.google.com/file/d/0B6BWC33 … sp=sharing

Please make a backup of your original chumby files!!!!!!!

Re: Weather using beautiful NOAA images

Can this be done with the online firmware?