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-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 11:29.

vBulletin® Version 3.8.8