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)

dzano 2012-12-05 18:51

Weather lockscreen and widget..it works now.
 
Hello everyone..

this is collection of HTC weather images:

Weather Icons

Can anyone help me with Queen Beecon widget command so it would read number of icon from this file:

/home/user/apps/omweather/XXXXXXX.xml

and according to that number, it would show weather image on desktop...to look something like this:

http://www.fileden.com/files/2007/9/18/1440420/aaa.jpg

Wikiwide 2012-12-05 22:58

Re: HTC weather widget..help
 
Bumping...
Best wishes.

dzano 2012-12-05 23:05

Re: HTC weather widget..help
 
I have made some progress...I think it's gonna be on my desktop tomorrow. I'll let you know...

dzano 2012-12-06 02:10

Re: HTC weather widget..help
 
OK, I made it...its working pretty good for my "first script":)
Lots of things can be improved but I dont know better.

Haven't find place on my desktop for it yet...but it looks like this:

http://www.fileden.com/files/2007/9/...206-033904.png


-It works with OMWeather app. so you need to have it installed and configured.

-go to: /home/user/apps/omweather/ and search for XXXXXXXX.xml file. You will need it's name to make Queen Beecon widget work for you. (for Sarajevo its: BKXX0004.xml)

-download QB widget: HTC Weather
and edit this line:

instanceCmd=prognoza="$(tail -316 /home/user/apps/omweather/BKXX0004.xml (just change .xml file name)

-download Weather icons
and extract icons to /home/user/MyDocs/.Weather/

-open Xterminal:
Code:

root
chmod 777 /home/user/MyDocs/.Weather/*

-make new QBWidget and import HTC Weather.txt to Beecon

cheers

uros 2012-12-06 06:21

Re: HTC weather widget..it works now.
 
Tnx nice work.

Hvala komšo, dobra ideja. Živeli

dzano 2012-12-06 12:59

Re: HTC weather widget..it works now.
 
Now it would be nice to place it on lockscreen. :)

Kakav si komso..radi li ovo kod tebe, jesi li probao? Pozz

uros 2012-12-06 17:08

Re: HTC weather widget..it works now.
 
Let`s see, during weekend, is good time to play with widget and qtlockscreen, why not. Another idea, conkywx...

Dobro smo prijatelju, samo gužva na poslu, pa trči deci i tako u krug.

Tiran 2012-12-06 19:29

Re: HTC weather widget..help
 
1 Attachment(s)
Quote:

Originally Posted by dzano (Post 1301770)
OK, I made it...its working pretty good for my "first script":)
Lots of things can be improved but I dont know better.

Haven't find place on my desktop for it yet...but it looks like this: ........

Forgive for bad English!
Has made all under the instruction. But at me shows only an icon without a text conclusion of the weather information????

Tiran 2012-12-06 21:43

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

Originally Posted by dzano (Post 1301770)
-download Weather icons
and extract icons to /home/user/MyDocs/.Weather/

I did not have a folder .Weather in /home/user/MyDocs/
I in FileBox have created it and have unpacked in it Weather icons.
Then has entered:
Code:

root
chmod 777 /home/user/MyDocs/.Weather/*

Where still there could be a folder .Weather? Can for this reason at me QBW shows only an icon?

dzano 2012-12-06 22:35

Re: HTC weather widget..help
 
Quote:

Originally Posted by Tiran (Post 1301986)
Forgive for bad English!
Has made all under the instruction. But at me shows only an icon without a text conclusion of the weather information????

Hello. You did it right, there is no text. I'm not so good with this scripting but I will try tomorrow to make some text...like current temp.

uros 2012-12-06 22:37

Re: HTC weather widget..it works now.
 
How did you make folder .Weather in /home/user/MyDocs/, I think its impossible to create folder with dot in front of name (hidden)

dzano 2012-12-06 22:52

Re: HTC weather widget..it works now.
 
Use FileBox and enable root access, restart (FileBox) and then make .folder
pozz :)

dzano 2012-12-07 11:25

Re: HTC weather widget..it works now.
 
This is another version of QBW widget script...everything is same but this one shows some text information about weather.

HTC Widget 2

http://www.fileden.com/files/2007/9/...207-123704.png

dzano 2012-12-07 12:01

Re: HTC weather widget..it works now.
 
And this is version 3. Last one from me :)

HTC Weather 3

http://www.fileden.com/files/2007/9/...207-125741.png

melisa queen 2012-12-07 19:24

Re: HTC weather widget..it works now.
 
dzano;
Works like a charm :)
Thank you much appreciated man ;)

Tiran 2012-12-07 21:12

Re: HTC weather widget..it works now.
 
@dzano, many thanks! Magnificent work! :) ;)

My result:
http://imageplay.net/img/tya22296094...28_8883256.png

How it is possible to add display of a name of city (city with information about weather)???

dzano 2012-12-08 00:54

Re: HTC weather widget..it works now.
 
Here is weather widget for lockscreen...according to weather conditions it changes background and weather icon. Its not completed but it looks really nice:

http://www.fileden.com/files/2007/9/...208-012401.png

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

Tiran 2012-12-09 18:07

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

Originally Posted by dzano (Post 1302408)
Here is weather widget for lockscreen...according to weather conditions it changes background and weather icon.

@dzano, thanks for your work! Share weather widget for lockscreen. :)
How it is possible to add display of a name of city?

dzano 2012-12-09 19:06

Re: HTC weather widget..it works now.
 
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.

mr_pingu 2012-12-09 19:24

Re: HTC weather widget..it works now.
 
Can you make it possible to drop the depency of OMweather?
Anyway, you are doing a good job! ;)

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

dzano 2012-12-10 11:55

Re: Weather lockscreen and widget..it works now.
 
It looks really nice...but only thing I like about HTC weather widget are these weather icons, so my idea was to make one big weather icon on desktop and lockscreen without having two clocks on it.

Tiran 2012-12-11 09:49

Re: HTC weather widget..it works now.
 
1 Attachment(s)
Quote:

Originally Posted by dzano (Post 1302951)
5. Edit /home/user/imagemagick/weather.sh

@dzano, I have edited a file weather.sh so that showed in Russian, but on lockscreen weather continues to display the text in English. How it can be changed???
Code:

-page +580+410 -background transparent -fill grey -font fonts/tahoma.ttf -pointsize 20 -strokewidth 1  -stroke white  label:"Влажность: $h%" \
-page +580+435 -background transparent -fill grey -font fonts/tahoma.ttf -pointsize 20 -strokewidth 1  -stroke white  label:"Давление: $p hPa" \
-page +580+385 -background transparent -fill grey -font fonts/tahoma.ttf -pointsize 20 -strokewidth 1  -stroke white  label:"По ощущению: $e°" \
-page +45+440 -background transparent -fill grey -font fonts/tahoma.ttf -pointsize 15 -strokewidth 1  -stroke white  label:"Восход/Заход: $r / $s" \


dzano 2012-12-11 10:52

Re: Weather lockscreen and widget..it works now.
 
Can you please upload screeshot? I'll check it out later. thanks

Tiran 2012-12-11 11:45

Re: Weather lockscreen and widget..it works now.
 
Quote:

Originally Posted by dzano (Post 1303398)
Can you please upload screeshot? I'll check it out later. thanks

http://imageplay.net/img/tya22296768...211_153601.png

dzano 2012-12-11 15:42

Re: Weather lockscreen and widget..it works now.
 
You have to change fonts if you want to use cyrillic...and thats this part here:

-page +45+440 -background transparent -fill grey -font fonts/tahoma.ttf -pointsize 15 -strokewidth 1 -stroke white label:"Восход/Заход: $r / $s" \

You can find it in: /home/user/imagemagick/fonts/

But I would not recomend you to do that because this "Light Drizzle" part can not be translated to other language.

ps. Are you sure you have replaced weather.sh with edited one? After you edit it...run script again:

opet xterminal

root
sh /home/user/imagemagick/weather.sh

Tiran 2012-12-11 16:32

Re: Weather lockscreen and widget..it works now.
 
Quote:

Originally Posted by dzano (Post 1303528)
ps. Are you sure you have replaced weather.sh with edited one?

YES!
Quote:

Originally Posted by dzano (Post 1303528)
After you edit it...run script again:

opet xterminal

root
sh /home/user/imagemagick/weather.sh

I all over again in a file weather.sh have replaced only yours BKXX0004 with mine RSXX1323. After that has made:
Code:

root
 sh /home/user/imagemagick/weather.sh

Later has decided to translate the text lockscreen from English on Russian. Then has again made:
Code:

root
 sh /home/user/imagemagick/weather.sh

but the text has remained in English.

dzano 2012-12-11 18:30

Re: Weather lockscreen and widget..it works now.
 
It's impossible. Did you run that script again using xterminal?

Tiran 2012-12-24 11:19

Re: Weather lockscreen and widget..it works now.
 
Set of icons by Wazd Atmos Iconset 0.12

dzano 2012-12-24 19:11

Re: Weather lockscreen and widget..it works now.
 
UPDATE on THIS post: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

n900d-i-y 2013-02-05 08:01

Re: Weather lockscreen and widget..it works now.
 
@ dzano

It is possible to xxxxxxx.xml from omweather to make the old yahoo weather widget work? I like how the old Yahoo widget use to display the temp, then below the hi temp and low temp like the image on the first page. Your HTC Weather 3 widget is close but only displays temp no hi or low temp. Anyway could it be possible?


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

vBulletin® Version 3.8.8