Karner Posted March 28, 2014 Share Posted March 28, 2014 Hello, I am not sure how to approach this at all. I require a utility that requests the weather code for the area code given; example url being: "/getweather.php?code=USCA1085" An example site is this: http://www.real-samp-weather.tk/RSW_GET.php?code=USCA1085. Unfortunately, I have no idea how to approach this. I am not a PhP developer and simply cannot understand the yahoo weather API. Any assistance would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/287372-yahoo-weather-code/ Share on other sites More sharing options...
possien Posted March 28, 2014 Share Posted March 28, 2014 Basically it is a an RSS or XML request for a specific location (i.e. http://weather.yahooapis.com/forecastrss?w=12794688) . NOAA also provides weather feeds. You can research how to process and format these feeds using javascript, json, and/or php. You can, for example, create a user form for different locations in a drop down menu to retrieve and process feed data for cities in your area. There a numerous ways you can do it and it is somewhat involved. Quote Link to comment https://forums.phpfreaks.com/topic/287372-yahoo-weather-code/#findComment-1474348 Share on other sites More sharing options...
sKunKbad Posted March 31, 2014 Share Posted March 31, 2014 Since you have no experience with PHP, it's unlikely that you will be able to get very far, even with some help. The Yahoo weather feed is XML, and you would parse it with PHP's SimpleXML class. If you search Google or Yahoo for "Yahoo weather SimpleXML", you'll probably find some examples, as this feed is pretty popular. Quote Link to comment https://forums.phpfreaks.com/topic/287372-yahoo-weather-code/#findComment-1474474 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.