jclarke0000 / MMM-OpenWeatherForecast

Magic Mirror weather module using OpenWeather API
42 stars 25 forks source link

Weather won't load #22

Closed dsouzadrian closed 1 year ago

dsouzadrian commented 1 year ago

Not sure what happened, but the weather wont load anymore at the turn of the new year.

Following is what shows on the Magic Mirror display

image

Below are the logs on the client side - nothing stands out to me

image

Below are the logs from the server

[03.01.2023 11:09.01.532] [ERROR] TypeError: Cannot read properties of undefined (reading 'get')
    at Class.socketNotificationReceived (/opt/magic_mirror/modules/MMM-OpenWeatherForecast/node_helper.js:57:15)
    at Socket.<anonymous> (/opt/magic_mirror/js/node_helper.js:108:11)
    at Socket.emit (node:events:513:28)
    at Socket.emitUntyped (/opt/magic_mirror/node_modules/socket.io/dist/typed-events.js:69:22)
    at /opt/magic_mirror/node_modules/socket.io/dist/socket.js:614:39
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Below is my config:

{
    module: "MMM-OpenWeatherForecast",
    position: "bottom_left",
    header: "Forecast",
    config: {
            apikey: "********", //only string here
            latitude: **,            //number works here
            longitude: **,          //so does a string
            showSummary: false,
            iconset: "3c",
            forecastHeaderText: "Forecast at Home",
            showExtraCurrentConditions: true,
            showHourlyForecast: false,
            units: "metric",
            concise: true,
    }
},
dsouzadrian commented 1 year ago

doing an npm install fixed the issue