User Tools

Site Tools


user:sweller5:weather

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

  1. Lair wall
  2. scripts
  3. computers

Reading

  1. This page

Prerequisites

  1. ideas
  2. 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##

  1. ./xup
  2. ./wake up
  3. ./wall up

~~~~~~~Stuff~~~~~~~~~

  1. export DISPLAY=localhost:1 →This is so the images can be seen.
  2. you need to export for every session you want to run images in.
  3. df →Is so you can see what has been loaded.
  4. /etc/rc local →is to load local.

~~~~~~~End of Stuff~~~~~~

  1. ./wall down
  2. ./xdown
  3. ./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 2790×1506+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 2790×1506+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 2790×1506+0+0 -global -Zoom 450 -global -delay 1 /src/wall/pic/2011?????????????[##]0.gif


Displaying text

  • xlogo -geometry 150×150+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 458×10+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 458×10+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

user/sweller5/weather.txt · Last modified: 2011/05/19 11:12 by sweller5