maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Weather lockscreen and widget..it works now. (https://talk.maemo.org/showthread.php?t=88137)

crni_labud 2012-12-09 19:52

Re: HTC weather widget..it works now.
 
Quote:

Originally Posted by dzano (Post 1302899)
Oh man, there is so much work to make this one working properly...but it's worth :) Right now I'm looking for 47 really nice wallpappers that suits to weather conditions (rain, snow, fog and stuff) and in same time white text should me visable.


Imaš pivo od mene ako kad budeš dolazio u Tuzlu :D

dzano 2012-12-09 19:54

Re: HTC weather widget..it works now.
 
Quote:

Originally Posted by mr_pingu (Post 1302902)
Can you make it possible to drop the depency of OMweather?
Anyway, you are doing a good job! ;)

No...but I hope someone will be interested to make this script better so we wont need OMWeather.

I think if you configure OMWeather to update weather automaticaly, you dont need to have widget on your desktop if you dont want to.

dzano 2012-12-09 19:56

Re: HTC weather widget..it works now.
 
Quote:

Originally Posted by crni_labud (Post 1302908)
Imaš pivo od mene ako kad budeš dolazio u Tuzlu :D

Ako je pivo u pitanju, dolazim sutra odmah hehe :D

uros 2012-12-09 21:29

Re: HTC weather widget..it works now.
 
In Bosnia and Herzegovina N900 are rare phone, and we have two users from Tuzla.

This is something, material for Murphy`s Law book

dzano 2012-12-09 21:58

Re: HTC weather widget..it works now.
 
Hehehe...it's not so rare as you can see here:

www.pik.ba

but lots of people don't want/know to use it. :)

crni_labud 2012-12-09 22:38

Re: HTC weather widget..it works now.
 
Kud prođem sa N900 trava ne raste. :D:D

dzano 2012-12-09 23:12

Re: HTC weather widget..it works now.
 
OK this is lockscreen weather and it looks like this:

http://www.fileden.com/files/2007/9/...208-013213.png
http://www.fileden.com/files/2007/9/...209-103820.png

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

visN900 2012-12-09 23:27

Re: HTC weather widget..it works now.
 
Quote:

Originally Posted by dzano (Post 1302951)
OK this is lockscreen weather and it looks like this:

http://www.fileden.com/files/2007/9/...208-013213.png
http://www.fileden.com/files/2007/9/...209-103820.png

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!

u r an inspiration.. superb.. i dreamt of having this lockscreen!! waiting to get my N900 so that i can try this.. tks man.. its excellent.. no more words to say!!

Tiran 2012-12-10 08:38

Re: HTC weather widget..it works now.
 
Quote:

Originally Posted by dzano (Post 1302951)
OK this is lockscreen weather and it looks like this:

Excellently!!! I shall try. @dzano, thanks for job! ;) :p

n900d-i-y 2012-12-10 10:25

Re: Weather lockscreen and widget..it works now.
 
If OMweather is installed, you can customize the omweather widget to look like the HTC weather widget by replacing the weather images over the original images that are installed, if you don't want to use QBW.
http://talk.maemo.org/showthread.php?t=75014&page=37


All times are GMT. The time now is 17:03.

vBulletin® Version 3.8.8