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

Scheduled Pinned Locked Moved Utilities
5 Posts 3 Posters 889 Views 4 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.
  • M Offline
    Matuki Module Developer
    last edited by Feb 6, 2023, 10:59 PM

    Description:

    This module displays a chart using any weather provider. It can display temperature, feels like temperature, precipitation, snow and weather icons. It uses the D3.js library.

    Full list of elements that can be displayed:

    • icons of weather
    • day/night separation
    • temperature
    • min/max temperature
    • feels like temperature
    • precipitation
    • snow
    • humidity
    • wind
    • Only with a specific/modified weather provider:
      • pressure
      • precipitation probability
      • pollution
      • UV

    All curves can be styled using CSS

    Screenshots:

    sample.png
    sample-colors.png

    Download:

    https://github.com/seb-ma/MMM-WeatherChartD3

    M 1 Reply Last reply Sep 24, 2023, 1:42 PM Reply Quote 0
    • M Matuki referenced this topic on Mar 5, 2023, 12:13 PM
    • M Offline
      MajorC Project Sponsor @Matuki
      last edited by MajorC Sep 24, 2023, 1:43 PM Sep 24, 2023, 1:42 PM

      @Matuki

      Hi I tried to use your module.

      Followed your instructions to install from github. Works well.

      Than I copy past the config, add position, my apiKey, lat and lon.

      But I still have now a black MM.

      Any idea where to start looking. The MM is working fine if I delete the MMM-WeatherChartD3 lines in the config.

      {
      			module: "MMM-WeatherChartD3",
      			position: "bottom_right",
      			config: {
      				updateInterval: 10 * 60 * 1000,
      				initialLoadDelay: 5000,
      				weatherProvider: "openweathermap",
      				weatherEndpoint: "/onecall",
      				apiKey: "3e349d84feb10771d8c4bf34cde00000", //i changed to a dummy key
      				type: "full", // Possible values: hourly, forecast (=daily) or specific value `full` which is a join of data from hourly+daily
      				lang: config.language,
      				lat: 52.554000,
      				lon: 13.463000,
      				units: config.units,
      				locale: config.locale,
      				d3jsVersion: "7", // can either be in format "7.4" or even "7.4.4"
      				title: "Weather Forecast",
      				height: 300,
      				width: 500,
      				iconSize: undefined, // in px or undefined to define automatically at first call
      				iconURLBase: "https://raw.githubusercontent.com/erikflowers/weather-icons/master/svg/",
      				hoursRatio: 0, // Ratio of fetched hours in graph (useful for openweathermap onecall that gives 48h with 1h precision) - 0 or undefined to ignore
      				showIcons: true,
      				showNights: true,
      				showTemperature: true,
      				showMinMaxTemperature: false,
      				showFeelsLikeTemp: true,
      				showPrecipitationAmount: true,
      				showPrecipitationProbability: true, // Only used when showPrecipitationAmount == true
      				showSnow: true, // if false: snow is included in precipitations
      				showPressure: true,
      				showHumidity: true,
      				showWind: true,
      				showAQI: true,
      				showUVI: true,
      			}
      		},
      
      S 1 Reply Last reply Sep 24, 2023, 1:54 PM Reply Quote 0
      • S Away
        sdetweil @MajorC
        last edited by Sep 24, 2023, 1:54 PM

        @MajorC see https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Sep 24, 2023, 3:12 PM Reply Quote 0
        • M Offline
          MajorC Project Sponsor @sdetweil
          last edited by Sep 24, 2023, 3:12 PM

          Log says, that:

          units: config.units,
          locale: config.locale,
          

          is not right?!?

          S 1 Reply Last reply Sep 24, 2023, 3:19 PM Reply Quote 0
          • S Away
            sdetweil @MajorC
            last edited by Sep 24, 2023, 3:19 PM

            @MajorC looks like this is a javascript change

            https://github.com/MichMich/MagicMirror/issues/2863

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              3/5
              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