mmm-systemtemperature icon indicating copy to clipboard operation
mmm-systemtemperature copied to clipboard

Only ever “Loading…”

Open WaltmanBeta opened this issue 4 years ago • 3 comments

I really like this module! It has been working for a long time and I recently had to some updating to the system so decide to do a fresh install. I put a new image of RPi OS on a SD and installed the newest MM. I got this all up and running. I started reloading my configs and re-clowning all my used modules. Everything was looking back to its old self but this time updated on the back end...that is when I noticed this module showing only "Loading..." Now normally this happens for a little and than it populates with the actual temp...not this time. I finished setting up all the configs and auto starts and did a full reboot. Once it all came back online this module still showed the loading massage and continues to do so. It has now been 4hrs of continue running and it still shows "Loading..." I am not sure how to fix this as it is all a brand new install and this one module loads to screen just never populates. Thank you in advance for any help!

WaltmanBeta avatar Dec 23 '21 07:12 WaltmanBeta

check in the node.js section child = exec("/opt/vc/bin/vcgencmd measure_temp", function (error, stdout, stderr) { and change it to: child = exec("vcgencmd measure_temp", function (error, stdout, stderr) { hope it helps Greetz

oestimotiv avatar Dec 26 '21 13:12 oestimotiv

@oestimotiv Are you referring to the node-helper.js file within the mmm-systemtemperature module folder or another? I am sorry that these seem like basic questions but i am new to this style of coding.

I did change in the above file but it is causing an errors as can be seen in the log below: [ERROR] /home/pi/MagicMirror/modules/mmm-systemtemperature/node_helper.js:20 exec("vcgencmd measure_temp", function (error, stdout, stderr) => { SyntaxError: Unexpected token '=>'

Once I removed the => from the line then my errors increased even more.

WaltmanBeta avatar Feb 04 '22 02:02 WaltmanBeta

@WaltmanBeta Check the file 'node_helper.js' in folder '/home/pi/MagicMirror/modules/mmm-systemtemperature': exec("/opt/vc/bin/vcgencmd measure_temp", (error, stdout, stderr) => { and change it to: exec("vcgencmd measure_temp", (error, stdout, stderr) => { (without 'function'!!!), then it works properly!

SwissChemist avatar Mar 25 '22 22:03 SwissChemist