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 3.3k 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 @thobach
      last edited by

      @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

        @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 Reply Quote 0
        • M Offline
          Matuki Module Developer @AnduriI
          last edited by

          @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 Reply Quote 0
          • A Offline
            AnduriI @Matuki
            last edited by AnduriI

            @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 Reply Quote 0
            • M Offline
              Matuki Module Developer @AnduriI
              last edited by

              @AnduriI
              This is curious šŸ¤”
              So the line that seems problematic is https://github.com/seb-ma/MMM-WeatherChartD3/blob/82e948086a2c187ee16fca6fb02bd0badf232254/MMM-WeatherChartD3.js#L66
              But I mimic the default weather module: https://github.com/MichMich/MagicMirror/blob/e87f50e64aeaf3a8587f4855f4679c3223959fd0/modules/default/weather/weather.js#L90
              So I don’t understand why WeatherProvider object wouldn’t be defined for you here.

              Can you please try to use the default weather module to eliminate easy ideas?
              Also, what MagicMirror version have you?

              For latitude and longitude as numbers, I already fixed this when I saw it yesterday šŸ˜‰

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                AnduriI @Matuki
                last edited by

                @Matuki
                To be honest I have no idea how to do this.

                But I found the time to dig a little into the module I used before and found some problems. With some tweaks I could get it running and also uploaded it to github, just in case anyone was using this before and also misses it. You can find it in https://github.com/AnduriI/MMM-forecast-io

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 1 / 2
                • 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