The Following User Says Thank You to Alfred For This Useful Post: | ||
|
2011-04-26
, 13:27
|
Posts: 206 |
Thanked: 205 times |
Joined on Nov 2010
@ London
|
#42
|
|
2011-04-26
, 13:43
|
|
Posts: 855 |
Thanked: 612 times |
Joined on Oct 2010
@ Germany
|
#43
|
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:
|
2011-04-26
, 14:07
|
Posts: 206 |
Thanked: 205 times |
Joined on Nov 2010
@ London
|
#44
|
|
2011-04-26
, 14:27
|
|
Posts: 855 |
Thanked: 612 times |
Joined on Oct 2010
@ Germany
|
#45
|
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| \
|
2011-04-26
, 14:50
|
Posts: 33 |
Thanked: 2 times |
Joined on Nov 2010
|
#46
|
I got it!!!
Here is the code:
I didn't work before, gotta be some mispelling or smth.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| \
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...
|
2011-04-26
, 14:52
|
|
Posts: 855 |
Thanked: 612 times |
Joined on Oct 2010
@ Germany
|
#47
|
The Following User Says Thank You to Alfred For This Useful Post: | ||
|
2011-04-26
, 15:15
|
Posts: 132 |
Thanked: 27 times |
Joined on Jan 2011
|
#48
|
|
2011-04-26
, 15:36
|
|
Posts: 855 |
Thanked: 612 times |
Joined on Oct 2010
@ Germany
|
#49
|
|
2011-04-26
, 16:48
|
Posts: 33 |
Thanked: 2 times |
Joined on Nov 2010
|
#50
|
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:
Reps are just one click away: Extras | Extras-Testing | Extras-Devel | My-Maemo | CSSU |
Transform your lock screen into a weather forecast Thanks button ================>
Last edited by Alfred; 2011-04-26 at 13:03.