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

help with OpenWeatherForecast

Scheduled Pinned Locked Moved Unsolved Troubleshooting
12 Posts 2 Posters 3.4k Views 3 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.
  • G Offline
    gembob
    last edited by Jan 18, 2023, 7:04 PM

    I’m struggling with setting this up and getting it to display, was hoping someone may be able to provide some insight as to what I may be doing wrong. Below is from my config file:

    		{
    			module: "MMM-OpenWeatherForecast",
    			position: "top_right",
    			header: "Forecast",
    			config: {
    				apikey: "my_api_key",
    				latitude: 42.528580,
    				longitude: -114.825435,
    				units: "imperial",
    				iconset: "4c",
    				colored: true,
    				concise: true,
    				showFeelsLikeTemp: true,
    				showCurrentConditions: true,
    				extraCurrentConditions: {
    					highLowTemp: true,
    					precipitation: true,
    					sunrise: true,
    					sunset: true,
    					wind: true,
    					barometricPressure: false,
    					humidity: true,
    					dewPoint: false,
    					uvIndex: true,
    					visibility: false
    					},
    					
    					forecastLayout: "table",
    					forecastHeaderText: "",
    
    					hourlyForecastTableHeaderText: "By the hour",
    					showHourlyForecast: true,
    					showHourlyTableHeaderRow: true,
    					hourlyForecastInterval: 1,
    					maxHourliesToShow: 10,
    					hourlyExtras: {
    						precipitation: true,
    						wind: true,
    						barometricPressure: false,
    						humidity: false,
    						dewPoint: false,
    						uvIndex: false,
    						visibility: false
    					  },
    					  
    					  dailyForecastTableHeaderText: "Throughout the week",
    					  showDailyForecast: true,
    					  showDailyTableHeaderRow: true,
    					  maxDailiesToShow: 5,
    					  dailyExtras: {
    						precipitation: true,
    						sunrise: false,
    						sunset: false,
    						wind: true,
    						barometricPressure: false,
    						humidity: false,
    						dewPoint: false,
    						uvIndex: false
    					  },
    			}
    
    S 1 Reply Last reply Jan 18, 2023, 7:33 PM Reply Quote 0
    • S Offline
      sdetweil @gembob
      last edited by Jan 18, 2023, 7:33 PM

      @gembob what happens?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Jan 19, 2023, 3:48 PM Reply Quote 0
      • G Offline
        gembob @sdetweil
        last edited by Jan 19, 2023, 3:48 PM

        @sdetweil

        Nothing unfortunately. It’s the same ‘Loading…’ message under the Forecast that appeared by default when I first installed MagicMirror.

        S 1 Reply Last reply Jan 19, 2023, 3:51 PM Reply Quote 0
        • S Offline
          sdetweil @gembob
          last edited by Jan 19, 2023, 3:51 PM

          @gembob edit the node_helper.js

          and change this

                var url = "https://api.openweathermap.org/data/2.5/onecall?" +
          

          to this

                var url = "https://api.openweathermap.org/data/3.0/onecall?" +
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Feb 14, 2023, 7:00 PM Reply Quote 0
          • G Offline
            gembob @sdetweil
            last edited by Feb 14, 2023, 7:00 PM

            @sdetweil sorry for the long delay in my reply; I made the change as recommended and I’m still having the same issue, just a constant Loading screen for weather

            S 1 Reply Last reply Feb 15, 2023, 3:33 PM Reply Quote 0
            • S Offline
              sdetweil @gembob
              last edited by Feb 15, 2023, 3:33 PM

              @gembob i used your config and my api key and it worked ok
              Snip20230215_1.png

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              G 1 Reply Last reply Feb 15, 2023, 7:05 PM Reply Quote 0
              • G Offline
                gembob @sdetweil
                last edited by Feb 15, 2023, 7:05 PM

                @sdetweil - well that’s frustrating! Would my best bet now be to try a new api key? Any other basic steps I could try that I might have screwed up?

                S 1 Reply Last reply Feb 15, 2023, 7:17 PM Reply Quote 0
                • S Offline
                  sdetweil @gembob
                  last edited by Feb 15, 2023, 7:17 PM

                  @gembob I don’t know

                  I cloned
                  did npm install in the module folder
                  copied your config to my config.js
                  added my apikey
                  and ran

                  no other changes

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  G 2 Replies Last reply Feb 15, 2023, 10:14 PM Reply Quote 0
                  • G Offline
                    gembob @sdetweil
                    last edited by Feb 15, 2023, 10:14 PM

                    @sdetweil ok, thanks for testing it out for me.

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gembob @sdetweil
                      last edited by Feb 24, 2023, 7:07 PM

                      @sdetweil

                      I wiped and started over, and still having issues getting it to display like you are. I used by api key with the standard weather modules and it appears to work so I think I’m doing something wrong elsewhere. What do you do with the two existing weather modules that are in the config file by default, weather and weather forecast? Do you leave them, delete them?

                      S 1 Reply Last reply Feb 24, 2023, 7:25 PM 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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy