Skip to content

Explainable fields for weather forecasts #51

@albertomontesg

Description

@albertomontesg

I am currently trying to integrate the following endpoint provided by MeteoSwiss in order to fetch forecast information and expose it to Home Automation systems. Something I am encountering that the high level forecast or current weather is represented by some integer fields icon and icon_v2 which are really hard to map into some human readable representation. The same happens with the warnings information (which can be really beneficial to notify or use by Home Automation systems like block covers and blinds during high wind alerts). Still those fields are represented as raw integers without no mapping being made available.

The data I am fetching is from the following endpoint: https://app-prod-ws.meteoswiss-app.ch/v1/plzDetail?plz=815200 and provides some response like this one:

{
  "currentWeather": {
    "time": 1713658800000,
    "icon": 103,
    "iconV2": 103,
    "temperature": 2.9
  },
  "forecast": [
    {
      "dayDate": "2024-04-21",
      "iconDay": 18,
      "iconDayV2": 18,
      "temperatureMax": 6,
      "temperatureMin": 3,
      "precipitation": 5
    },
    ...
  ],
  "warningsOverview": [
    {
      "warnType": 5,
      "warnLevel": 2
    }
  ],
  ...

Would it be possible to make it open the mapping from such integers into human readable interpretations?

Thanks in advance for any information you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions