View Single Post
Alfred's Avatar
Posts: 855 | Thanked: 612 times | Joined on Oct 2010 @ Germany
#1
I have played with the generationally's script and have decided to get my weather forecast up there, using the same command that QBW uses to get your Yahoo Forecast.
In the attachment you can see what i have come up with so far.
So basicly there is just one script (weather.sh) which takes care of all. Remeber if you are using "weather.sh" for the first time. you will have to reboot after it.
All you have to do is:
1) Install imagemagick from extras.
2) Remove the text "Swipe to unlock" with help of this thread.
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.
5) Edit in the script the 4nd line. Change
Code:
http://weather.yahoo.com/germany/rhineland-palatinate/kirchheimbolanden-12835433/?unit=c
to your yahoo forecast page. You can also choose on this page between Fahrenheit and Celsius.
6) Then run following commands in Terminal:
Code:
root
chmod 777 /home/user/imagemagick/*
7) Now you can run this script by executing:
Code:
 sh /home/user/imagemagick/weather.sh
even without root privileges.

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
REMEMBER that 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.

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.

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.

No backup more, 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.
Attached Images
   
__________________
Reps are just one click away: Extras | Extras-Testing | Extras-Devel | My-Maemo | CSSU |
Transform your lock screen into a weather forecast Thanks button ================>

Last edited by Alfred; 2011-04-28 at 19:43. Reason: Update
 

The Following 67 Users Say Thank You to Alfred For This Useful Post: