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-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

    Scheduled Pinned Locked Moved Utilities
    256 Posts 55 Posters 546.8k Views 57 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.
    • S Offline
      sil3ntstorm
      last edited by

      Great job, I like it very much, thanks for that.

      I’ve had it running for about 8 weeks and I’ve noticed that my temperature readings are correct, but my weather is always showing as cloudy or rainy in advance, even though the sun has been shining 90% of the time for weeks and almost never rains

      I checked the latitude and longitude several times and read them out and accepted them either via https://www.latlong.net/ or via google.

      What can be the reason for the fact that I keep getting only clouds and rain, even though the sun is shining most of the time?

      Place of residence is: Germany Hohenschambach
      Width 49.039349
      Longitude 11.847070

      Bild_2022-07-29_124222891.png

      I hope you can help me here 😊
      My English skills are not very good, I translated it with google, I hope you understand what I want to say 😊

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

        @sil3ntstorm can u show the config.js entry

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sil3ntstorm
          last edited by

          {
              module: "MMM-OpenWeatherForecast",
            
              position: "top_right",
              header: "Wettervorschau Schama",
              config: {
                apikey: "XYXYXY", //SUPER SECRET
                latitude: "49.039349",     //49.039349 Hemau
                longitude: "11.847070",    //11.847070 Hemau     
                units: "metric",
                iconset: "4c",
                colored: true,
                concise: true,
          
          			 label_high: "max",
          			 label_low: "min",
          			 label_days: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
          			 label_sunriseTimeFormat: "k:mm",
          			 label_hourlyTimeFormat: "k[h]",
          			 label_hourlyTimeFormat: "k[ Uhr]",
          
          
          
               
                requestDelay: "2000",
                showFeelsLikeTemp: true,
                displayKmhForWind: true,
                showCurrentConditions: true,
                showSummary: false,
                showExtraCurrentConditions: 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: "Stundenvorschau",
                showHourlyForecast: true,
                showHourlyTableHeaderRow: true,
                hourlyForecastInterval: 3,
                maxHourliesToShow: 5,
                hourlyExtras: {
                  precipitation: true,
                  wind: true,
                  barometricPressure: false,
                  humidity: false,
                  dewPoint: false,
                  uvIndex: false,
                  visibility: false
                },
          
                dailyForecastTableHeaderText: "Wochenvorschau",
                showDailyForecast: true,
                showDailyTableHeaderRow: true,
                maxDailiesToShow: 10,
                dailyExtras: {
                  precipitation: true,
                  sunrise: false,
                  sunset: false,
                  wind: true,
                  barometricPressure: false,
                  humidity: false,
                  dewPoint: false,
                  uvIndex: false
                },
          
              }
            },
          
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @sil3ntstorm
            last edited by sdetweil

            @sil3ntstorm remove the quotes from around the lat/long… that makes then a string, not a number…

            most modules cannot handle the difference

            anyplace just numbers, remove quotes

                 requestDelay: "2000",

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sil3ntstorm
              last edited by

              Like now?
              I did it but the clouds or rain are still displayed to me, no change from before. The 3 apps on the mobile all show sun most of the time and at least 10 hours of sun (just like in the past, always sunny and dry in the app and in real but always cloudy and rainy in the MM module)

              {
                  module: "MMM-OpenWeatherForecast",
                
                  position: "top_right",
                  header: "Wettervorschau Schama",
                  config: {
                    apikey: "XYXYXYXY", //SUPER SECRET
                    latitude: 49.039349,     
                    longitude: 11.847070,   
                    units: "metric",
                    iconset: "4c",
                    colored: true,
                    concise: true,     
                    
              			 label_high: "max",
              			 label_low: "min",
              			 label_days: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
              			 label_sunriseTimeFormat: "k:mm",
              			 label_hourlyTimeFormat: "k[h]",
              			 label_hourlyTimeFormat: "k[ Uhr]",
              
              
              
                   
                    requestDelay: 2000,
                    showFeelsLikeTemp: true,
                    displayKmhForWind: true,
                    showCurrentConditions: true,
                    showSummary: false,
                    showExtraCurrentConditions: 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: "Stundenvorschau",
                    showHourlyForecast: true,
                    showHourlyTableHeaderRow: true,
                    hourlyForecastInterval: 3,
                    maxHourliesToShow: 5,
                    hourlyExtras: {
                      precipitation: true,
                      wind: true,
                      barometricPressure: false,
                      humidity: false,
                      dewPoint: false,
                      uvIndex: false,
                      visibility: false
                    },
              
                    dailyForecastTableHeaderText: "Wochenvorschau",
                    showDailyForecast: true,
                    showDailyTableHeaderRow: true,
                    maxDailiesToShow: 10,
                    dailyExtras: {
                      precipitation: true,
                      sunrise: false,
                      sunset: false,
                      wind: true,
                      barometricPressure: false,
                      humidity: false,
                      dewPoint: false,
                      uvIndex: false
                    },
              
                  }
                },
              
              
              

              Bild_2022-07-29_150313543.png

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

                @sil3ntstorm thats what the web site shows too
                Screenshot at 2022-07-29 08-14-48.png

                accuweather shows similar
                Screenshot at 2022-07-29 08-18-44.png

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sil3ntstorm
                  last edited by sil3ntstorm

                  The data is read from https://home.openweathermap.org and displayed on the MM, right?
                  Since these often do not match for my area, I want to know whether it is possible to store another provider? For example
                  https://www.wetteronline.de/wettertrend/hemau

                  Bild_2022-07-29_153013910.png

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

                    @sil3ntstorm

                    correct. the module takes info from the openweathermap api (and the data appears valid from the api and web page)

                    but the MMM-OpenWeatherMap module only works with OpenWeather as far as I know.

                    I am not aware of the quality of other modules

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bassin12
                      last edited by sdetweil

                      I’m having some problems and do not know exactly what is wrong, got this error:

                      [29.08.2022 09:51.32.701] [LOG] [MMM-OpenWeatherForecast] 29-Aug-22 09:51 ** ERROR ** Error: Request failed with status code 401

                      I get this on my screen

                      Captura de tela 2022-08-29 100754.jpg

                      I did not do any configuration just using this as a Code:

                      {
                                              module: "weather",
                                              position: "top_right",
                                              header: "Weather Forecast",
                                              config: {
                                                      weatherProvider: "openweathermap",
                                                      type: "forecast",
                                                      location: "Suwanee",
                                                      locationID: "4225309",
                                                      apiKey: "MYKEY"
                                              }
                                      },
                      
                      
                                        {
                                          module: "MMM-OpenWeatherForecast",
                                          position: "top_right",
                                          header: "Forecast",
                                          config: {
                                            apikey: "MYKEY", //only string here
                                            latitude: 51.490230,            //number works here
                                            longitude: -0.258810,          //so does a string
                                          }
                                        },
                      
                      S 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @bassin12
                        last edited by sdetweil

                        @bassin12 said in MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast:

                        I did not do any configuration just using this as a Code:

                        that is configuration (editing config.js)

                        I do not know… the error says the source returned a 401 error code
                        not my module… open an issue on the module github page…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 12
                        • 13
                        • 14
                        • 15
                        • 16
                        • 25
                        • 26
                        • 14 / 26
                        • 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