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.

    Default weather module stuck loading after latest MM update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    35 Posts 8 Posters 7.3k Views 8 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.
    • P Offline
      pritikin71 @sdetweil
      last edited by pritikin71

      @sdetweil Thanks, You solve a 2 weeks headache problem wit this line:

      weatherEndpoint: “/onecall”,

      1 Reply Last reply Reply Quote 1
      • J Offline
        JMac @sdetweil
        last edited by JMac

        @sdetweil so my config was identical to above, so I’ve added you new line “weatherEndpoint…”

        I’m using Putty to access the MM and used pm2 to stop the MM.
        which it did.
        However now, pm2 via Putty is no longer having any effect on the MM.
        MM isn’t launching.

        run pm2 logs mm and get a parsing error over adding the new line
        unexpected token weatherEndpoint your configuration file contains syntax errors.

        all I’ve added is weatherEndpoint: “/onecall”, to a final line under the apiKey line above.

        any thoughts?

        edit to add, pm2 status and logs show that pm2 exists still it’s just not launching. can pm2 be “updated” or should I follow the process for a first install?
        for completeness I don’t want it to launch MM on boot I just want to be able to start and stop the MM using pm2.

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

          @JMac did u have the trailing comma

          we added code to stop MagicMirror coming up with garbage profile on error

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J P 2 Replies Last reply Reply Quote 0
          • J Offline
            JMac @sdetweil
            last edited by

            @sdetweil I have it exactly as you have it above.

            can you share a config for this module as an example?
            I can’t even check if this is working with pm2 not launching the MM

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

              @JMac

              cd ~/MagicMirror
              npm start

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Reply Quote 0
              • P Offline
                Peter @sdetweil
                last edited by Peter

                @sdetweil Adding ‘weatherEndpoint: “/onecall”,’’ gives some kind of weather, but for the wrong location I presume (26C but it is only 15C here).
                So, location ID does not work with API 3.0; it worked with 2.5.
                Somebody have the solution?
                Lat/ Lon?

                Peter

                M 1 Reply Last reply Reply Quote 0
                • J Offline
                  JMac @sdetweil
                  last edited by

                  @sdetweil

                  > magicmirror@2.29.0 start
                  > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                  
                  [2024-10-08 19:41:58.640] [LOG]   Starting MagicMirror: v2.29.0
                  [2024-10-08 19:41:58.693] [LOG]   Loading config ...
                  [2024-10-08 19:41:58.698] [LOG]   config template file not exists, no envsubst
                  [2024-10-08 19:41:59.497] [INFO]  Checking config file /home/MagicMirror/MagicMirror/config/config.js ...
                  [2024-10-08 19:41:59.584] [ERROR] Your configuration file contains syntax errors :(
                  Line 94 column 5: Parsing error: Unexpected token weatherEndpoint
                  

                  That parsing error is for the new line added in for weatherEndpoint

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

                    @JMac yes, the line before needs a trailing comma

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 1
                    • M Offline
                      MaXi-XCeL Project Sponsor @Peter
                      last edited by

                      @Peter Found it in the documentation!

                      Note: Latitude and longitude are REQUIRED if weatherEndpoint is set to ‘/onecall’. The locationID and location options are ignored when the OpenWeatherMap One Call API is used.

                      https://docs.magicmirror.builders/modules/weather.html#configuration-options

                      P P 2 Replies Last reply Reply Quote 1
                      • P Offline
                        Peter @MaXi-XCeL
                        last edited by

                        @MaXi-XCeL it works!
                        Thanks,
                        Peter

                        1 Reply Last reply Reply Quote 0
                        • S sdetweil has marked this topic as solved on
                        • 1
                        • 2
                        • 3
                        • 4
                        • 2 / 4
                        • 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