• 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-forecast-io -- Localized up to the minute weather

Scheduled Pinned Locked Moved Utilities
127 Posts 36 Posters 175.0k Views 38 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.
  • D Offline
    dmcinnes Module Developer
    last edited by Aug 5, 2016, 6:38 AM

    This module adds super localized, up to the minute weather using the forecast.io API – the same service that powers the Dark Sky App.
    It will tell you exactly when the rain will start or stop.

    screenshot

    https://github.com/dmcinnes/MMM-forecast-io

    1 Reply Last reply Reply Quote 1
    • I Offline
      ianperrin
      last edited by ianperrin Aug 5, 2016, 11:42 AM Aug 5, 2016, 11:40 AM

      @dmcinnes - Looks good.

      There was a fork(?) of the original Magic Mirror (version 1) code which replaced the standard weather module using data from Dark Sky’s forecast.io API - see https://github.com/jangellx/MagicMirror

      This included a graph of temperature/rain, a forecast for the week ahead and a summary of current weather - see https://github.com/jangellx/MagicMirror#important-installation-note

      alt text

      Code seems to be contained in https://github.com/dmcinnes/MMM-forecast-io/blob/master/MMM-forecast-io.js

      Any chance your MM² module could be extended to include this too?

      "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

      1 Reply Last reply Reply Quote 1
      • D Offline
        dmcinnes Module Developer
        last edited by Aug 8, 2016, 10:48 PM

        Wow that looks great! Particularly the weather forecast.
        I looked at creating a graph since the data is all right there in the response. I might as well see I can port the code over to this module!

        L 1 Reply Last reply Sep 30, 2016, 10:24 PM Reply Quote 1
        • D Offline
          dmcinnes Module Developer
          last edited by Sep 30, 2016, 5:09 AM

          Forecast.io API has been rebranded as darksky.net: http://blog.darksky.net/introducing-darksky-net/

          I’ve updated this module with the default URLs, otherwise it doesn’t seem to support the redirect properly.

          I’m continuing to work on this module, more soon!

          1 Reply Last reply Reply Quote 1
          • L Offline
            Les @dmcinnes
            last edited by Sep 30, 2016, 10:24 PM

            @dmcinnes said in MMM-forecast-io -- Localized up to the minute weather:

            Wow that looks great! Particularly the weather forecast.
            I looked at creating a graph since the data is all right there in the response. I might as well see I can port the code over to this module!

            Just wanted to say thanks for the great module, and ask if you were planning on implementing the graph like the abovepicture? As it looks really awesome!

            D 1 Reply Last reply Oct 1, 2016, 5:17 AM Reply Quote 0
            • D Offline
              dmcinnes Module Developer @Les
              last edited by Oct 1, 2016, 5:17 AM

              @Les sure thing! I am working on a precipitation graph and I have a forecast set up. Check out the weather-forecast branch for a work in progress:
              https://github.com/dmcinnes/MMM-forecast-io/tree/weather-forecast

              1 Reply Last reply Reply Quote 0
              • L Offline
                Les
                last edited by Oct 1, 2016, 4:57 PM

                @dmcinnes Testing it out. Got 2 questions…

                1. is it possible to activate the chart yet? (if so how)
                2. does the 7 day forecast work? I have showForcast: “true” in config.js but it is not displayed. Is there something else I have to set?
                D 1 Reply Last reply Oct 1, 2016, 5:14 PM Reply Quote 0
                • D Offline
                  dmcinnes Module Developer @Les
                  last edited by Oct 1, 2016, 5:14 PM

                  @Les the rain graph should show up when the API responds with “minutely”, when there’s minute-by-minute rain data.
                  Not sure why the forecast isn’t showing, it should appear by default. I’ll have to look at it later today.

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    Les
                    last edited by paviro Oct 3, 2016, 12:40 PM Oct 1, 2016, 5:28 PM

                    Just for reference, this is what i have in config.js

                                    {
                                        module: 'MMM-forecast-io',
                                        position: 'top_right', 
                                        config: {
                                          showForecast: 'true',
                                          // See 'Configuration options' for more information.
                                          apiKey: 'keyvalue',  // Dark Sky $
                                          // Only required if geolocation doesn't work:
                                          latitude:   43.955907,
                                          longitude: -78.906245,
                                            updateInterval: 600000
                                            }
                                    },
                    

                    Note from admin: Please use Markdown on code snippets for easier reading!

                    D 1 Reply Last reply Oct 1, 2016, 9:09 PM Reply Quote 0
                    • P Offline
                      paulocarrasco
                      last edited by paviro Oct 3, 2016, 12:40 PM Oct 1, 2016, 5:57 PM

                      Hi, I’m trying to use this module but it keep showing an error on the config file.

                      Here is the code->

                      {
                            module: 'MMM-forecast-io',
                            position: 'top_right',  // This can be any of the regions.
                            config: {
                              // See 'Configuration options' for more information.
                              apiKey: 'my api key' // Dark Sky API key.
                              // Only required if geolocation doesn't work:
                              latitude:   37.1468,
                              longitude: -8.5846
                            }
                          },
                      

                      When I remove this code part the config works, so all the rest is ok.

                      I already have cloned the module on git to the newest version.

                      Can someone help me?..


                      Note from admin: Please use Markdown on code snippets for easier reading!

                      I 1 Reply Last reply Jun 4, 2018, 9:17 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 12
                      • 13
                      • 1 / 13
                      • 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