Read the statement by Michael Teeuw here.
Weather not working since MM update
-
I’m running two mirrors from one virtualised Pi, and both gave me the update is available message earlier. I backed up and updated, and now the weather module is stuck on loading on both. I get the following error message in the browser console:
openweathermap.js:479 Uncaught TypeError: this.hide is not a function at Class.getParams (openweathermap.js:479) at Class.getUrl (openweathermap.js:122) at Class.fetchCurrentWeather (openweathermap.js:31) at weather.js:163
and line 479 is:
this.hide(this.config.animationSpeed, { lockString: this.identifier });
I’ve just checked the old file from the backup, and the same line exists, but on line 440:
this.hide(this.config.animationSpeed, { lockString: this.identifier });
The only change I’ve made on my end was to the MMM-Fitbit2 module, and that only runs on one of the mirrors. The change is here in case it makes a difference:
https://forum.magicmirror.builders/topic/14879/mmm-fitbit2-pythonshell-is-not-a-constructor
Please let me know if you need any more information :)
-
@tippon you did the npm install after the git pull right?)
-
@sdetweil Not as far as I know. I used MMM-Remote-Control to update remotely
https://github.com/Jopyth/MMM-Remote-Control
I’ll try npm install now and see if it fixes it.
-
@sdetweil I’ve just done npm install and it made no difference. I rebooted and there was no difference, so I did git pull on both installations too, just in case. Git pull said already up to date in both cases, and npm install ran through but made no difference.
EDIT: Sorry, I’ll be a little while before I answer again. I’ve just realised that it’s 5am here, so I’m going to bed :astonished_face:
-
I realised today that I’m having a problem with MMM-fitbit2 too. I fixed the issue in my other thread here yesterday:
but updated Magic Mirror shortly after, so I’m not sure if the problem existed before the update or not.
The module loads and seems to work, but I’m only getting values returned for the calories I’ve burned and my weight. My food eaten isn’t updating, even though it’s showing in my Fitbit dashboard.
I know this probably isn’t related, but as both issues appeared at the same time I thought it was worth a mention just in case.
-
@tippon that code is in a weird place… it is asking for the part of the url to be added based on the configuration…
and for some reason it just abandons the work and returns… with garbage…
-
@tippon said in Weather not working since MM update:
I realised today that I’m having a problem with MMM-fitbit2 too. I fixed the issue in my other thread here yesterday:
but updated Magic Mirror shortly after, so I’m not sure if the problem existed before the update or not.
The module loads and seems to work, but I’m only getting values returned for the calories I’ve burned and my weight. My food eaten isn’t updating, even though it’s showing in my Fitbit dashboard.
I know this probably isn’t related, but as both issues appeared at the same time I thought it was worth a mention just in case.
I’m really sorry, I’ve just found out that the reason that my food eaten wasn’t being updated is that my calorie goal had been deleted from my Fitbit dashboard. I use other apps that fill the same goal in, so I hadn’t noticed.
I’m still getting the weather issue though.