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-WeatherGraph - new module using OpenWeatherMap

    Scheduled Pinned Locked Moved Utilities
    15 Posts 6 Posters 8.5k Views 7 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.
    • FlatPepsiF Offline
      FlatPepsi
      last edited by

      https://github.com/FlatPepsi17/MMM-WeatherGraph

      I have a new weather module with current conditions, rain graph for 48 hours, and a 7 day forecast list.

      Sample screenshots showing different configurations:

      Basic setup, showing rain & snow:
      screenshot4.png

      Metric options, and a 24hr precip graph:
      screenshot3.png

      Love data? Turn everything on to see temp, wind speed, humidity, and cloud cover.
      screenshot2.png

      Prefer something minimal? Turn off any feature you want.
      screenshot1.png

      This module started as a fork of ‘MMM-forecast.io’ by dmcinnes (https://github.com/dmcinnes/MMM-forecast-io), adding many new features and moving to a new data source since DarkSky discontinued API access. (Thanks Apple- so nice of you.)

      S FlatPepsiF 3 Replies Last reply Reply Quote 2
      • S Do not disturb
        sdetweil @FlatPepsi
        last edited by

        @FlatPepsi very nice

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @FlatPepsi
          last edited by

          @FlatPepsi can u have multiple instances loaded w different configs?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          FlatPepsiF 1 Reply Last reply Reply Quote 0
          • FlatPepsiF Offline
            FlatPepsi @sdetweil
            last edited by

            @sdetweil
            Good question. I haven’t tried it- but I’d imagine it would work. Biggest thing to watch is hitting the API’s limit for pulling forecast data, so turn that down accordingly.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @FlatPepsi
              last edited by

              @FlatPepsi yeh. API limits are a pain…

              but you have to code for multiple instances

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • N Offline
                nixdg
                last edited by

                Im new and just setting up my first MM and found your module. I get accurate info with the stock module, but get a constant Loading Weather when I have your module in place. Any thoughts as to why it is not loading?

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

                  Same here, still loading…
                  Bildschirm­foto 2022-11-19 um 17.02.58.png

                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @nixdg
                    last edited by sdetweil

                    @nixdg @JoeFranz ‘Loading…’, is the default message put up while waiting for data…
                    in my opinon, modules SHOULD (but don’t) report errors to the user instead of leaving the Loading… message up

                    so, the data api calls have failed for some reason…

                    this module does all its work in the browser so, lets look in the developer window console for any clues

                    ctrl-shift-i,
                    select the console tab
                    and put some unique part of the module name in the filter field
                    weatherg

                    and report what you see

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JoeFranz
                      last edited by

                      Nothing changed and now it works :-)
                      Maybe it took a while for the API key to work

                      Thanks

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @JoeFranz
                        last edited by

                        @JoeFranz there are call limits… 100 /day I think…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • FlatPepsiF Offline
                          FlatPepsi @FlatPepsi
                          last edited by FlatPepsi

                          @FlatPepsi So I finally added an option I wanted, but never got around to doing. I originally wanted this module to let me know if I needed to get up early and shovel the driveway… which means I want daily precipitation totals handy.

                          Now it’s available as an option!

                          e117c612-46a2-4fe9-9a0b-13759e1d881a-image.png

                          The latest code can be found on GitHub. Let me know if you find any bugs. Precipitation totals use inches or mm/cm, following the existing Imperial/Metric setting.

                          Enjoy!

                          https://github.com/FlatPepsi17/MMM-WeatherGraph

                          S FlatPepsiF 2 Replies Last reply Reply Quote 1
                          • S Do not disturb
                            sdetweil @FlatPepsi
                            last edited by

                            @FlatPepsi very cool!

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • FlatPepsiF Offline
                              FlatPepsi @FlatPepsi
                              last edited by

                              Pushed out a fix today…

                              Most weather sources give snow in the liquid equivalent, thus you need to multiply by 10 for snow.

                              Turns out OpenWeather does this math for us, and I was over estimating the snow by a factor of 10. Today I’m expecting 1.6" of snow & ice, module was saying 16" - prompting today’s fix!

                              Fixed.

                              1 Reply Last reply Reply Quote 0
                              • MarosM Offline
                                Maros
                                last edited by Maros

                                Hi, great module. Is it possible to change the white between temperatures to f.e. “/” ?

                                also is it possible to add “C” to temperature ? so it will show °C

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

                                  I’m getting an error, could not load datan TypeError: forecast is not iterable.
                                  Do you know what might be wrong?
                                  I checked and the API key is valid

                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1 / 1
                                  • 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