maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900 (https://talk.maemo.org/showthread.php?t=72398)

Alfred 2011-04-26 13:01

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
1 Attachment(s)
Hello Guys,
I've been doing a weather LockScreen. So this is as far i have it right now. I have a script, which takes care of all stuff using imagemagick. But i can't figure out which strings pulls the CURRENT temparature. As you can see, i can get the lowest and the highest for today. Any help would be appreciated.
And btw, does anybody know how to set -gravity with coordinates, not South,West,SouthWest and so on??

Edit: just to make clear, what i mean under a "string". Here is the one, which pulls the lowest Temp:
Code:

echo `grep 'forecast-icon.*http.*png' /home/user/imagemagick/ywtemp.htm | grep -o Low[:].[-0-9][-0-9]*`°C

Prozac786 2011-04-26 13:27

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Below is the entire script that the yahoo weather beecon uses, that displays high, low and current temperature. Somewhere in there is the string that you are after. I am not sure where so I pasted the whole thing. I hope this helps:




[queen-beecon-header]
version=1.000000
checksum=6074982
[queen-beecon-exported-instance]
widgetType=1
widgetVisible=1
operationalStatus=0
hideCanvas=true
hideClickCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#808080808080
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#0000ffff0000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffffffff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=queen-beecon-index.png
widWidth=315.8853503184713
widHeight=130.20127795527156
instanceTitle=YahooWeather
instanceCmd=wget --user-agent="" -q -t 1 -T 10 -O "/home/user/.queen_beecon_dir/ywtemp.htm" "http://uk.weather.yahoo.com/england/greater-london/barking-11853/" ; wget --user-agent="" -q -t 1 -T 10 -O "/home/user/.queen_beecon_dir/ywtemp.png" `grep 'forecast-icon.*http.*png' /home/user/.queen_beecon_dir/ywtemp.htm | grep -o http*[a-zA-Z0-9\\.\\-\\\\_/\\:]*.png | grep -m 1 http` | echo "<span foreground=\\"white\\" font=\\"bold 30\\">`grep 'forecast-icon.*http.*png' /home/user/.queen_beecon_dir/ywtemp.htm | grep -o yw-temp..[-0-9]\\* | grep -o temp..[-0-9]* | grep -o [-0-9][-0-9]*`</span>"°C ; echo `grep 'forecast-icon.*http.*png' /home/user/.queen_beecon_dir/ywtemp.htm | grep -o High[:].[-0-9][-0-9]*`°C ; echo `grep 'forecast-icon.*http.*png' /home/user/.queen_beecon_dir/ywtemp.htm | grep -o Low[:].[-0-9][-0-9]*`°C
rememberMe=
cmdImgFilename=;queen-beecon.png
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=5
cmdExtFgRGB=#ffff00000000
cmdTextAngle=1
cmdVisibilityPosition=0
cmdImgVisibilityPosition=1
cmdJustify=0
cmdExtFont=Nokia Sans bold italic 14
cmdFontName=3
cmdFontSize=14
resImgFilename=ywtemp.png
resImgAngle=0
resImgZoom=25
resFgRGB=4
resExtFgRGB=#ffffffffffff
resTextAngle=0
resVisibilityPosition=6
resImgVisibilityPosition=1
resJustify=1
resExtFont=Nokia Sans 13
resFontName=3
resFontSize=12
resWrapLongLines=false
progressAnimationFrames=0
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=queen-beecon-progress
updOnStartup=true
updOnClick=true
multiClick=false
updOnDesktop=false
updOnSight=false
updOnOrientation=false
delayIndex=4
customIntervalSecs=0
updNeworkPolicy=1
GPSsettings=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=

Alfred 2011-04-26 13:43

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Prozac786 (Post 995561)
Below is the entire script that the yahoo weather beecon uses, that displays high, low and current temperature. Somewhere in there is the string that you are after. I am not sure where so I pasted the whole thing. I hope this helps:

Thanks, that's where i got High and low. Just can't figure out which one is for the current, tried a lot.Thanks anyway!

Prozac786 2011-04-26 14:07

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
No problem, with this script does your weather seem to be updating? Mine was, but has stopped today for some reason and I can't explain why

Alfred 2011-04-26 14:27

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
2 Attachment(s)
I got it!!!
Here is the code:
Code:

echo `grep 'forecast-icon.*http.*png' /home/user/imagemagick/ywtemp.htm  | grep -o yw-temp..[-0-9]\\* | grep -o temp..[-0-9]* | grep -o [-0-9][-0-9]*`°C| \
I didn't work before, gotta be some mispelling or smth.
Yes it does update, and actually with this code even better than with the yahoo QBW, With QBW it showed the wrong current temp, like the website does(yahoo). But now everything works great!

S****. You are not going to believe that. I wanted to make a screenshot for you. So i ran a script again with new size font now, and it showed the wrong Current Temp... SHOOOOOOT.
See the first one is with right temp 19C
second is what the website shows...

bibounefr 2011-04-26 14:50

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Alfred (Post 995588)
I got it!!!
Here is the code:
Code:

echo `grep 'forecast-icon.*http.*png' /home/user/imagemagick/ywtemp.htm  | grep -o yw-temp..[-0-9]\\* | grep -o temp..[-0-9]* | grep -o [-0-9][-0-9]*`°C| \
I didn't work before, gotta be some mispelling or smth.
Yes it does update, and actually with this code even better than with the yahoo QBW, With QBW it showed the wrong current temp, like the website does(yahoo). But now everything works great!

S****. You are not going to believe that. I wanted to make a screenshot for you. So i ran a script again with new size font now, and it showed the wrong Current Temp... SHOOOOOOT.
See the first one is with right temp 19C
second is what the website shows...




hello, how do you do LockScreen weather? thank you for your reply:)

Alfred 2011-04-26 14:52

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Well, i think i'll create a HOW TO thread tonight.

rishabsp 2011-04-26 15:15

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Is it possible to create .deb for it,if possible please create will be helpful to noobs like me..or any program that will do all this process automatically like web os game manager..

Alfred 2011-04-26 15:36

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
There is a script, that will do everything automatically. Moreover, you can let Alarmed execute it any time you want to. You will just need to have imagemagick installed and then Alarmed set to execute this script any time.

bibounefr 2011-04-26 16:48

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Alfred (Post 995605)
Well, i think i'll create a HOW TO thread tonight.


great, thank you, I await it with impatience:):)

Alfred 2011-04-26 20:23

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Alfred (Post 995605)
Well, i think i'll create a HOW TO thread tonight.

Here is the new thread

Storm_11 2011-04-27 14:17

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
this guide is great, very easy to use. one small request, I looked at the code but couldn't see where to do it.... if we wanted the temperature to appear below the weather image, and not beside it, what would we have to change?

so instead of

Quote:

{ICON} (temperatures)
it would instead become

Quote:

{icon}
(temperatures)

Alfred 2011-04-27 15:56

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
I think that's why i created another thread. Go over there and ask your question again, so i can answer it, and ppl would also understand what are we talking about

Storm_11 2011-04-28 00:34

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Alfred (Post 996298)
I think that's why i created another thread. Go over there and ask your question again, so i can answer it, and ppl would also understand what are we talking about

I am talking about the original poster, the desktop widget, not your lock screen

Prozac786 2011-04-28 14:00

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Storm_11 (Post 996236)
this guide is great, very easy to use. one small request, I looked at the code but couldn't see where to do it.... if we wanted the temperature to appear below the weather image, and not beside it, what would we have to change?

so instead of



it would instead become


I am honestly not sure how to do this, as I am not the creator of the widget and also a complete QBW noob.

The original instructions of how to install this widget were too confusing, so after understanding and testing them, I decided to write my own guide based on my own experinces.

But all I can do is tell you the easy/step by step way to follow the original guide, which is linked here:

http://talk.maemo.org/showpost.php?p...postcount=2322

Click on this link and PM the original poster there, I'm sure he will be able to answer your question as he is the one who created this widget.

Sorry I couldn't be of more help!

n900 lover 2011-04-29 21:23

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
hi guys i my flipclock stopped working, i tried the interval at 30 secs but nothing...any ideas?

robin92 2011-04-30 10:12

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
"image not found" at the clock widget, but the wether and ip widget work
ihave mad the guide twice :S

Prozac786 2011-04-30 16:42

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
If you followed the guide exactly, all the images should be in the right folder, according to the instructions. You are definitely missing a step if you get the image not found message.

junieboi 2011-04-30 21:09

Re: [Noob Friendly Guide] How to get HTC Style Weather App/Widget on N900
 
1 Attachment(s)
Quote:

Originally Posted by Prozac786 (Post 993191)
If you have followed the above steps correctly, you should get a widget that looks something like this......


:D

--

kudos for the post, reached section 4 got the desired results so far, but @ sec 4.3 i don't get the same text in my box, see attached screenshot, any assistance required

Kenny1001 2011-04-30 22:22

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
worked in one shot, very clear tuto, thx!!
how can I add/change things like Ip adress(lets say I want cpu temperature or something to be displayed...

I also wanted the numbers bigger, and the background, but I'm happy :)

Prozac786 2011-05-01 10:37

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Kenny1001 (Post 998020)
worked in one shot, very clear tuto, thx!!
how can I add/change things like Ip adress(lets say I want cpu temperature or something to be displayed...

I also wanted the numbers bigger, and the background, but I'm happy :)

Resizing is easy, just adjust the widget height and width as well as the scale (which will appear if you scroll down, set the different scales (for text/image/title etc.) at your desired level. There is a post earlier in this thread that explains how to do this.

Things like getting CPU temp to be displayed are not in my know how, as mentioned earlier, I just followed the instructions of the original HTC style flip clock and wrote an easy to understand version of the same instructions.

I'm really a QBW noob my self, so won't be able to help you display anything different, other than what's instructed in this guide.

The actual author/creator of the HTC style flip clock widget is Darkgunman, and his post is linked in the first post of my thread.

You may have to contact him for further assistance.

Prozac786 2011-05-01 10:41

Re: [Noob Friendly Guide] How to get HTC Style Weather App/Widget on N900
 
Quote:

Originally Posted by junieboi (Post 997995)
kudos for the post, reached section 4 got the desired results so far, but @ sec 4.3 i don't get the same text in my box, see attached screenshot, any assistance required

Hmm that is weird. I honestly do not know why, all I can say is, if you followed each and every step correctly then you should get the same text in the box as everyone else, I am not sure you your text is different.

All I can say is completely delete that widget and create it again from scratch, sometimes I find that these widgets bug for no apparent reason, even if you do everything right.

Rather than editing or changing the same one, I just delete it completely and re-create it from scratch following the instructions from my first post.

If this still does not solve your problem, then you will have to contact one of the creators who's threads I have linked in my first post, as they will have the knowledge of how to help you.

I just translated their work into a simple, easy to understand user guide, I am not the creator my self.

Hope this helps.

chaithebest 2011-05-03 05:55

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
why dont i have something like this "y=id37 m=id38 d1=id39 d2=id40 w=id" under my "edit cmd"?

what's showing is "echo test && exit 0".. what am I doing wrong? im not a techy person but I tried to follow what's on the instruction.. please help, i really do want this HTC-like clock.. Thanks..

eefo 2011-05-03 06:09

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by chaithebest (Post 999185)
why dont i have something like this "y=id37 m=id38 d1=id39 d2=id40 w=id" under my "edit cmd"?

what's showing is "echo test && exit 0".. what am I doing wrong? im not a techy person but I tried to follow what's on the instruction.. please help, i really do want this HTC-like clock.. Thanks..

are you checking it in panel's settings ?

chaithebest 2011-05-03 06:19

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
yes.. but i think i'll just give it another shot to re-do the whole instruction later.. wish me luck.. thanks..

eefo 2011-05-03 06:20

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by chaithebest (Post 999189)
yes.. but i think i'll just give it another shot to re-do the whole instruction later.. wish me luck.. thanks..

lol
best of luck !

chaithebest 2011-05-03 09:11

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
just done it.. successful.. Thanks!!

lakshman.mn 2011-05-03 09:22

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
I have been able to get this widget working. Thanks to members who are keeping the device alive. You guys are doing amazing stuff!

I would like to get the city name to the left of the weather image that is shown. Can somebody help me?

Thanks in advance

A.J. 2011-05-03 15:16

section 3 step 6
 
i really dont know what you mean with ''advanced settings'' in section 3 step 6 i go to filebox but there is no advanced settings and also not in settings:confused: plz help

Prozac786 2011-05-03 15:49

Re: section 3 step 6
 
Quote:

Originally Posted by A.J. (Post 999481)
i really dont know what you mean with ''advanced settings'' in section 3 step 6 i go to filebox but there is no advanced settings and also not in settings:confused: plz help

Advanced settings is not in filebox, you only use filebox to open a text file and copy that text. Thats it.

Advanced settings is in the settings of the beecon you create.

So after you copy the text as instruced. You go back to the desktop screen, go to the option of adding new widget, click QueenBeecon and press ok

Then on this widget you just added, go to settings, once the settings window opens, look to the bottom right corner of this window, it will have an option saying advanced. Thats the one you click, this is the advanced setings option.

Follow the rest of the guide from there.

Prozac786 2011-05-03 15:51

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by lakshman.mn (Post 999275)
I have been able to get this widget working. Thanks to members who are keeping the device alive. You guys are doing amazing stuff!

I would like to get the city name to the left of the weather image that is shown. Can somebody help me?

Thanks in advance

Best to post this question in the QBW for noobs thread, as they will be able to answer it better. I am a noob at this my self so can't help you there much.

A.J. 2011-05-04 07:19

Re: section 3 step 6
 
Quote:

Originally Posted by Prozac786 (Post 999494)
Advanced settings is not in filebox, you only use filebox to open a text file and copy that text. Thats it.

Advanced settings is in the settings of the beecon you create.

So after you copy the text as instruced. You go back to the desktop screen, go to the option of adding new widget, click QueenBeecon and press ok

Then on this widget you just added, go to settings, once the settings window opens, look to the bottom right corner of this window, it will have an option saying advanced. Thats the one you click, this is the advanced setings option.

Follow the rest of the guide from there.

Thx :D now i can finally go further

A.J. 2011-05-04 09:56

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
:confused: i thought it was noob friendly but i dont get some things witch ''0'' do you mean at section 4 and i i f|_|cked it up at beecon so i just took the steps of section 3 again:confused::confused: but can someone help me i am really noob and i really want the htc clock (isnt it able to just make a widget for it??)

junieboi 2011-05-04 12:42

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by chaithebest (Post 999265)
just done it.. successful.. Thanks!!

hi chaithebest, had a similar prob to you only my window had different txt, so how did you solve yours, thanks in advance:(

abhideva 2011-05-04 17:02

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
hey can i get this widget in deb format ?? pls !!!!!

junieboi 2011-05-04 18:04

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by Prozac786 (Post 994253)
My mistake, fixed now, ammended it in guide.

Hi is it my understanding that instead to deleting the qbw_flipclock image as @ section 2.5 that i now rename it. You said you ammend the guide, where can i find the amended guide. many thanks

Prozac786 2011-05-04 21:21

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by A.J. (Post 999908)
:confused: i thought it was noob friendly but i dont get some things witch ''0'' do you mean at section 4 and i i f|_|cked it up at beecon so i just took the steps of section 3 again:confused::confused: but can someone help me i am really noob and i really want the htc clock (isnt it able to just make a widget for it??)

This is noob friendly, it's very easy to follow instructions, just read them carefully.

I clearly meant all 4 of the 0's that appear. I wrote that in the guide

Prozac786 2011-05-04 21:23

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by junieboi (Post 1000168)
Hi is it my understanding that instead to deleting the qbw_flipclock image as @ section 2.5 that i now rename it. You said you ammend the guide, where can i find the amended guide. many thanks

I amended it in first post, you delete the qbw_flipclock.png (the one that looks like an N900) and you rename the panel.ng to qbw_flipclock.png and put it in the directory shown

Prozac786 2011-05-04 21:24

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Quote:

Originally Posted by abhideva (Post 1000140)
hey can i get this widget in deb format ?? pls !!!!!

It is not possible to get it in deb format as far as I know because it is a widget.

If someone wants to try and recreate it as an application it might be doable, I am not sure, but I definitely won't be the one to do it.

eL.ectron1k 2011-05-05 07:50

Re: [Noob Friendly Guide] How to get HTC Style Clock/Weather Widget on N900
 
Ahhhh
why when i press save and run - it doesnt goes to desktop - but goes Success message and on desktop these is widget with text - no image available............


All times are GMT. The time now is 14:51.

vBulletin® Version 3.8.8