Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: retrieve weather currently measured by a meteostation #50

Closed
csparpa opened this issue Nov 5, 2014 · 1 comment
Closed

Comments

@csparpa
Copy link
Owner

csparpa commented Nov 5, 2014

As read on the OWM API wiki:

Get the most recent measurements from weather station, ID = STATION_ID
Data can be called in JSON or HTML.

Example: http://api.openweathermap.org/data/2.5/station?id=1000

{"station":{"name":"KPPQ","type":1,"status":50,"id":1000,"coord":{"lon":-90.47,"lat":39.38}},"last":{"main":{"temp":279.15,"pressure":1022,"humidity":87},"wind":{"speed":2.1,"deg":230},"visibility":{"distance":16093,"prefix":0},"calc":{"dewpoint":277.15,"humidex":278.15},"clouds":[{"condition":"CLR"}],"dt":1415187300},"params":["temp","pressure","humidity","wind","visibility"]}

We need to introduce at least:

  • owm25.weather_at_station(id)
  • a new specific parser StationObservationParser, as the JSON is quite different from the one returned when querying for weather on city IDs. Next step then could be to refactor commonalities between the 2 parsers
@csparpa csparpa added this to the Release 2.2 milestone Nov 5, 2014
csparpa added a commit that referenced this issue Dec 7, 2014
@csparpa
Copy link
Owner Author

csparpa commented Dec 7, 2014

Implemented with PR #62

@csparpa csparpa closed this as completed Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant