 |
|
 |
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...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I got the weather url fix but alamak, i got this CType error popping up...What's is the problem ? Any suggestion ?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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) & "º"
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi , I am Dan here. I am also facing the same problem.I can't understand what is going wrong !
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 3.00/5 (1 vote) |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
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!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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,
|
| Sign In·View Thread·PermaLink | 3.50/5 (3 votes) |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
i would like to change the descriptions and the other wordings into chinese . but i have no idea what's the code for chinese (big5)
no luck with zh, zh-TW and zh-HK.
*** code *** t.rss.channel.language = "zh-HK"
any clue ?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Could you provide an example of how to use the Astronomy Class? Sorry I am new to this and I don't get it... Thanks.
KFW
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi As you can see in the example file there are 3 project, first one is a Class library (DLL) if you build that project you can see it's DLL file in bin directory now you can refrence that DLL in your project, like i do in other projects that are sample of web and win projects i am sure these examples projects can help you to know how to use that. Should you have any questions, please don't hesitate a moment to contact me. farhad
Be happy!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |