• 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-Temperature uncaught exception...

Scheduled Pinned Locked Moved Unsolved Troubleshooting
12 Posts 3 Posters 2.6k Views 3 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.
  • W Offline
    wishmaster270 Module Developer @Brown19
    last edited by Aug 3, 2023, 8:10 PM

    @Brown19 Do you see any errors in the development console of the browser?

    W 1 Reply Last reply Aug 4, 2023, 3:45 PM Reply Quote 0
    • W Offline
      wishmaster270 Module Developer @wishmaster270
      last edited by Aug 4, 2023, 3:45 PM

      @Brown19
      Hi,

      today i installed a new instance of MagicMirror 2.24.0 with both your node version 18 any my current used one (16).
      In the installation which uses electron i can reproduce the error now. But i am pretty sure this is a problem related to the combination of the version 2.24.0 and the used electron version.
      I found this thread with the same error but MMM-Tools instead in the forum of bogusnet, too.
      It might be a general MagicMirror issue and not a problem of the module.

      Maybe one of the core developers can have a look into it. I never had been that deep in the MagicMirror code and do not have much time to investigate the problem at the moment.

      S 1 Reply Last reply Aug 4, 2023, 8:42 PM Reply Quote 0
      • S Offline
        sdetweil @wishmaster270
        last edited by Aug 4, 2023, 8:42 PM

        @wishmaster270 what module is this? I’ll look at it tonight.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        W 1 Reply Last reply Aug 4, 2023, 10:01 PM Reply Quote 0
        • W Offline
          wishmaster270 Module Developer @sdetweil
          last edited by Aug 4, 2023, 10:01 PM

          @sdetweil Hi Sam, it looks like both MMM-Temperature and MMM-Tools cause the error.

          W 1 Reply Last reply Aug 5, 2023, 12:03 PM Reply Quote 0
          • W Offline
            wishmaster270 Module Developer @wishmaster270
            last edited by Aug 5, 2023, 12:03 PM

            @sdetweil @Brown19
            Hi,

            i did some more investigation today and think i found a solution.
            Although the exception looks different i think the problem is the execSync command.
            The only way i was able to fix it is to use spawnSync.

            But i can not say where or why the problem happens.
            I tried different node versions (latest 16, 18, 20) and different electron versions (25.3.0, 25.3.2 and 25.4.0) with execSync.

            I will release a new version of MMM-Temperature today which uses spawnSync instead of execSync.

            S W 2 Replies Last reply Aug 5, 2023, 12:27 PM Reply Quote 1
            • S Offline
              sdetweil @wishmaster270
              last edited by Aug 5, 2023, 12:27 PM

              @wishmaster270 good catch. I think exec is foreground, spawn is background.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • W Offline
                wishmaster270 Module Developer @wishmaster270
                last edited by Aug 5, 2023, 12:28 PM

                @Brown19

                Just released the new version 0.0.8 which (hopefully) fixes the problem.

                I integrated your script, too. But i named it sht31d.

                B 1 Reply Last reply Aug 6, 2023, 9:28 PM Reply Quote 0
                • B Offline
                  Brown19 @wishmaster270
                  last edited by Aug 6, 2023, 9:28 PM

                  @wishmaster270 Thank you so much for the help and troubleshooting! I wasn’t able to work on this the last few days and when I got back it looks fixed.

                  Thanks again.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 1 / 2
                  1 / 2
                  • First post
                    9/12
                    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