Welcome, Guest
Please Login or Register.    Lost Password?

Yahoo weather widget for Shadow4
(1 viewing) (1) Guest
Go to bottomPage: 12345
TOPIC: Yahoo weather widget for Shadow4
#19020
Re:Yahoo weather widget for Shadow4 1 Year, 5 Months ago  
Rainlendar can handle formula via lua script.

You say Yahoo provide 5 days data, I guess you are referring to this page, right ?
www.weather.com/weather/5-day/Toronto+CAXX0504:1:CA
(this page has a lot of information not needed)
Or you are referring to other pages easier to read.

And I found, when the temperature is 0 or 1, and the Wind is 0 or 1, that formula does not apply.
anoob
Platinum Boarder
Posts: 500
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#19021
Re:Yahoo weather widget for Shadow4 1 Year, 5 Months ago  
Yes, I was referring to that webpage, I didn't realize they redirected me.
Is the extra stuff a problem? I opened the source file and searched for <dt>Wind:</dt> and it gave me exactly 4 matches - 4 because one day from the 5 has no wind on that day and the webpage says "N/A". It should be easy to ignore everything else.

The formula in excel does work if the temperature is 0 but does not work if the wind is 0. This makes sense because if it is 0 there is no wind blowing, and it's impossible to feel a chill. Anyway, on most weather charts if wind is less than 5 km/h they say there is 0 wind chill.
(Here is another chart if you're interested - if the number is + the wind chill is reported as 0.)
www.novaweather.net/wndchll.gif

To fix the excel formula just make it ignore anything less than 5 km/h.
=if(wind>4,13.12+0.6215*temperature-11.37*POWER(wind,0.16)+0.3965*temperature*POWER(wind,0.16),"~")


Also, once you have the answer,
=if(answer<1,"~",show answer)

I'm mostly trying to see if this project is possible, but if it's too much work then don't bother with it.

SereneSavage
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Location: Canada
Last Edit: 2013/03/22 04:11 By SereneSavage.
The administrator has disabled public write access.
 
#19024
Re:Yahoo weather widget for Shadow4 1 Year, 5 Months ago  
Is the extra stuff a problem? No, just want to know there is no other choice.

And, my first idea is to make a new skin, so simply hope the source is more streamlined (my previous reference source was a rss feed, it is very streamlined), but later I found it is too time-consuming, so I decided to modify the old skin, that is, I only need to place data in tooltip.

Modified file has been uploaded to customize.org/rainlendar/skins/91083
please to try and tell me if there is problem or other needs.

anoob
Platinum Boarder
Posts: 500
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
Last Edit: 2013/03/23 22:08 By anoob.
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#19025
Re:Yahoo weather widget for Shadow4 1 Year, 5 Months ago  
Wow

This is beautiful! I'm very happy. Thank you.

I just saw your edit. The formulas for celcius and fahrenheit are different.

Celcius= 13.12+0.6215*temperature-11.37*POWER(wind,0.16)+0.3965*temperature*POWER(wind,0.16)

Fahrenheit= 35.74+0.6215*temperature-35.75*POWER(wind,0.16)+0.4275*temperature*POWER(wind,0.16)

Also, some minor things:



1. The f in feel like should be capital F.
2. There should be an s at the end of feel to read Feels. Thats more grammatically correct.
3. The L in like could be capital L.
4. The ` between high and low could be / because it looks better.

One more thing, in the main window, for the low/high of the 5 days, please change to high low and add + for the positive degrees. (mine said -4/3 and I thought it was -4/-3 but its really -4/+3 so change to make it +3/-4)

You know, if you really wanted to get fancy, you could get all the same information in the tooltip for today and use it for the 5 days, the only thing different is 5 different urls, but the same scripting.
www.weather.com/weather/today/CAXX0504
www.weather.com/weather/tomorrow/CAXX0504
www.weather.com/weather/wxdetail2/CAXX0504
www.weather.com/weather/wxdetail3/CAXX0504
www.weather.com/weather/wxdetail4/CAXX0504
SereneSavage
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Location: Canada
Last Edit: 2013/03/23 08:27 By SereneSavage.
The administrator has disabled public write access.
 
#19027
Re:Yahoo weather widget for Shadow4 1 Year, 5 Months ago  
The formulas for celcius and fahrenheit are different.
Celcius= 13.12+0.6215*temperature-11.37*POWER(wind,0.16)+0.3965*temperature*POWER(wind,0.16)
Fahrenheit= 35.74 +0.6215*temperature- 35.75 *POWER(wind,0.16)+ 0.4275 *temperature*POWER(wind,0.16)
it does help. So now I do not have to consider the temperature conversion (because need to be converted twice).

1. The f in feel like should be capital F.
2. There should be an s at the end of feel to read Feels. Thats more grammatically correct.
3. The L in like could be capital L.
4. The ~ between high and low could be / because it looks better.

One more thing, in the main window, for the low/high of the 5 days, please change to high low and add + for the positive degrees. (mine said -4/3 and I thought it was -4/-3 but its really -4/+3 so change to make it +3/-4)
Modified in accordance with your recommendations.

You know, if you really wanted to get fancy, you could get all the same information in the tooltip for today and use it for the 5 days, the only thing different is 5 different urls, but the same scripting. Yes I know, But I do not want to add too many things, currently it should be enough.

Modified files has been uploaded, please re-download and try.

anoob
Platinum Boarder
Posts: 500
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#19037
Re:Yahoo weather widget for Shadow4 1 Year, 5 Months ago  
This is wonderfull and it works great. Thank you anoob for all your hard work. As far as I can see everythings perfect. Good job.







I have a webpage for tv listings. Want to do the same thing?
(Just joking. )
SereneSavage
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Gender: Female Location: Canada
The administrator has disabled public write access.
 
Go to topPage: 12345
get the latest posts directly to your desktop