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

Problem with Weather forecast

Scheduled Pinned Locked Moved Troubleshooting
47 Posts 14 Posters 35.6k Views 13 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @luizcarlosnery
    last edited by Sep 14, 2017, 9:47 PM

    @luizcarlosnery

    There’s a problem with Openweather’s api not accepting certain api keys. In the meantime, you could try another weather module. There are many.

    Scroll down to the weather category

    https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules

    Create a working config
    How to add modules

    R 1 Reply Last reply Sep 16, 2017, 3:05 PM Reply Quote 0
    • R Offline
      roramirez Core Contributors @Mykle1
      last edited by Sep 16, 2017, 3:05 PM

      Well… Yesterday I submitted a patch to hack the situation with the new accounts in OpenWeather.

      If you can test it will be great!
      https://github.com/roramirez/MagicMirror/commit/e8438d37d78acc7a9e29e694a6987ce068324bcd

      Easy module development with MagicMirror Module Template

      F 1 Reply Last reply Sep 19, 2017, 3:41 PM Reply Quote 0
      • L Offline
        luizcarlosnery
        last edited by Sep 17, 2017, 12:58 AM

        Hi Roramirez, brother, it worked! but the day of the week, which should show “Monday” “Tuesday” “Wednesday” … shows everyone how “Sunday” to solve?
        Thank you so much…

        1 Reply Last reply Reply Quote 0
        • F Offline
          frank61BS @roramirez
          last edited by Sep 19, 2017, 3:41 PM

          @roramirez
          Hello Ramirez, I had the same problem. But with your patch I can see the weatherforeast now
          Thanks Frank

          1 Reply Last reply Reply Quote 0
          • A Offline
            Azrael
            last edited by Sep 22, 2017, 6:43 PM

            Hello, I have exactly the same problem and I am trying to use your patch Ramirez. However, I am coming from the “mechanical world” and I’m new to Linux and GitHub. Could any of you write me how to apply such a patch?

            M 1 Reply Last reply Sep 22, 2017, 7:50 PM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @Azrael
              last edited by Sep 22, 2017, 7:50 PM

              @Azrael said in Problem with Weather forecast:

              Could any of you write me how to apply such a patch?

              You have to edit your weatherforecast.js file. Go to the link for the fix. The line you see highlighted in RED has to be removed (or commented out) of your weatherforecast.js file. The lines you see highlighted in GREEN have to be added in your weatherforecast.js file. The line numbers on the left make it easy for you to find exactly where the edits belong.

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • A Offline
                Azrael
                last edited by Sep 23, 2017, 8:20 AM

                Thank you Mykle1. Now the weather forecast shows up where it should be.
                However, I have exactly the same problem what luizcarlosnery mentioned earlier. Today (Saturday) I see: Sat,Sat,Sat,Sat,Sat,Sun,Sun.

                M 1 Reply Last reply Sep 23, 2017, 12:51 PM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Azrael
                  last edited by Sep 23, 2017, 12:51 PM

                  @Azrael

                  Sorry to hear that. Until the issues are resolved, you could always try another weather module. There are many to choose from.

                  Scroll down to the weather category

                  https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Duske
                    last edited by Duske Sep 29, 2017, 9:13 AM Sep 23, 2017, 4:50 PM

                    You see the same day multiple times because this API is a “5 days/3 hour forecast API”, so you won’t get one result per day, but multiple forecasts for one single day with 3 hours between them.

                    E.g.

                    Result 1: "2017-09-24 00:00:00" Sunday
                    Result 2: "2017-09-24 03:00:00" Sunday
                    Result 3: "2017-09-24 06:00:00" Sunday
                    

                    and so on

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Azrael
                      last edited by Azrael Sep 23, 2017, 5:56 PM Sep 23, 2017, 5:55 PM

                      OK, it makes sense.
                      Is there any option to get only one forecast for one day? Or to display somehow the time periods?

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