Rudd-O / homeassistant-meteoswiss

:sun_behind_rain_cloud: :switzerland: Meteo Swiss Integration for Home Assistant (forked from websylv)
92 stars 11 forks source link

7 day forecast? #53

Open badewanne1234 opened 3 months ago

badewanne1234 commented 3 months ago

Hi

This is not really an issue, its rather a question and potentially an enhancement. The Meteo Schweiz websites a 7 day forecast (or 8 days if today is included), but the HA integration only provides 5 days resp. 6 days if today is included. Is there a technical limitation on the API or is this just "by accident" only 5/6 days in the integration?

Thank you

Rudd-O commented 2 months ago

The URL we use:

curl 'https://app-prod-ws.meteoswiss-app.ch/v1/forecast?plz=671000&graph_startLowResolution=true&warning=true' | jq .

only supplies us with 6 days.

Not sure why it does not provide others. If you find another API URL which does provide more than 6 days of daily forecasts, please let me know so I can use that.

badewanne1234 commented 2 months ago

@Rudd-O the URL that provides an 8 days forecast (incl. today) is this one: https://app-prod-ws.meteoswiss-app.ch/v2/plzDetail?plz=390000 Can you reopen the issue please since I can't, thank you.

Rudd-O commented 2 months ago

Reopened!