Read the statement by Michael Teeuw here.
MMM-Pinfo problem on Rpi5
-
I got the Vilros V4 mirror so I didn’t have to source stuff. And I want to know the impact of the construction and venting limitations on the new RaspberryPi 5 that I have. I have installed MMM-Pinfo and having problems. I think that the rpi5 is too fast for async to get the data before the pi trying to use it. Or something like that. I tried out some of the other cpu stats modules and they all have problems. But they are pretty old too. MMM-Pinfo works on my rpi4. And all my other modules are displaying fine. I’ve disabled the other modules to make sure they weren’t a problem and I think it comes down to the node_helper.js in the MMM-Pinfo. Or the package systeminformation being updated broke something. But then I think the error would be different. For sure nothing is coming back from systeminfomation. I only see the loading messages.
here is what is in my pm2 logs:
at new Promise (<anonymous>:null:null) 0|MagicMir | at Class.getCPUInfo (/home/kelly/MagicMirror/modules/MMM-Pinfo/node_helper.js:167:16) 0|MagicMir | at Class.collectDynamicInfo (/home/kelly/MagicMirror/modules/MMM-Pinfo/node_helper.js:82:20) 0|MagicMir | at Class.scheduler (/home/kelly/MagicMirror/modules/MMM-Pinfo/node_helper.js:69:9) 0|MagicMir | 0|MagicMir | (Use `electron --trace-warnings ...` to show where the warning was created) 0|MagicMir | [25.01.2024 23:15.36.946] [ERROR] (node:7179) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
And this forum topic made me think my pi is too fast and so maybe Pinfo needs working over maybe sothe script can wait on the answer from the systeminformation?
https://forum.magicmirror.builders/topic/15539/async-functions-inside-node_helper-js/5
i’m not sure quite how to start, but I will try if you all think that is what is probably going on. I’m not quite a newbie but haven’t touched this since last year and I’m definitely no expert.
-
I’m having the exact same issue on my rpi5. None of the data will load and the same general error. Anyone with a rpi5 get this to work or have another module that will display the stats? Thanks!