Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/287372-yahoo-weather-code/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/287372-yahoo-weather-code/#findComment-1474348
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/287372-yahoo-weather-code/#findComment-1474474
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.