 |
|
 |
Sorry to trouble you!
I am a green hand and very interested in your code. But I cannot download, could you please send the project to my mailbox:zhaominghuan_hpu@163.com
I will appreciate very much!!
|
|
|
|
 |
|
|
 |
|
 |
How to I Add Severe Weathers Watch or Warnings or Both to your Library
|
|
|
|
 |
|
 |
Just about no explanation of any of the code at all. You just glance over a small portion of the RSS feed you get, nothing on it's contents, nothing on parsing it, caching data, class library description, ... the list goes on and on...
|
|
|
|
 |
|
 |
How do I add the Dew point to the atmosphereClass.vb file? I have not done this as of yet and would appreciate it if you could help me.
THNX
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
 |
|
|
 |
|
 |
How does one figure out the heat index?
Nice Job, Nice library, THNX for this addition to codeproject.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
 |
|
 |
Here is the code to figure the Heat Index....
Dim HI As Long Const C1 As Double = -42.379
Const C2 As Double = 2.04901523
Const C3 As Double = 10.14333147
Const C4 As Double = 0.22475541
Const C5 As Double = 6.83783 * (10 ^ -3)
Const C6 As Double = 5.481717 * (10 ^ -2)
Const C7 As Double = 1.22874 * (10 ^ -3)
Const C8 As Double = 8.5282 * (10 ^ -4)
Const C9 As Double = 1.99 * (10 ^ -6)
Private Function GetHeatIndex(ByVal h As Long) As String
Dim HINDX As Long
HINDX = ((C1 + C2 * CInt(Label6.Text)) + (C3 * CInt(lblHumidity.Text)) - (C4 * CInt(Label6.Text) * CInt(lblHumidity.Text)) - _
(C5 * CInt(Label6.Text) * CInt(Label6.Text)) - (C6 * CInt(lblHumidity.Text) * CInt(lblHumidity.Text)) + _
(C7 * CInt(Label6.Text) * CInt(Label6.Text) * CInt(lblHumidity.Text)) + _
(C8 * CInt(Label6.Text) * CInt(lblHumidity.Text) * CInt(lblHumidity.Text)) - _
(C9 * (CInt(Label6.Text) * CInt(Label6.Text)) * (CInt(lblHumidity.Text) * CInt(lblHumidity.Text))))
h = HINDX
Return h
End Function
Here is how you call it...
Label14.Text = GetHeatIndex(HI)
Thats it.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
 |
|
 |
Newbie here. This is exactly what I need for a VB2008 win project. However, I have no idea of where to start. I already have a project and would like to add this capability.
This is one of those situations where I don't know the question to ask so I can't even search on a topic. Please tell us newbies how to include your code with an existing application. Thanks
|
|
|
|
 |
|
 |
You have to add the library called "YahooWeatherLib.dll" to your project
and for getting how to use that you can see the samples that includded in the source project.
There are windows application (Vb.ne and C#) and the asp.net(vb.net) sample.
Be happy!
|
|
|
|
 |
|
 |
I got the weather url fix but alamak, i got this CType error popping up...What's is the problem ? Any suggestion ?
|
|
|
|
 |
|
 |
I'm trying to get the high and low for tomorrow but i cant seem to get it right. this is what i have so far so any help i would really appreciate it
Dim t As New YahooWeatherForecast(sZipCode, "f")
t.rss.channel.item.forecast.date = DateAdd(DateInterval.Day, 1, Today())
lblHigh.Text = "High: " & Convert.ToString(t.rss.channel.item.forecast.high) & "º"
lblLow.Text = "Low: " & Convert.ToString(t.rss.channel.item.forecast.low) & "º"
|
|
|
|
 |
|
 |
Well, several months ago I set up a Google Maps mashup offering Yahoo! Weather for almost all locations provided there. Have a look at http://www.airspace-v.com. You can also use this overlay for your own site!
virtuPIC
|
|
|
|
 |
|
 |
Hi, please excuse me I don't have any experience with vb. I was under the impression that I just had to change that one line of code to reflect the new yahoo address and then I could run the .exe file. However, I get a "There is an error in XML document (1, 696)" unhandled exception. What am I doing wrong?
|
|
|
|
 |
|
 |
Hi ,
I am Dan here. I am also facing the same problem.I can't understand what is going wrong !
|
|
|
|
 |
|
 |
New update is posted to code project,
you can check it latter.
Be happy!
|
|
|
|
 |
|
 |
The update works for US zip codes but not International location Ids
75063 Irving Tx works
DAXX0009 Cophegen Denamrk fails with
Line 79: Dim xs As New XmlSerializer(GetType(rssClass))
Line 80:
Line 81: c = CType(xs.Deserialize(d), rssClass)
Line 82:
Line 83: rss = c
Mcofer
Application Developer
Halliburton Energy Services
|
|
|
|
 |
|
 |
I found the problem
The visibility property in atmosphereClass needs to be a double not an Integer
Private _visibility As Double
Mcofer
Application Developer
Halliburton Energy Services
|
|
|
|
 |
|
 |
First change the zip code in line 4 from this "RX008XXX" to your zip code, save it, build it.
Do not run it inside the IDE. Open windows explorer, find the exe for yahoo weather...voila
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
 |
|
 |
Hi When i debug ur program it occur Input string was not in a correct format exception how can i solve this. i havent modify any of ur code.can you explain me..i hope u will help me.
sureshkumaran
|
|
|
|
 |
|
 |
Hi,
For some weeks i have no time to check and debug
but i think problem is for
Yahoo URL has changed to http://weather.yahooapis.com/forecastrss
the code in YahooWeatherForecast.vb at line # 64 needs to be chagned to http://weather.yahooapis.com/forecastrss?p=
otherwise you will get error
hope this help you
Be happy!
|
|
|
|
 |
|
 |
The code works great !!!
How would you modify the Class to accept multiple day forecasts?
I've seen some forecasts with up to 5 days.
Thanks,
|
|
|
|
 |
|
 |
Change the code in itemClass for forecast
Private _forecast As List(Of forecastClass)
''' <summary>
''' The longitude of the location
''' </summary>
<XmlElement()> _
Public Property forecast() As List(Of forecastClass)
Get
Return _forecast
End Get
Set(ByVal value As List(Of forecastClass))
_forecast = value
End Set
End Property
Now you have a Generic.List(of forecastClass) to iterate.
For Each FC As YahooWeatherForecast.rssClass.channelClass.itemClass.forecastClass In YahooWeatherForecast.rss.channel.item.forecast
'some code here
Next
|
|
|
|
 |
|
 |
the code in YahooWeatherForecast.vb at line # 64 needs to be chagned to http://weather.yahooapis.com/forecastrss?p=
otherwise you will get runtime errors
|
|
|
|
 |
|
 |
Hi,
I'm trying to load your project into Visual Basic 2005 Express but I get an error message that says-
'Solution folders are not supported in this version of Visual Studio'
Is it possible to overcome this in some way?
Steve_55
|
|
|
|
 |