Friday, August 26, 2011

[HOW TO] Have an Interactive Yahoo Weather on your N900 lock screen !

Posted on 4:09 PM by SlipKoRnSaad

 Don't you want you're weather informations on the lock screen as i do? Hell yes (thanks to Alfred )!


Here's how to do it quickly in 6 steps ;)

1) Install imagemagick from extras or in X-terminal :

Code:
apt-get install imagemagick
2) Install wget (if not already done)

Code:
apt-get install wget

3) After installing imagemagick, the folder "/home/user/imagemagick" should appear, if not create it.

4) Place everything that contains this archived folder in /home/user/imagemagick/ folder.

Edit the script weather.sh (via txt editor for example) and change the URL of yahoo forecast city by yours :

Code:

http://weather.yahoo.com/morocco/greater-casablanca/casablanca-1532755/?unit=c
Ps : in yahoo forecast page you can also choose between Fahrenheit and Celsius.

5) Run following commands in Terminal :

Code:
root
chmod 777 /home/user/imagemagick/*
6) Run this script by executing:

Code:
sh /home/user/imagemagick/weather.sh
You're done !

7) If you want to make this script run automatically, install Alarmed. Make a "New event">"Command execution">Select frequency of how often do you want to update it>Enter Name> in the command field put this:

Code:
sh /home/user/imagemagick/weather.sh
Note : You need an internet connection for "weather.sh". The first run of this script must be followed by a reboot, in order to load the new slider.

And of course, you can play with colors and fonts. If you look into the script, you will find what and how to change. It's very easy. There is also a folder with some free fonts, so feel free to use them.

It's interactive as the background changes, depending on the current temperature. If it is below zero, it chooses "winter.png" as background. If it is above zero it chooses "summer.png" and if it IS ZERO, it chooses "background.png" as a background image.

If you want to reset everything back to normal, just choose another theme from desktop, and then again the theme you want. Everything will be back after a restart. 

3 Response to "[HOW TO] Have an Interactive Yahoo Weather on your N900 lock screen !"

.
gravatar
}~eddy737~{ Says....

It doesn't work


# sh weather.sh
weather.sh: line 100: convert: not found
cp: cannot stat 'lockslider.png': No such file or directory

.
gravatar
SlipKoRnSaad Says....

Try with the new script (updated the post)

Don't forget to copy/past commands in terminal also don't forget to place files on the imagemagick folder and not the folder (in zip) itself ^^

.
gravatar
}~eddy737~{ Says....

tnx, but still don't work. just enother line

# sh weather.sh
weather.sh: line 140: convert: not found
cp: cannot stat 'lockslider.png': No such file or directory

Leave A Reply