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 5.2k 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.
    • S Offline
      sdetweil @Richard238
      last edited by

      @Richard238 what is the end of the last prior module

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        Richard238 @sdetweil
        last edited by

        @sdetweil

        It’s the currently misbehaving weather forecast:

        		{
        			module: 'weather',
        			position: 'top_right',
        			header: 'Weather Forecast for: ',
        			config: {
        				type: 'forecast',
        				location: 'nnnnnnnnn',
        				locationID: '11111111',  //ID from https://www.openweathermap.org
        				apiKey: 'aaaa444444444444444444'
        			}
        		},
        
        		//{
                    //module: 'MMM-SystemMonitor',
                    //position: 'bottom_right',
                    //config: {
                        //updateInterval: 60000,
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Richard238
          last edited by sdetweil

          @Richard238 what is the error?

          npm run config:check

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Richard238 @sdetweil
            last edited by

            @sdetweil said in MMM-SystemMonitor:

            npm run config:check

            pi@mmv2:~ $ npm run config:check 
            npm error code ENOENT
            npm error syscall open
            npm error path /home/pi/package.json
            npm error errno -2
            npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/pi/package.json'
            npm error enoent This is related to npm not being able to find a file.
            npm error enoent
            npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-02-02T19_09_35_627Z-debug-0.log
            pi@mmv2:~ $ 
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Richard238
              last edited by

              @Richard238 in the MagicMirror folder

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                Richard238 @sdetweil
                last edited by

                @sdetweil

                [2025-02-02 21:35:32.330] [INFO]  Checking modules structure configuration ... 
                [2025-02-02 21:35:32.511] [ERROR] Cannot read properties of undefined (reading 'units') 
                
                

                Module says:

                units: config.units,
                

                And also tried with

                units: metric,
                

                Which failed with:

                [ERROR] metric is not defined 
                
                

                config.js towards the beginning says:

                units: 'metric',
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Richard238
                  last edited by

                  @Richard238 to the right of :

                  Numbers and true/false do not need quotes
                  Any thing that has a letter needs quotes

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    Richard238 @sdetweil
                    last edited by

                    @sdetweil

                    I don’t understand, sorry?

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @Richard238
                      last edited by

                      @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 Reply Quote 0
                      • R Offline
                        Richard238 @sdetweil
                        last edited by

                        @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 Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 2 / 3
                        • First post
                          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