Skip to content

[Bug] weather module openweathermap with api v2.5 broken with mm release v2.35.0 #4100

@khassel

Description

@khassel

Environment

####  System Information  ####
- SYSTEM:   manufacturer: Micro Computer (HK) Tech Limited; model: Docker Container; virtual: false; MM: v2.35.0
- OS:       platform: linux; distro: Debian GNU/Linux; release: 13; arch: x64; kernel: 6.17.0-20-generic
- VERSIONS: electron: undefined; used node: 24.14.1; installed node: 24.14.1; npm: 11.12.1; pm2: 
- ENV:      XDG_SESSION_TYPE: undefined; MM_CONFIG_FILE: undefined
            WAYLAND_DISPLAY:  undefined; DISPLAY: undefined; ELECTRON_ENABLE_GPU: undefined
- RAM:      total: 29854.41 MB; free: 20253.98 MB; used: 9600.43 MB
- OTHERS:   uptime: 299 minutes; timeZone: Europe/Berlin

Which start option are you using?

node --run server

Are you using PM2?

No

Module

weather

Have you tried disabling other modules?

  • Yes
  • No

Have you searched if someone else has already reported the issue on the forum or in the issues?

  • Yes

What did you do?

Configuration
{
            module: "weather",
            position: "top_right",
            config: {
                weatherProvider: "openweathermap",
                type: "current",
                location: "Alphen aan den Rijn",
                locationID: "2759875",
                apiKey: "xxx",
                apiVersion: "2.5",
                weatherEndpoint: "/weather",
            }
},

What did you expect to happen?

Showing weather

Image

What actually happened?

Showing this

Image

Additional comments

If I use v2.34.0 same config works.

Nothing in the logs (browser and backend).

There have also been several issues in the forum on this topic since the new release, however, this was mostly misinterpreted and attributed to the API change in openweathermap from 2.5 to 3.0.

Participation

  • I am willing to submit a pull request for this change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions