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

Meteogalicia source (Galician meteorology agency) #1066

Closed
6 tasks done
appuchias opened this issue May 21, 2024 · 9 comments
Closed
6 tasks done

Meteogalicia source (Galician meteorology agency) #1066

appuchias opened this issue May 21, 2024 · 9 comments
Labels
Needs more info Further information is requested New source Requests about a new source option Open to contributions This issue is open to the community for implementation Stale Issue will be closed within 7 days without feedback

Comments

@appuchias
Copy link

appuchias commented May 21, 2024

Link to publicly available documentation of the API

https://meteo-estaticos.xunta.gal/datosred/infoweb/meteo/proxectos/meteosix/API_MeteoSIX_v4_gl.pdf

Available and not available data

Available: Sky status, temperature, humidity, wind, precipitation, cloud cover, sea-level pressure and snow cover
Also, on sea spots: wave period, wave bearing, wave height, water temperature, salinity,

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

No, as I don't know Kotlin

Give a bit more details or context about this source

This source has very accurate data in Galicia, and it's ran by the local administration.
It requires a free API key that has to be requested by sending an email to: administracion-web.meteogalicia@xunta.gal.

The API info homepage is the following: https://www.meteogalicia.gal/web/modelos-numericos/meteosix
The API base URL is: https://servizos.meteogalicia.es/apiv4/

Acknowledgements

  • I have searched the existing sources and the existing new source requests and this is a new source, NOT a duplicate or related to another open OR closed issue.
  • This source has a free-tier available (not a trial period), and if it is a main weather source, it includes free hourly forecast
  • I understand there may be technical limitations that may prevent implementing this source (for example, the lack of coordinates information)
  • This source does not require sensitive information (billing info, phone number, etc) to subscribe to the free-tier
  • I wrote my request in English. I can write in my native language under the English text, if necessary.
  • I understand that this app is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, so I may not get a positive reply to my request, if any at all.
@appuchias appuchias added Needs review Issue that need to be analyzed (reproduced for a bug, take a decision for an idea, etc) New source Requests about a new source option labels May 21, 2024
@delthia
Copy link

delthia commented May 21, 2024

Another option from the same source is this: https://www.meteogalicia.gal/web/rss-georss-json
They don't call it an api, but most of the prediction and observation data exists there.

I also can't help with the kotlin side of things, but otherwise I'd be happy to help.

@papjul
Copy link
Collaborator

papjul commented May 21, 2024

Is there a documentation... in English?

Isn't there a more automated way to register than writing an email (in galego I guess?)?

The rss-georss-json requires an id cancello, is there a web service that can return the nearest cancello from a longitude and latitude?

@papjul papjul added Needs more info Further information is requested and removed Needs review Issue that need to be analyzed (reproduced for a bug, take a decision for an idea, etc) labels May 21, 2024
@delthia
Copy link

delthia commented May 21, 2024

The only way to get the key is through the email. And now that you mention it, it is true that it doesn't geocode, there is a table to join the id with the name, so it could work by searching the place but not with location.
The API (the part that requires and API key) does allow you to do that.

@appuchias
Copy link
Author

appuchias commented May 21, 2024

I'm not really sure about the English documentation.

Registration emails can be in other languages, I sent mine in Spanish and there were no problems.
A template email could be provided for easier registration, something like this.

Which in English would be:

  • Subject: API key request
  • Body:
Hi,
I'd like to get an API key.

Thanks in advance.

Regarding the translation from coords to concello, I think Nominatim would be fine, using their reverse search endpoint documented here, the concello would be in address>municipality (I think)

@papjul
Copy link
Collaborator

papjul commented May 21, 2024

Regarding the translation from coords to concello, I think Nominatim would be fine, using their reverse search endpoint documented here, the concello would be in address>municipality (I think)

We don't mix up sources. The concello must be provided by the weather source as there is no reason to think that an external source such as Nominatim would be in sync with a meteorological service. Also, Nominatim doesn't provide the mandatory timezone field (although for Spain, it could be hardcoded).

I need to take a closer look as the documentation isn't in English but it may be possible to get weather for specific longitude/latitude with the API.

@papjul papjul added Needs review Issue that need to be analyzed (reproduced for a bug, take a decision for an idea, etc) and removed Needs more info Further information is requested labels May 21, 2024
@papjul
Copy link
Collaborator

papjul commented May 22, 2024

It looks like the API indeed accepts longitude and latitude, so it's fine.

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

No, as I don't know Kotlin

If you have programming experience in other object-oriented languages, it will be straightforward (and I can complete/help if you struggle in some quirks of the Kotlin language). Most of the work has been abstracted, you can just look at existing sources. It's also documented here: https://github.com/breezy-weather/breezy-weather/blob/main/CONTRIBUTE.md#weather-sources

Otherwise, I can put it in "Open to contributions" but there is a high chance no one will pick it up. While variables are written in English in the API, there are point of attentions written in galego that the developer must read, so it restricts the implementation to someone who can read and understand it.

Can you also give us the rate-limit of the API per API key? If this information is not public, can you write to them and ask them? Thanks!

@papjul papjul added Open to contributions This issue is open to the community for implementation Needs more info Further information is requested and removed Needs review Issue that need to be analyzed (reproduced for a bug, take a decision for an idea, etc) labels May 22, 2024
@appuchias
Copy link
Author

appuchias commented May 22, 2024

Once May ends I'll take a look at the existing sources and try to adapt one of them following the docs you provided if I have some free time.

Can you also give us the rate-limit of the API per API key? If this information is not public, can you write to them and ask them? Thanks!

I'm pretty sure it isn't rate-limited, it doesn't mention it in the API manual PDF and there isn't any response as "Too many requests" in pages 68 or 69.
The RSS/GeoRSS/JSON option mentioned by delthia doesn't requre a key, so I guess it isn't limited either.

Edit: Forgot to add, thanks for your help :)

Copy link

The Breezy Weather project highly values your report and would love to see it addressed. However, this issue has been left in “Needs more info” mode for the last 7 days and is being automatically marked as “Stale”. If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the Stale Issue will be closed within 7 days without feedback label May 30, 2024
Copy link

github-actions bot commented Jun 7, 2024

This issue has been automatically closed due to inactivity. If you are still experiencing problems, please open a new issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs more info Further information is requested New source Requests about a new source option Open to contributions This issue is open to the community for implementation Stale Issue will be closed within 7 days without feedback
Projects
None yet
Development

No branches or pull requests

3 participants