MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Weather not working since MM update

    Troubleshooting
    2
    7
    148
    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.
    • Tippon
      Tippon last edited by

      I’m running two mirrors from one virtualised Pi, and both gave me the update is available message earlier. I backed up and updated, and now the weather module is stuck on loading on both. I get the following error message in the browser console:

      openweathermap.js:479 Uncaught TypeError: this.hide is not a function
          at Class.getParams (openweathermap.js:479)
          at Class.getUrl (openweathermap.js:122)
          at Class.fetchCurrentWeather (openweathermap.js:31)
          at weather.js:163
      

      and line 479 is:

      this.hide(this.config.animationSpeed, { lockString: this.identifier });
      

      I’ve just checked the old file from the backup, and the same line exists, but on line 440:

      this.hide(this.config.animationSpeed, { lockString: this.identifier });
      

      The only change I’ve made on my end was to the MMM-Fitbit2 module, and that only runs on one of the mirrors. The change is here in case it makes a difference:

      https://forum.magicmirror.builders/topic/14879/mmm-fitbit2-pythonshell-is-not-a-constructor

      Please let me know if you need any more information 🙂

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

        @tippon you did the npm install after the git pull right?)

        Sam

        Create a working config
        How to add modules

        Tippon 2 Replies Last reply Reply Quote 0
        • Tippon
          Tippon @sdetweil last edited by

          @sdetweil Not as far as I know. I used MMM-Remote-Control to update remotely

          https://github.com/Jopyth/MMM-Remote-Control

          I’ll try npm install now and see if it fixes it.

          1 Reply Last reply Reply Quote 0
          • Tippon
            Tippon @sdetweil last edited by Tippon

            @sdetweil I’ve just done npm install and it made no difference. I rebooted and there was no difference, so I did git pull on both installations too, just in case. Git pull said already up to date in both cases, and npm install ran through but made no difference.

            EDIT: Sorry, I’ll be a little while before I answer again. I’ve just realised that it’s 5am here, so I’m going to bed 😲

            1 Reply Last reply Reply Quote 0
            • Tippon
              Tippon last edited by

              I realised today that I’m having a problem with MMM-fitbit2 too. I fixed the issue in my other thread here yesterday:

              https://forum.magicmirror.builders/topic/14879/mmm-fitbit2-pythonshell-is-not-a-constructor?_=1617917654075

              but updated Magic Mirror shortly after, so I’m not sure if the problem existed before the update or not.

              The module loads and seems to work, but I’m only getting values returned for the calories I’ve burned and my weight. My food eaten isn’t updating, even though it’s showing in my Fitbit dashboard.

              I know this probably isn’t related, but as both issues appeared at the same time I thought it was worth a mention just in case.

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

                @tippon that code is in a weird place… it is asking for the part of the url to be added based on the configuration…

                and for some reason it just abandons the work and returns… with garbage…

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • Tippon
                  Tippon last edited by

                  @tippon said in Weather not working since MM update:

                  I realised today that I’m having a problem with MMM-fitbit2 too. I fixed the issue in my other thread here yesterday:

                  https://forum.magicmirror.builders/topic/14879/mmm-fitbit2-pythonshell-is-not-a-constructor?_=1617917654075

                  but updated Magic Mirror shortly after, so I’m not sure if the problem existed before the update or not.

                  The module loads and seems to work, but I’m only getting values returned for the calories I’ve burned and my weight. My food eaten isn’t updating, even though it’s showing in my Fitbit dashboard.

                  I know this probably isn’t related, but as both issues appeared at the same time I thought it was worth a mention just in case.

                  I’m really sorry, I’ve just found out that the reason that my food eaten wasn’t being updated is that my calorie goal had been deleted from my Fitbit dashboard. I use other apps that fill the same goal in, so I hadn’t noticed.

                  I’m still getting the weather issue though.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy