• 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.

Weather not working since MM update

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 2 Posters 910 Views 2 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.
  • T Offline
    Tippon
    last edited by Apr 8, 2021, 3:22 AM

    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 :)

    Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

    S 1 Reply Last reply Apr 8, 2021, 3:26 AM Reply Quote 0
    • S Offline
      sdetweil @Tippon
      last edited by Apr 8, 2021, 3:26 AM

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      T 2 Replies Last reply Apr 8, 2021, 3:30 AM Reply Quote 0
      • T Offline
        Tippon @sdetweil
        last edited by Apr 8, 2021, 3:30 AM

        @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.

        Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

        1 Reply Last reply Reply Quote 0
        • T Offline
          Tippon @sdetweil
          last edited by Tippon Apr 8, 2021, 3:46 AM Apr 8, 2021, 3:43 AM

          @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 :astonished_face:

          Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

          1 Reply Last reply Reply Quote 0
          • T Offline
            Tippon
            last edited by Apr 8, 2021, 9:45 PM

            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.

            Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

            S 1 Reply Last reply Apr 8, 2021, 9:54 PM Reply Quote 0
            • S Offline
              sdetweil @Tippon
              last edited by Apr 8, 2021, 9:54 PM

              @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

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • T Offline
                Tippon
                last edited by Apr 13, 2021, 12:24 AM

                @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.

                Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

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