breezy-weather / breezy-weather

A Material Design Weather Application
GNU Lesser General Public License v3.0
4.54k stars 142 forks source link

Aemet source (Spain meteorology agency) #1123

Closed Rapou7 closed 1 month ago

Rapou7 commented 1 month ago

Link to publicly available documentation of the API

https://opendata.aemet.es/dist/index.html?

Available and not available data

Daily Forecast ✅ Provided for 7 days in 6-hour intervals (00:00 / 12:00-18:00 / 18:00-24:00) Hourly Forecast ✅ Provided for one and a half days Weather Condition ✅ Temperature ✅ Precipitation Probability ✅ Provided in 6 hours intervals Wind ✅ UV ✅ Air Quality ✅ Pollen ❌ Not available Precipitation Nowcasting ❌ Not available Alerts ✅ Weather alerts provided Humidity ✅ Reverse Geocoding ✅ Provided

Are you going to develop yourself the new source for the app?

No, i dont know kotlin, but im gonna try my best

Give a bit more details or context about this source

This is the official source for Spain It requires a free API key that has to be requested on their webpage: https://opendata.aemet.es/centrodedescargas/altaUsuario? The API info homepage is the following: https://opendata.aemet.es/centrodedescargas/inicio The API base URL is: https://opendata.aemet.es/opendata

Acknowledgements

papjul commented 1 month ago

I had a look before and it seemed to me there was no way to get weather for a longitude and latitude, only by city ID, and there is no endpoint to get the nearest city (and its city ID) for a given longitude and latitude. Let me know if you find anything? In the absence of such endpoint, it's impossibke without bundling a huge database of cities which will not be accepted.

No, i dont know kotlin, but im gonna try my best

This implies you already know programming? Kotlin is easy and we have documentation. If you already know Java or OOP, it should not be hard.

Rapou7 commented 1 month ago

I sent them a suggestion to add a way to get weather for a longitude and latitude, but I doubt they'll do anything. I'll update if I make any progress or if they make any changes.

This implies you already know programming? Kotlin is easy and we have documentation. If you already know Java or OOP, it should not be hard.

I only know Python, and I'm not very advanced, so I don't think that I could code this alone.

papjul commented 1 month ago

Ok, feel free to open a new issue if you have anything new