• 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-EnvCanada stopped working ...

Scheduled Pinned Locked Moved Unsolved Troubleshooting
27 Posts 9 Posters 1.5k Views 9 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 @sunsetrider
    last edited by Jun 29, 2025, 2:32 PM

    @sunsetrider yes envcanada is broken. The API changed significantly, there is an issiue open in both places MagicMirror module and MMM-EnvCanada

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 1
    • R Offline
      ray_mtl @sdetweil
      last edited by Jul 5, 2025, 12:22 AM

      @sdetweil thanks!! I have left the forecast module Running the see if it get fixed or if the module get updated. Really appreciate!

      S 1 Reply Last reply Jul 5, 2025, 1:23 AM Reply Quote 0
      • S Offline
        sdetweil @ray_mtl
        last edited by Jul 5, 2025, 1:23 AM

        @ray_mtl there is a big change required, currently no one has picked up the issue

        This was a user submitted contribution, so we will see
        The new data model is very complex

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • C Offline
          charlesf @sdetweil
          last edited by Jul 6, 2025, 11:10 AM

          @sdetweil it is a big change. I have just moved, so I don’t know when I will have time to work on this. I am hoping somebody fixes the provider for the default module and then I can piggy back on their work

          1 Reply Last reply Reply Quote 0
          • C Offline
            crazylegs
            last edited by Jul 6, 2025, 1:57 PM

            I’m the original author of the envcanada Provider for the default Weather module. Environment Canada has made a significant change to their API and, for some reason, I never saw the notification they sent out a few months ago (I was supposedly on their mailing list). I’ve only taken a very brief look at their changes, so take my assessment with a small grain of salt:

            The change has made it impractical to continue fetching an XML document for whatever location has been configured for weather info. They are, instead, pushing clients to a completely different API that is much more complex to use. The API is basically a pub/sub scheme that is based on the AMPQ protocol. How it all works and whether it will play nice within the MagicMirror ecosystem is still very much TBD.

            Based on what I see, the envcanada Provider and MMM-EnvCanada will pretty much require total rewrites. I can continue poking at this but to be fully transparent, it will be a couple of months before I can give this any significant focused effort.

            S C 2 Replies Last reply Jul 10, 2025, 7:57 PM Reply Quote 0
            • S Offline
              sunsetrider @crazylegs
              last edited by sdetweil Jul 11, 2025, 4:58 PM Jul 10, 2025, 7:57 PM

              @crazylegs

              Here is my solution to the envCanada issue:

              • used: openweathermap
              • needed to get": apiKey (from openweathermap)
              • needed to get locationID, name, location (from openweathermap)
              • used apiVersion: 2.5 (did not try more recent versions - default version not working)

              following is my config file info (used similar version for weather forecast as well)-

               module: "weather",
              			position: "top_right",
              			header: "Current Weather: ",
              			config: {
              				weatherProvider: "openweathermap",
              				apiVersion: 2.5,
              		//		weatherEndpoint: "",
              				type: "current",
              					locationID: 3924642,
              					name: "Mississauga",
              					location: "Mississauga ON",
              					state: "",
              					country: "CA",
              					coloured: "true",  // not working with this apiVersion
              		//			coord:
              		//			lon: -79.658302,
              		//			lat: 43.578899,
              		//		location: "New York",
              		//		locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
              				apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
              

              Hope this helps somebody.

              D S 2 Replies Last reply Jul 11, 2025, 3:57 AM Reply Quote 0
              • D Offline
                Dr8ke @sunsetrider
                last edited by Jul 11, 2025, 3:57 AM

                @sunsetrider TT
                Thanks so much! This really helped me get the weather module backup up and running.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @sunsetrider
                  last edited by Jul 11, 2025, 5:00 PM

                  @sunsetrider just remember that OW has said they will terminate the 2.5 api

                  June/August/October 2024 (last year) … so remember this config when it fails…
                  we changed the default config to the new 3.0 api per their annoncements

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply 29 days ago Reply Quote 0
                  • C Offline
                    charlesf @crazylegs
                    last edited by Jul 12, 2025, 4:13 PM

                    @crazylegs I have posted an update on GitHub that works with the new Environment Canada URL convention. I fetch the directory list and look for the most recent forecast xml file for the selected site code and then open the filename found, so I didn’t have to completely rewrite the module. I had issues with my http request to get the directory list that don’t occur when retrieving the xml files – no idea why, but my knowledge of JavaScript is very limited. I found a solution and the module now works.

                    I agree it looks like we are being pushed to the other API, so it is hard to know how long this approach of fetching an xml document will continue to work. But it works for now.

                    Comments welcome.

                    C 1 Reply Last reply 25 days ago Reply Quote 2
                    • J Offline
                      jakabasej4 @sankum
                      last edited by Jul 15, 2025, 5:48 AM

                      @sankum said in MMM-EnvCanada stopped working ...:

                      Weather module works. It is an issue with MMM-EnvCanada. I opened the issue on github, hoping to get a response from the author of the module. I don’t know how else to get in touch with the author. Thanks.

                      Glad to hear the main weather module works.

                      C 1 Reply Last reply Jul 15, 2025, 11:54 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        14/27
                        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