View Single Post
Posts: 226 | Thanked: 270 times | Joined on Apr 2012 @ Bosnia and Herzegovina
#27
OK this is lockscreen weather and it looks like this:




1. It works with OMWeather, so you need to install and configure it.

2. Install imagemagick from extras.
Code:
root
apt-get install imagemagick
3. Download Weather icons
and extract icons to /home/user/MyDocs/.Weather/

-open Xterminal:
Code:
root
chmod 777 /home/user/MyDocs/.Weather/*
4. Download Imagemagick Weather
and extract it to /home/user/imagemagick/

-open Xterminal:
Code:
root
chmod 777 /home/user/imagemagick/*
5. Edit /home/user/imagemagick/weather.sh

6. To make it update automaticaly (every hour), make new QBWidget and import Lockscreen widget to Beecon

or

you can use:
Code:
root
sh /home/user/imagemagick/weather.sh
7. OPTIONAL

If you want to remove "Swipe to unlock" do this:

-go into the /usr/share/locale/en_US/LC_MESSAGES/ (if you use some language other than en_US, search for file in folder according to your system language)
and copy the file osso-system-lock.mo to your computer. (save original for backup)

-convert .mo to .po using this URL: http://tools.konstruktors.com/
-open .po in Notepad (or any other text editor)
-search for "secu_swipe_to_unlock" and you should see a line under it saying
'msgid "Swipe to unlock"'.
Replace "Swipe to unlock" with " " and save the file.
(NOTE: "[SPACE]")

-convert it back to .mo and copy it to N900 (/usr/share/locale/en_US/LC_MESSAGES/)
_________________________________________

Thats it...I didn't had time to find different background for every weather condition so I used same background for rain and light rain...but you can replace it with your photos in /home/user/imagemagick/ (800x480.png)

Hope you'll like it

This post was my...inspiration!

################################################
UPDATE: This is updated version of QB widget and weather.sh script. It uses less CPU and checks for OMWeather updates every 30min instead of 1 hour.

weather.sh - copy to /home/user/imagemagick/
Lockscreen widget - import to QB

Last edited by dzano; 2012-12-24 at 19:07.
 

The Following 3 Users Say Thank You to dzano For This Useful Post: