MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. charlesf
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 8
    • Groups 1

    charlesf

    @charlesf

    Old software guy having a blast.

    6
    Reputation
    3
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Location Canada

    charlesf Unfollow Follow
    Module Developer

    Best posts made by charlesf

    • Environment Canada Weather Module

      I have implemented a module (my first) to display the Environment Canada text weather forecast, marine wind forecast, and a graphical view of the weather forecast for day and night (the default Weather module only shows the day forecast). As this module is specifically for Environment Canada, only locations in Canada are supported. The elements are configurable, and forecasts can be displayed in English or French. Details and module code at MMM-EnvCanada.
      screenshot.png

      posted in Utilities
      charlesfC
      charlesf
    • RE: MMM-EnvCanada stopped working ...

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

      posted in Troubleshooting
      charlesfC
      charlesf

    Latest posts made by charlesf

    • RE: MMM-EnvCanada stopped working ...

      @sdetweil yes, and that is how I started, but it didn’t work.

      posted in Troubleshooting
      charlesfC
      charlesf
    • RE: MMM-EnvCanada stopped working ...

      @crazylegs Thanks. And by all means use as you see fit. I borrowed heavily from your code when I wrote my module 2 years ago.

      Perhaps you can educate me: when I fetch the xml file the async process seems to wait till it is done and then the data is available. But if I use the same steps to fetch the directory list, the calling function receives a pending promise. That’s why I implemented the fetching of the xml file within what is effectively a call back - it didn’t work otherwise, but I can’t see what is different between the two cases. But as I said earlier, I don’t know much about this environment - I am am old assembler/C/C++/C# coder from the mists of time.

      posted in Troubleshooting
      charlesfC
      charlesf
    • RE: MMM-EnvCanada stopped working ...

      @jakabasej4 hmm … I don’t use it, but the author of the provider for the default module support tor Environment Canada posted in this thread that it is also broken. In any case, I have issued an update on GitHub for my MMM-EnvCanada module which supports the new Environment Canada url scheme. Two other users of the module have confirmed it works, so I gave closed the issue.

      posted in Troubleshooting
      charlesfC
      charlesf
    • RE: MMM-EnvCanada stopped working ...

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

      posted in Troubleshooting
      charlesfC
      charlesf
    • RE: MMM-EnvCanada stopped working ...

      @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

      posted in Troubleshooting
      charlesfC
      charlesf
    • RE: Environment Canada Weather Module

      @cyberphox Thanks for this. I thought it might be configuration, but your report prompted me to try something, and I was able to reproduce a problem. I use the default weather module to display current conditions from my weather station, and my Environment Canada module was depending on a utility script that was being loaded by the default module. I have made the correction to load it myself, so if you get the updated version I think it will work. Navigate to the MMM-EnvCanada folder and execute git pull to get the update. Please let me know how it goes – if your issue is something else send me your config parameters for the module and I will investigate further.

      posted in Utilities
      charlesfC
      charlesf
    • RE: Environment Canada Weather Module

      @crazylegs thanks!

      posted in Utilities
      charlesfC
      charlesf
    • Environment Canada Weather Module

      I have implemented a module (my first) to display the Environment Canada text weather forecast, marine wind forecast, and a graphical view of the weather forecast for day and night (the default Weather module only shows the day forecast). As this module is specifically for Environment Canada, only locations in Canada are supported. The elements are configurable, and forecasts can be displayed in English or French. Details and module code at MMM-EnvCanada.
      screenshot.png

      posted in Utilities
      charlesfC
      charlesf