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

MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

Scheduled Pinned Locked Moved Utilities
256 Posts 55 Posters 437.0k 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.
  • J Offline
    j.e.f.f Project Sponsor Module Developer
    last edited by j.e.f.f Feb 28, 2021, 2:30 PM Feb 28, 2021, 1:06 PM

    Ever since Apple bought Dark Sky and announced that that would stop allowing free access to their API (Thanks Apple!), I’ve been meaning to write a replacement for MMM-DarkSky Forecast.

    Well I finally got off my lazy ass and wrote it. Link to code here:
    https://github.com/jclarke0000/MMM-OpenWeatherForecast

    MMM-OpenWeatherForecast.png

    If you’re already using MMM-DarkSkyForecast, this will look familiar to you. In fact I based MMM-OpenWeatherForecast on MMM-DarkSkyForecast’s code.

    But! Many improvements have been included. With this rewrite I have made it possible to display every bit of weather data provided in OpenWeather’s One Call API. Be sure to fully read the README.md file to see how you can configure this module exactly to your liking.

    Installation:

    1. Navigate into your MagicMirror modules folder and execute
      git clone https://github.com/jclarke0000/MMM-OpenWeatherForecast.git.

    2. Enter the new MMM-OpenWeatherForecast directory and execute npm install.

    NOTE
    If you’re using a pre-release version, doing git pull won’t be enough to install the latest code. I replaced the deprecated request library with axios. So make sure you run npm install to get the latest dependencies. Optionally you may run npm prune to remove installation for request.

    Configuration:

    At a minimum you need to supply the following required configuration parameters:

    • apikey
    • latitude
    • longitude

    apikey needs to be specified as a String, while latitude and longitude can be specified as either a String or a Number. Both work fine.

    e.g.,

      {
        module: "MMM-OpenWeatherForecast",
        position: "top_right",
        header: "Forecast",
        config: {
          apikey: "a1b2c3d4e5f6g7h8j9k0", //only string here
          latitude: 51.490230,            //number works here
          longitude: "-0.258810"          //so does a string
        }
      },
    

    You need to create a free account with OpenWeather in order to get an API key:
    https://home.openweathermap.org/users/sign_up.

    Free tier is fine – this module will not make anywhere near 60 calls per minute / 1,000,000 requests per month.

    Find out your latitude and longitude here:
    https://www.latlong.net/.

    Refer to the README for all of the other configuration options.

    NOTE
    This module uses the Nunjucks templating system and therefore requires MagicMirror version 2.2.0 or later.

    L B C E D 5 Replies Last reply Mar 4, 2021, 10:22 AM Reply Quote 10
    • J Offline
      jenga
      last edited by Mar 2, 2021, 12:59 AM

      I am trying to adjust the hours under the hourly forecast to reflect a different time zone. I was reviewing the code and I see UTC references. How can I adjust this to CST?

      N J 2 Replies Last reply Mar 2, 2021, 9:33 PM Reply Quote 1
      • N Offline
        nitewing76 @jenga
        last edited by Mar 2, 2021, 9:33 PM

        @jenga Maybe you are having the same issue I am with incorrect current/hourly time & temperature conversion?

        1 Reply Last reply Reply Quote 2
        • L Offline
          lavolp3 Module Developer @j.e.f.f
          last edited by Mar 4, 2021, 10:22 AM

          @j-e-f-f That looks REALLY tasty! Thank you for the great work!

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          S 1 Reply Last reply Mar 4, 2021, 9:55 PM Reply Quote 1
          • S Offline
            swvalenti Project Sponsor @lavolp3
            last edited by Mar 4, 2021, 9:55 PM

            @j-e-f-f Am I missing a way to turn off current weather alerts? Once a weather alert like high wind or snow it drops my tables down and throws other modules off.

            J 1 Reply Last reply Mar 7, 2021, 10:57 AM Reply Quote 0
            • B Offline
              BKeyport Module Developer @j.e.f.f
              last edited by Mar 5, 2021, 2:53 AM

              @j-e-f-f As always, great work. 😉

              The "E" in "Javascript" stands for "Easy"

              1 Reply Last reply Reply Quote 0
              • C Offline
                cowboysdude Module Developer @j.e.f.f
                last edited by Mar 5, 2021, 3:13 AM

                As of Saturday, May 1, 2021, the free Yahoo Weather API will be retired.

                So as more time goes by the free weather api’s are dropping like flies…

                M 1 Reply Last reply Mar 7, 2021, 6:31 AM Reply Quote 1
                • J Offline
                  jms3700 Project Sponsor
                  last edited by jms3700 Mar 7, 2021, 7:13 AM Mar 7, 2021, 6:17 AM

                  Thanks For this great job! 👍

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MajorC Project Sponsor @cowboysdude
                    last edited by Mar 7, 2021, 6:31 AM

                    @cowboysdude it would be nice if someone with knowledge could have a look at the API of www.yr.no

                    The forecast is very good and they are providing free world wide data.

                    J C 2 Replies Last reply Mar 7, 2021, 11:08 AM Reply Quote 0
                    • E Offline
                      ebolisa @j.e.f.f
                      last edited by Mar 7, 2021, 10:22 AM

                      @j-e-f-f Thanks for sharing.

                      Does it work on Pi Zero? In my case it doesn’t load. I just see FORCAST and then “Loading…” forever :astonished_face:
                      Using defaults, no changes made.

                      J 1 Reply Last reply Mar 7, 2021, 11:01 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 25
                      • 26
                      • 1 / 26
                      1 / 26
                      • First post
                        2/256
                        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