Skip to content

ffd8/openweathermap-api-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openweathermap api for processing

RIP Yahoo's YQL weather services. 😭 It was a great and easy to use API for student projects. It's replacement, YDN with OAUTH requirements (lacking documentation), isn't exactly friendly. In need of emergency fix, thankfully found openweathermap.org via twitter thread on issue. Let's hope it's free service lasts.

Here's a basic Processing (3.4) example for querying the API by city name and parsing a handful of the XML results back. Could request JSON, but existing project was in XML, so yeah.

Get API Key

Sign up for a free API key (limited to 60 calls per min)

Parsed Values

  • returnedCity
  • returnedCountry
  • lon, lat
  • tempHigh
  • tempLow
  • temperature
  • humidity
  • pressure
  • weatherValue
  • weatherName
  • visibility
  • cloudsValue
  • cloudsName
  • windSpeed
  • windName
  • windDirection

There's plenty of additional fields to consider: Sample call for London So just add any missing ones as needed, ie. sun rise/set.

Hope it helps your future creative coding project using the weather.

About

Talk to openweathermap.org data via Processing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors