======== Weather ========
-----------------------
Yes weather!!!!
Need I say more. yes.
OK
I am working on displaying the radar from that Government so that it can be watched in a way that will display the weather of the USA and zoom in on
NY state. I am hoping to have some captions so that it will tell what has happened like snow-days and so forth.
--------------------------
===== Objective =====
The objective was to get the data then play it on the lair wall then add some nice titles and information that displays on the screen. Like the weather channel. With more information being able to play a hole years worth of images or just the last weeks or todays weather.
-------------------------
===== Materials/Reading/Prerequisites =====
Materials
- Lair wall
- scripts
- computers
Reading
- This page
Prerequisites
- ideas
- intelligences
-------------------------
===== Background =====
The different pieces of the project.
Getting the data from the weather.gov.
What the data was how it is presented to the public.
Some info on gifs.
Some info on xload image.
Some info on the lair wall.
-------------------------
===== Procedure =====
==== How to start and end the wall ====
ssh root@wall##
- ./xup
- ./wake up
- ./wall up
~~~~~~~Stuff~~~~~~~~~
- export DISPLAY=localhost:1 ->This is so the images can be seen.
- you need to export for every session you want to run images in.
- df ->Is so you can see what has been loaded.
- /etc/rc local ->is to load local.
~~~~~~~End of Stuff~~~~~~
- ./wall down
- ./xdown
- ./turnoff
---------------------------------
==== How to play the weather ====
What should happen is that it's going to display the first image that
meets the requirements and then the next in order. This makes a image by image display that moves. Like a cartoon.
xloadimage -global -delay 1 /src/wall/pic/2011?????????????[##]0.gif <-this is the US
xloadimage -geometry 2790x1506+0+0 -global -clip 2550,270,700,300 -global -Zoom 450 -global -delay 1 /src/wall/pic/2011?????????????[##]0.gif <-this is for NY.
xloadimage -geometry 2790x1506+0+0 -global -clip 2550,270,700,300 -global -zoom 450 -global -delay 1 /src/wall/pic/2011(##)<-month(##)<-day[##]0.gif <-this is for NY.
xloadimage -geometry 2790x1506+0+0 -global -Zoom 450 -global -delay 1 /src/wall/pic/2011?????????????[##]0.gif
---------------------------------
==== Displaying text ====
* xlogo -geometry 150x150+0+0
* xterm -rv -e "figlet -f mono12 -F gay Hello; sleep 15"
* rxvt -rv -e "figlet -f mono12 -F gay Hello; sleep 15"<- sleep not working
* xterm -rv -fa "-*-dejavu sans-mono-r-*-*-*-*-*-*-*-*-*-*" -geometry 458x10+0+0 -e "figlet -f mono9 (or 12) -F gay Hello; sleep ##(amount of time)" <- not using
* xterm -rv -fa "-*-dejavu sans-mono-r-*-*-*-*-*-*-*-*-*-*" -geometry 458x10+0+0 -e "figlet -f mono9 (or 12) -F gay Hello; sleep ##(amount of time)"
---------------------------
=== Toilet/Figlet ===
Both Toilet and Figlet where used to display text in xterm.
This code is for the top banner that says weather.
xterm -fa "-*-dejavu sans-mono-r-*-*-*-*-*-*-*-*-*-*" -geometry 230x+8-1+0 -fg white -bg cadetblue4 -e "toilet -f mono9 -w 1000 ' ~~~~ W e a t h e r ~~~~'; sleep 120" &
This code is for the bottom banner that is for the second snowday that happened in 2011 at the college.
xterm -rv -fa "-*-dejavu sans-mono-r-*-*-*-*-*-*-*-*-*-*" -geometry 230x10-1+1400 -fg red -bg green -e "figlet -f mono9 -w 1000 ' SnowDay 2 ' 03-0 7-11 ; sleep 120" &
toilet -f mono12 -F gay (Word)
figlet -f mono12 -F metal (Word)
---------------------------------
==== Strip to get the image ====
#!/bin/sh
cd /home/pics for wall
wget -q -O 'date +%Y%m%d%H%M'.gif website
mv *.gif pic/
---------------------------------
==== Zooming in on what you want ====
Zooming in just zooms in so you can see one part of the pitcher closer it doesn't move to other places on the screen that you have to do your self.
* Using this will let you move to the location that you want (-geometry 2790×1506+0+0 )
* This is to zoom in (-Zoom 450)
* This is for the delay that happens in between the display the pitchers (-delay 1)
* This is to get to the pitcher (/src/wall/pic.gif)
* This is so that the setting is appliqued to all the images (-global) it needs to be before the item.
* This is how it looks all together
* xloadimage -geometry 2790×1506+0+0 -global -Zoom 450 -global -delay 1 /src/wall/pic/2011?????????????[##]0.gif
--------------------------------
==== Image magick ====
-------------------------
===== References =====
* The web "yes all of the web is my reference".
* http://www.weather.gov/
* http://radar.weather.gov/Conus/full.php
* http://radar.weather.gov/Conus/full_loop.php
--------------------------