Read the statement by Michael Teeuw here.
MMM-SystemStats (cpu temp/load, fre ram ...)
-
does the Module work on mac?
-
@Stoffbeuteluwe
no
on Raspberry Pi 2B -
@chinesesich Same issue… something new?
-
@Fifin404 @chinesesich The issue seems to be the change in version of Font Awesome icons.
Try changing line 122 in MMM-SystemStats.js
c2.innerHTML = `< i class="fa ${sysData[item].icon} fa-fw"></i>`;to
c2.innerHTML = `< i class="fas ${sysData[item].icon} fa-fw"></i>`;ONLY change the “fa” to “fas”.
The rest can stay the same.
Don’t copy my input! I neede to put in a space for it to be viewable. -
How can you only display individual parameters?
I just want to see “Free memory” for example.
Thank you very much in advance -
@Lordy
if you mean free RAM, try this out in your custom.css.MMM-SystemStats tr { display: none; } .MMM-SystemStats tr:nth-child(3n+0) { display: table-row; }For free disk space it would be
.MMM-SystemStats tr { display: none; } .MMM-SystemStats tr:nth-child(5n+0) { display: table-row; }No guarantees!! I haven’t tried it!!
-
@lavolp3 said in MMM-SystemStats (cpu temp/load, fre ram ...):
.MMM-SystemStats tr {
display: none;
}.MMM-SystemStats tr:nth-child(5n+0) {
display: table-row;
}Thanks, it helped me.
How do I do this with “CPU_TEMP”? -
@Lordy try
tr:nth-child(6n+1)You have 5 children in the table element, which are the 5 table rows.
nth-child counts every “nth” children from 0.
So if you have nth-children(3n+0) it takes the 3rd 6th 9th. Only the 3rd is there so voila.nth-children(6n+1) SHOULD count the 1st, 7th, 13th children, of these only the 1st is available. So, hopefully again, voila.
getDom: function() { var self = this; var wrapper = document.createElement('table'); var sysData = { cpuTemp: { text: 'CPU_TEMP', icon: 'fa-thermometer', }, sysLoad: { text: 'SYS_LOAD', icon: 'fa-tachometer', }, freeMem: { text: 'RAM_FREE', icon: 'fa-microchip', }, upTime: { text: 'UPTIME', icon: 'fa-clock-o', }, freeSpace: { text: 'DISK_FREE', icon: 'fa-hdd-o', }, }; -
@Lordy I’m honestly amazed it worked.
-
@lavolp3
Now I understand it.
It also works that “tr:nth-child(5n+1)”.
With the background knowledge, it is clear to me.
Nice Weekend -
This post is deleted! -
@BenRoe Hey, ben - love your module - would like to see a “quick” change if possible. Could you update the module to show both imperial and metric for CPU temp? This is only needed because I’m in a backwards country that hasn’t adopted sensable measurements, and it would be nice to have both temps on screen at the same time, so I can compare easily with others on how cool my system is.
Thanks!
-
-
@lavolp3 that’s not working, just get NaN… I think that’s because the string’s already got the “°C” at that point.
On another point, how do you link back to the code and highlight like that?
-
@BKeyport said in MMM-SystemStats (cpu temp/load, fre ram ...):
On another point, how do you link back to the code and highlight like that?
You can get a direct link by clicking on the line in github.
-
@BKeyport said in MMM-SystemStats (cpu temp/load, fre ram ...):
that’s not working, just get NaN… I think that’s because the string’s already got the “°C” at that point.
ah the parsefloat is missing.
How aboutthis.stats.cpuTemp = payload.cpuTemp + " / " + (parseFloat(payload.cpuTemp) * 9 / 5 + 32).toFixed(1) + "°F"; -
@lavolp3 That did it, thank you.
-
Excellent module, works great.
I do have a question. I don’t see all the icons :/ how can I fix this?

-
@uros76 The icons are straight from font awesome, and part of the base package, from what I understand. Not having icons might be indicative of a weak connection to the 'net.
-
Any idea what’s going wrong that it shows:loading …
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login