Read the statement by Michael Teeuw here.
Default Weather module still not displaying
-
May I ask how you are using
classes: "daytime_scheduler"
Are there two instances of
daytime_scheduler
I use
classes: “currentweather” type: “current”
and
classes: “weatherforcast” type: “forecast”
to replace the deprecated modules.
-
@Jarhead96097 use my install script
-
@sdetweil “On branch master,” and up to date with origin/master. I also meant to reply earlier that this is on a RPI 4B. Unfortunately, still getting the same error and the weather module is not displaying information.
I appreciate everyone’s time…but I’m going to cut to the chase and rebuild using your install script.
Thanks again for the time, you’re always very helpful, and I appreciate it.
-
@Jarhead96097 ah, one other question, what is the current node level
node --version
-
@sdetweil sorry, already using your installation script (but no “npm audit fix” this time around).
-
@sdetweil On my RPi4 it’s 16.16.0, and I’m getting the same problems as Jarhead. After an upgrade there’s now just no reaction to starting mm.
-
@Blackeye can u show the output of the npm start or, if using pm2 , then
pm2 logs --lines=50
how did u do the upgrade?
-
@Blackeye also, can u show me the contents of line 159 from
~/MagicMirror/modules/default/weather/weather.js
-
@OldSunGuy I use the MMM-ModuleScheduler 3rd party module to control when my MM turns off everything except the clock and dims the display at night. “daytime_scheduler” is the class I used to turn off those modules at night.
-
@sdetweil here is what my weather.js (newly rebuilt, but not yet configured) has on lines 148 to 166:
// What to do when the weather provider has new information available? updateAvailable: function () { Log.log("New weather information available."); this.updateDom(0); this.scheduleUpdate(); if (this.weatherProvider.currentWeather()) { this.sendNotification("CURRENTWEATHER_TYPE", { type: this.weatherProvider.currentWeather().weatherType.replace("-", "_") }); } const notificationPayload = { currentWeather: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null, forecastArray: this.weatherProvider?.weatherForecastArray?.map((ar) => ar.simpleClone()) ?? [], hourlyArray: this.weatherProvider?.weatherHourlyArray?.map((ar) => ar.simpleClone()) ?? [], locationName: this.weatherProvider?.fetchedLocationName, providerName: this.weatherProvider.providerName }; this.sendNotification("WEATHER_UPDATED", notificationPayload); },