 |
|
 |
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
|
|
|
|
 |
|
 |
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 ?
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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!
|
|
|
|
 |
|
 |
I got it together. Thanks. Great code!
Dim t As New YahooWeatherForecast("89423", "f")
Me.lblWeather.Text = t.rss.channel.item.description
Me.lblSunrise.Text = t.rss.channel.astronomy.sunrise
Me.lblSunset.Text = t.rss.channel.astronomy.sunset
Me.lblhumidity.Text = t.rss.channel.atmosphere.humidity
Me.lblpressure.Text = t.rss.channel.atmosphere.pressure
|
|
|
|
 |
|
 |
How can I put the picture of the forecast in the form, even the weather map.
|
|
|
|
 |
|
 |
Heres how I put the radar map in mine...
PictureBox1.ImageLocation = "http://weather.yahoo.com/images/southeast_sat_440x297.jpg"
You will have to change the .jpg file to where you live on this ball of dirt and everything
should be fine.
As for the other pics, give me your e-mail address and I send you what I got. They are from another weather app (Microsoft, Build a Program Now VB2008). They work very well with this app.
Hopes this helps!!!
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
 |
|
 |
You can use new property that i put in new version (it is in the queue for posting in codeproject now):
You can access to this property like this: t.rss.channel.item.ImageURL
And you can load that Image URL in your picture box in the windows form appication.
PictureBox1.Load(t.rss.channel.item.ImageURL)
Be happy!
|
|
|
|
 |
|
 |
I try to use this code via localhost and it has the error "Unable to connect to the remote server". Please advise!
Thanks,
|
|
|
|
 |
|
 |
It use Yahoo! Weather,
So you need to have internet connection while you are using this code.
Be happy!
|
|
|
|
 |
|
 |
Of course I did. But it still has this problem. I use it at home, it works. But it doesn't work at my company. Do you think this is a network issue? If it does, could you please tell me what it is so I can talk to the IT guy to fix this.
Thanks,
Thanks
|
|
|
|
 |
|
 |
Yea, I face the same problem too...
I suspect because of the firewall and proxy...
try this website: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=727689&SiteID=1
I have try it but still got problem..
Anybody can help???
|
|
|
|
 |
|
 |
There are 2 forecast in the RSS, for tomorrow and the day after tomorrow. But it seems to have only one in your library right?
Anyway, thanks for a useful tool.
|
|
|
|
 |
|
 |
If any of you geniuses can figure out how to get this thing to run I'd appreciate it on letting me know.
|
|
|
|
 |
|
 |
what is the problem?
I am sure it works, and i am here to help you
for which city you want to get forecoast?
PS: Maybe you are useing .Net 2003, I wrote that in 2005, and i do not know if it works in 2003 or not
|
|
|
|
 |
|
 |
I am using 2005 edition. when I downloaded the source code and saved it to my hard drive. There is no exe in the download. I evebn tried to run it from
the site. The zip that I am trying to use is 15642.I am using Microsoft Visual Basic 2005 Express edition. Plus when I try and extract(unzip) not all the files will even extract to the folder. In the zip file there are five files missing
|
|
|
|
 |
|
 |
I saw the problem,
it was an ASP.net sample,
So i change the source and i put windows application sample on that too.
Be happy!
|
|
|
|
 |
|
 |
Morning,
Where can I get the new code to try??
|
|
|
|
 |
|
 |
I sent its update to the code project and it has been placed in the queue for updating.
You have to wait, or you can give me your mail address, so I will send it to you.
Be happy!
|
|
|
|
 |
|
 |
Your code is not even posted at all on the new issue just posted.
My email address is noll_steve@yahoo.com
Thanks
|
|
|
|
 |