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

weather module with temp/precipitation graph for 1-2 days

Scheduled Pinned Locked Moved Unsolved Requests
12 Posts 5 Posters 2.1k Views 5 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.
  • A Offline
    AnduriI
    last edited by Sep 17, 2023, 6:49 PM

    Hey there,

    I used to have the module MMM-forecast-io forked by rklueber with a realy nice graph for the upcoming day. (https://github.com/rklueber/MMM-forecast-io)
    This was based on the old datasource DarkSky and showed only “loading…” since it’s shutdown. I thought about migrating the data source to OpenWeatherMap, but in the meantime I reinstalled my MM and now the module doesn’t show anything. Probably something with dependencies…
    Is there an activ module which can show something similiar? Or is there an kind of easy way to get the old module running and migrate?

    Thank you,
    Anduril

    K L T 3 Replies Last reply Sep 17, 2023, 8:18 PM Reply Quote 0
    • K Online
      karsten13 @AnduriI
      last edited by Sep 17, 2023, 8:18 PM

      @AnduriI

      there is a pirate weather api as replacement for darksky, it is implemented as provider in the default weather module so you should find the url there. Maybe the above module works after changing only the url …

      1 Reply Last reply Reply Quote 0
      • L Offline
        lavolp3 Module Developer @AnduriI
        last edited by Sep 18, 2023, 8:39 AM

        @AnduriI Hi Andruil,
        I have worked with this module for the past years and did a lot of changes, including the switch to a new API.
        However, changes are not uploaded to github yet.
        I can do that probably tomorrow so you can test it out if you like.

        Also, have a look at @FlatPepsi s continuation of the module as MMM-WeatherGraph.
        https://github.com/FlatPepsi17/MMM-WeatherGraph

        The difference between his and mine is mainly the graph.

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

        A 1 Reply Last reply Sep 18, 2023, 11:25 AM Reply Quote 0
        • A Offline
          AnduriI @lavolp3
          last edited by Sep 18, 2023, 11:25 AM

          @lavolp3
          Thank you for the offer to upload your code to github, I realy appreciate that.
          I already had a look at FlatPepsi before, but I didn’t liked to graphics that much. It looked to much cluttered with all those small numbers. I liked the clean astetics of rklueber with only one red and one blue - you can get it in one glance. Or is that configurable? Maybe line thickness and hide numbers…
          Also that shade below the curve helped to identify them very easy

          M 1 Reply Last reply Sep 24, 2023, 7:40 AM Reply Quote 0
          • M Offline
            Matuki Module Developer @AnduriI
            last edited by Sep 24, 2023, 7:40 AM

            @AnduriI
            Hello,
            In case you’re still looking for a wheater chart, I also developed one. Thickness, colors… are fully configured thanks to CSS, so you can overload what you want.

            Nevertheless, it’s only a display graph. I haven’t included an array, but if you want to give it a try :
            https://github.com/seb-ma/MMM-WeatherChartD3

            A 1 Reply Last reply Sep 26, 2023, 11:55 AM Reply Quote 0
            • T Offline
              thobach @AnduriI
              last edited by Sep 24, 2023, 8:33 AM

              @AnduriI You may like https://github.com/thobach/MMM-OpenWeather24Hours which I built and migrated from Darksky to OpenWeather.

              A 1 Reply Last reply Sep 26, 2023, 11:28 AM Reply Quote 0
              • A Offline
                AnduriI @thobach
                last edited by Sep 26, 2023, 11:28 AM

                @thobach
                Hello,
                I would be great to have a screenshot on the github page as a preview and some config options listed. I just installed it to try out, but I personally don’t like having multiple graphs stacked. Can they be fused together?

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AnduriI @Matuki
                  last edited by Sep 26, 2023, 11:55 AM

                  @Matuki
                  Hey,
                  can you help me with the config of your modules please? I tried to add this (with lat, lon and api):

                  		{
                  			module: "MMM-WeatherChartD3",
                  			position: "bottom_right",
                  			config: {
                  				lat: "",
                  				lon: "",
                  				apiKey: "",
                  				weatherProvider: "openweathermap",
                  				weatherEndpoint: "/onecall",
                  				initialLoadDelay: 1000,
                  				type: "full",
                  				lang: "de"
                  			}
                  		},
                  

                  but I only get an header with undefined and a line

                  M 1 Reply Last reply Sep 26, 2023, 8:20 PM Reply Quote 0
                  • M Offline
                    Matuki Module Developer @AnduriI
                    last edited by Sep 26, 2023, 8:20 PM

                    @AnduriI
                    Have you any error when starting node?
                    To see logs, you may have to change logLevel in config to set a value like: logLevel: ["INFO", "LOG", "WARN", "ERROR"]

                    Or any error in javascript console on the browser?

                    I checked my config and I don’t see something specific. Maybe one hint: lat and lon are numbers, not strings in my config file (no quotes on values).

                    A 1 Reply Last reply Sep 27, 2023, 5:24 AM Reply Quote 0
                    • A Offline
                      AnduriI @Matuki
                      last edited by AnduriI Sep 27, 2023, 5:24 AM Sep 27, 2023, 5:24 AM

                      @Matuki
                      in the javascript console I see

                      ReferenceError: WeatherProvider is not defined
                      [...]
                      TypeError: this.weatherProvider is undefined
                      [...]
                      Uncaught (in promise) TypeError: this.weatherProvider is undefined
                      

                      I suppose thats the problem, but I don’t know how to handle. I added it exactly as in your example config. Also in your config the lat/lon are stated to be string with “” - maybe you could update this.

                      M 1 Reply Last reply Sep 27, 2023, 5:53 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/12
                        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