Read the statement by Michael Teeuw here.
MMM-SystemStats (cpu temp/load, fre ram ...)
-
G’day @BenRoe
when using your module (Raspberry Pi powered) I get the below message and nothing appears to work. If I comment out the MMM-SystemStats module config on config/config.js the other modules work again.
(node:2247) DeprecationWarning: sys is deprecated. Use util instead.
Any clues?
Cheers,
Tiago -
I also have this message, but everything works. It’s only a hint.
Are there some other messages? -
I shall try again (currently travelling for work) later this week and report back with more details…
-
Deprecation is not the same as a hint. That message is a warning to let you know that while it may work today, it may not in the near future because
sys
is being deprecated and ultimately phased out (and removed) in favor ofutil
. It would make sense to write code for the packages that will continue to work, and not for things that will be deprecated. -
@BenRoe the classes config item is the exact same name used by the MMM-ProfileSwitcher plugin unfortunately.
-
@KirAsh4 said in MMM-SystemStats (cpu temp/load, fre ram ...):
Deprecation is not the same as a hint. That message is a warning to let you know that while it may work today, it may not in the near future because
sys
is being deprecated and ultimately phased out (and removed) in favor ofutil
. It would make sense to write code for the packages that will continue to work, and not for things that will be deprecated.I also get that warning message but it works and nothing seems to be wrong or unstable. I like having the stats to keep an eye on how things are running, then I hide it with MMM-Remote-Control until the next time I want to check.
So, do you recommend NOT using it? Is there any “danger” in using it?
-
@Mykle1 it is not “danger”. Next days a update is coming.
-
The update v1.1 is out. Thx to Bruce17 for the pull request.
Update instructions -
@BenRoe said in MMM-SystemStats (cpu temp/load, fre ram ...):
The update v1.1 is out. Thx to Bruce17 for the pull request.
I followed the update instructions. It seems to be working fine and the “DeprecationWarning: sys is deprecated. Use util instead.” is no longer being reported. Nice!
-
Any way I can make this module alight to the left?