enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

keyless weather backend: met.no #369

Open yrps opened 8 years ago

yrps commented 8 years ago

Like weathercom, and unlike many others, no API key is required for ordinary use. (I question whether requiring an API key is even acceptable for an end-user weather application.)

This is the service that provides data to the xfce4 weather plugin. From the README of that project:

MET.NO API DOCUMENTATION
==========================================================================
To get a quick overview, please consolidate the met.no API weather
documentation and especially their FAQ, which answers some questions
left open by the former:

* General documentation and data licensing
  http://api.yr.no/weatherapi/documentation
  http://api.yr.no/faq.html
  http://api.met.no/license_data.html

* Service-specific documentation
  http://api.met.no/weatherapi/locationforecastlts/1.2/documentation
  http://api.yr.no/weatherapi/sunrise/1.0/documentation

For more technical details you might need to study the XML schema
corresponding to the document in question.

Sample request, which includes multiday results: http://api.met.no/weatherapi/locationforecast/1.9/?lat=60.10;lon=9.58;msl=70

terminalmage commented 4 years ago

Weather Underground has discontinued its API and I've rewritten the module such that it does not require an API key to use.

I took a look at this API, but it seems to me that it is lacking in several areas. It does not give current conditions (only hour-by-hour forecasts), it does not provide city names, it does not provide visibility, etc.