• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-SystemMonitor

Scheduled Pinned Locked Moved Utilities
24 Posts 7 Posters 3.9k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    Richard238 @sdetweil
    last edited by Feb 3, 2025, 8:32 AM

    @sdetweil

    I don’t understand, sorry?

    S 1 Reply Last reply Feb 3, 2025, 12:16 PM Reply Quote 0
    • S Offline
      sdetweil @Richard238
      last edited by Feb 3, 2025, 12:16 PM

      @Richard238 in config.js all properties are

      name : value

      The value, to the right of the colon (:)
      If a number or tr/false
      Does not need quotes

      If it contains a letter or symbol
      It needs quotes

      units : metric
      To the right is metric
      It has letters, so needs quotes

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Feb 3, 2025, 12:33 PM Reply Quote 0
      • R Offline
        Richard238 @sdetweil
        last edited by Feb 3, 2025, 12:33 PM

        @sdetweil

        That’s fixed it.

        Module in config.js

        units: 'config.units'
        

        config.js before modules

        was

        units: 'metric',
        

        Changed it to

        units: "metric",
        

        Quite how Free Memory can be 128% I’ve no idea, that’s for another day.
        For now, it’s working. Thank you!

        S 1 Reply Last reply Feb 3, 2025, 12:49 PM Reply Quote 0
        • S Offline
          sdetweil @Richard238
          last edited by Feb 3, 2025, 12:49 PM

          @Richard238 cool. Single or double quotes don’t matter as long as they are matched

          Be careful on quotes and copying from the forum

          If the quotes are curved, they are word processing style and Javascript doesn’t understand them
          " or ’

          If they are vertical, they are good

          " or  '
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Feb 3, 2025, 1:02 PM Reply Quote 0
          • R Offline
            Richard238 @sdetweil
            last edited by Feb 3, 2025, 1:02 PM

            @sdetweil said in MMM-SystemMonitor:

            Single or double quotes don’t matter as long as they are matched

            JS lesson #1 :-)

            1 Reply Last reply Reply Quote 0
            • M Offline
              mebster5 @btastic
              last edited by Feb 3, 2025, 11:26 PM

              @btastic

              I’m new to MM and just been putting together my board over the last week.

              I’ve used your module and think it’s great.

              One thing I did find is that your default way of grabbing diskspace had the device hard coded.

              I made this change to node_helper.js:

              async.apply(exec, "df -h /|grep dev|awk '{print $4}'"),
              

              That looked for the root partition and was able to then return the correct value for me.

              S 1 Reply Last reply Feb 3, 2025, 11:34 PM Reply Quote 0
              • S Offline
                sdetweil @mebster5
                last edited by Feb 3, 2025, 11:34 PM

                @mebster5 submit that as a pr

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 3
                • 3 / 3
                3 / 3
                • First post
                  22/24
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy