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.
    • C Offline
      croc_dad72
      last edited by

      Is there a specific lat/lon list to use, I’ve tried several different combinations and locations and I can’t get module to show?

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

        @JohnGalt Thanks for checking out my module.

        With regard to your question of “what constitutes an alert that will trigger the module”: the answer is any alert that is provided by the openWeatherMap one-call API. As far as “what alerts are provided by openWeatherMap”, the details are shared on their website in the section linked here. They list the following reporting agencies for the US:

        • Environmental Protection Agency (EPA), Air Quality Alerts
          Integrated Public Alerrt and Warning System (IPAWS)
        • National Oceanic and Atmospheric Administration (NOAA)
        • National Tsunami Warning Center
        • National Oceanic and Atmospheric Administration (NOAA)
        • National Weather Service
        • National Oceanic and Atmospheric Administration (NOAA)
        • National Weather Service - Marine Zones
        • U.S. Geological Survey (USGS), Volcano Hazard Program

        I verified the behavior that you described for the lan and lon you provided. Upon further investigation, it looks like the module is performing properly, but there is no alert coming from the OpenWeatherMap API.

        I am sending the OpenWeatherMap team an email with the details of the NWS Blizzard Warning and lack of a corresponding alert data from their API. I will let you know if I hear a reply.
        From the testing I have done previously, it looks like the NWS has different regions that are responsible for sending their own alerts. There may be an outage from the Alaska region, specifically National Weather Service Fairbanks AK.

        Unrelated to this issue, I noticed that you have the module position set to “bottom-bar”. I hadn’t tested that position until just now and the styling is not optimized for that location. I’m going to see about fixing that.

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

          @croc_dad72 The module will only be visible if an alert is active for the given lat/lon. Are you expecting an active weather alert for the location you are using? If yes, can you share a lat/lon and I would be happy to investigate further?

          Here is a lat/lon that currently has an active alert and the module appears with the relevant alerts; you can use these as a test:

          lat: "38.93323"
          lon: "-119.98435"
          
          C 1 Reply Last reply Reply Quote 0
          • C Offline
            croc_dad72 @Gjones93
            last edited by

            @Gjones93 I think the issue is the one call subscription, I thought this worked with the free api or the same api at the weather forecast api.

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

              @croc_dad72 If your API key is for version 3.0 of the API, then yes you would need to subscribe to their onecall API to be able to receive alert data. Unfortunate that they changed the onecall model to subscriber based.

              C J 4 Replies Last reply Reply Quote 0
              • C Offline
                croc_dad72 @Gjones93
                last edited by

                @Gjones93 Honestly, im not really sure what I have, I know I signed up for free? I also put in lat/lon for concord ms(42.4604,-71.3489), which is under an active watch and nothing is showing on my mirror? Sorry for the trouble, in relatively new to this, so im sure I did something wrong!

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