MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Weather Module Help -- Using weathergov

    Troubleshooting
    4
    12
    377
    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.
    • H
      harmZj last edited by

      Ok so it seems the weather module is a mess or maybe I’m having issues idk haha. So here are the issues I’ve had…

      I started out with openweathermap, and the forecast seemed to work except that the forecasted temps were way off compared to say weatherchannel, accuweather, and weathergov…

      So since weathergov seemed to have the right forecast I tried that, but then feels like temp is off by about 14 degrees compared to actual feels like.

      The bigger issue is that when I tried to get the forecast to show up it just says loading and nothing ever comes up… below I’m posting my whole code that I’m using for weathergov…

      {
      module: “weather”,
      position: “top_right”,
      header: “Current Weather”,
      config: {
      weatherProvider: “weathergov”,
      apiBase: “https://api.weather.gov/points/”,
      weatherEndpoint: “/forecast/hourly”,
      lat: “XXX”,
      lon: “XXX”,
      type: “current”
      }
      },
      {
      module: “weather”,
      position: “top_right”,
      header: “Weather Forecast”,
      config: {
      weatherProvider: “weathergov”,
      apiBase: “https://api.weather.gov/points/”,
      weatherEndpoint: “/forecast”,
      lat: “XXX”,
      lon: “XXX”,
      type: “forecast”,
      maxNumberOfDays: “3”
      }

      Does something look wrong here for the forecast to not show up?

      The one other question is how do I turn off the feels like option as I don’t want that if it’s going to be incorrect.

      Look forward to any help as I have a serious headache!!!

      M ankonaskiff17 2 Replies Last reply Reply Quote 0
      • M
        MacG @harmZj last edited by

        @harmzj I don’t see any errors, but I use the OpenWeatherMap and it works fine here. The option feels like can be turned off with:

        showFeelsLike: false,
        

        Add it under the type.

        If you use Ctrl-Shift-I, does the weather module show an error message?

        H 1 Reply Last reply Reply Quote 0
        • H
          harmZj @MacG last edited by

          @macg so here’s something funny… it decided without me doing anything that my coding was right. So now I’m just working on getting the feels like to disappear haha. Thanks!

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @harmZj last edited by

            @harmzj forecast has a problem w timing, set the initialLoafDelay to 150 or above to get around that.

            otherwise it will wait for the 15 refresh cycle

            Sam

            Create a working config
            How to add modules

            H 1 Reply Last reply Reply Quote 0
            • H
              harmZj @sdetweil last edited by

              @sdetweil Sounds good thank you. The whole thing is very weird… now my current weather outside is way off. It says 32 degrees actual temp and that’s way off by like almost 20 degrees, and I’ve double check my coordinates everything matches up and even shows right city state.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @harmZj last edited by

                @harmzj sounds like u have units:metric set

                Sam

                Create a working config
                How to add modules

                H 1 Reply Last reply Reply Quote 0
                • H
                  harmZj @sdetweil last edited by

                  @sdetweil Nope I double checked that. 32 degrees (Celsius) would be nearly 90 degrees Fahrenheit. It was more like 51 degrees.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @harmZj last edited by sdetweil

                    @harmzj any chance u have lat/long without the leading minus sign? will put u on another part of the planet.

                    I am -97 (west of England)
                    97 would be the other side of the world(Tibet not Texas!)

                    Sam

                    Create a working config
                    How to add modules

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      harmZj @sdetweil last edited by

                      @sdetweil Made sure I got the leading minus sign correct. Just very weird so last night it was like 20 degrees off and I came back today and it has right current temperature.

                      I use WeatherGov so the set up is a little different, but the reason I went with weathergov is b/c their forecast was more accurate.

                      Like looking at OpenWeather on their actual website their forecast was showing around 10 degrees higher temp than any other provider (i.e. Weather Channel, AccuWeather, WeatherGov, etc).

                      I think the solution might be to use OpenWeather for Current weather, and then utilize WeatherGov for the forecast.

                      1 Reply Last reply Reply Quote 0
                      • ankonaskiff17
                        ankonaskiff17 @harmZj last edited by ankonaskiff17

                        @harmzj Here are my weathergov config.js components.
                        You might want to read this post I did regarding weathergov.
                        Once I read through API a few times I figured out how to make it work.
                        They say it on api page but be aware that weather.gov resolves back to certain National Weather Service sites. That is explained in gridpoint discussion.
                        Don’t use tableClass: 'medium',unless you are doing this on big TV.
                        One last thing. Every now and then you might see an unusual number for the current temperature. Mine will show 32 F but it comes back. Pretty sure it is due mine and the NWS updates crossing paths at same time so I get that 32F number but on next update it will be correct.

                        Getting weathergov to work

                        Current
                        Current.jpg

                        Forecast
                        Forecast.jpg

                        H 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy