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-WeatherAlerts

    Scheduled Pinned Locked Moved Utilities
    31 Posts 7 Posters 11.1k 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.
    • J Offline
      JohnGalt @Gjones93
      last edited by

      @Gjones93: I do have it working now [I think the original issue was bad installation on my part]. FWIW, I also moved it up from the bottom bar to the top bar, and it is displaying the current wind alert at my location just fine. Thanks again.

      1 Reply Last reply Reply Quote 0
      • J Offline
        JohnGalt @Gjones93
        last edited by

        @Gjones93: BTW, when I set alertTimeFormat to absolute [overriding the default ‘relative’] - I get a black screen on the display, and the web page won’t load on the remote machine. I haven’t done any troubleshooting on this yet, but it has the feel of a module using an old library that is no longer supported…

        G 1 Reply Last reply Reply Quote 0
        • C Offline
          croc_dad72 @Gjones93
          last edited by

          @Gjones93 Maybe I don’t understand how to get right api then? I went in and subscribed, created a new api in the api generator, and is still isn’t working? I was able to borrow someone else’s api key for a min and it worked?

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gjones93 @croc_dad72
            last edited by

            @croc_dad72 I tried that lat and lon and I am seeing the winter weather advisory.

            Let me ask this: For the other weather modules (e.g. forecast), are you setting an apiVersion parameter in your config file? If yes, to what?

            Lastly, are you able to share your config layout for the MMM-WeatherAlerts module, minus your apiKey? I’m expecting something like this:

            		{
            			module: "MMM-WeatherAlerts",
            			position: "top_right",
            			header: "Weather Alerts",
            			config: {
            				lat: "42.4604",
            				lon: "-71.3489",
            				colored: true,
            				alertTimeFormat: "absolute",
            			}
            		},
            
            C 2 Replies Last reply Reply Quote 0
            • G Offline
              Gjones93 @JohnGalt
              last edited by

              @JohnGalt unable to replicate this issue. I setup my computer as MagicMirror server and then I am able to access the server from my computer’s web-browser and from my raspberry pi acting as a client with both displays showing as expected.

              Am I misunderstanding your current configuration? Did you happen to set the ‘alertDateFormat’ parameter in your configuration as well?

              J 1 Reply Last reply Reply Quote 0
              • C Offline
                croc_dad72 @Gjones93
                last edited by sdetweil

                @Gjones93 said in MMM-WeatherAlerts:

                @croc_dad72 I tried that lat and lon and I am seeing the winter weather advisory.

                Let me ask this: For the other weather modules (e.g. forecast), are you setting an apiVersion parameter in your config file? If yes, to what?

                Lastly, are you able to share your config layout for the MMM-WeatherAlerts module, minus your apiKey? I’m expecting something like this:

                Im just using the default weather from MM, and I have changed any of those parameters at all, just added my api key, and city id.

                My config:

                { module: "MMM-WeatherAlerts",
                      position: "top_right", // top_right
                      header: "Weather Alerts",
                      config: {
                      // See 'Configuration options' for more information.
                        lat: "42.4604",
                        lon: "-71.3489",
                        apiKey: "",
                        colored: true
                }
                },
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @croc_dad72
                  last edited by

                  @croc_dad72 please use code block markers for config info

                  paste your text into the message editor,
                  select the text you just pasted
                  and hit the button above the editor that looks like </>

                  that module config is not from MagicMirror

                  that would be

                  {
                          module:'weather'
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    croc_dad72 @sdetweil
                    last edited by

                    @sdetweil my apologies, thank you for fixing it!

                    1 Reply Last reply Reply Quote 1
                    • C Offline
                      croc_dad72 @Gjones93
                      last edited by

                      @Gjones93 Well it seems to be working now, I guess I just needed to give the api time to start working, thanks for all the help!

                      1 Reply Last reply Reply Quote 2
                      • J Offline
                        JohnGalt @Gjones93
                        last edited by

                        @Gjones93 - I am unable to replicate this today, too. It appears to be working as designed today. [There is no active alert at my location, so I changed the lat/lon to the same location in Alaska as before, and a Winter Weather Advisory displays. Both the local and Alaska work on the display and when accessing via a browser at port 8080 on my desktop.] For completeness, no - I did not set or change alertDateFormat from the default in the config.js.

                        Related but separate query: Does the module take up any space or affect existing modules when it is not actively displaying an alert? I ask because I have several instances of the default weather module stacked in the top_right region, and this module appears to affect their placement.

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