php class for wunderground api

  • 2
  • Idea
  • Updated 5 years ago
Hello all,
I put together a quick PHP class for the API. You can see an example page here:
http://davidcool.com/news.php
You can download the class and other example files for the page above here:
http://davidcool.com/news/php_wunderg...
Please give me feedback if you find errors or make improvements, I'd love to hear!
Sorry if the code is a bit sloppy, I did this quickly...

Enjoy,
David

artist + technologist
david@davidcool.com
http://davidcool.com/
Photo of davidcool

davidcool

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 2
Photo of davidcool

davidcool

  • 3 Posts
  • 0 Reply Likes
Hi all,

I had to change the folder name that contains the download files:

http://davidcool.com/weather_news/php...

d
Photo of mboltonwx

mboltonwx

  • 12 Posts
  • 0 Reply Likes
Maybe it's just me, but there seems to be a 403 forbidden error on that second link.
Photo of davidcool

davidcool

  • 3 Posts
  • 0 Reply Likes
@mboltonwx

Sorry, had the permissions on that folder ratcheted down, it should work now.

Cheers
Photo of brzanek

brzanek

  • 5 Posts
  • 0 Reply Likes
Hi I downloaded the file you php_wunderground as I entered your API key and my place and everything works. But how to make the location of the weather forecast for the ip address as it is with you on the http://davidcool.com/news.php
Please help bpo I can not deal with it thank you for your help and best regards.