• 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-COVID-19 (Deprecated)

Scheduled Pinned Locked Moved Health
71 Posts 16 Posters 21.2k Views 16 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.
  • S Away
    sdetweil @lavolp3
    last edited by Mar 3, 2020, 4:26 PM

    @lavolp3 said in MMM-COVID-19:

    Chart.js is always tricky for me since the dom object needs to be created first and then filled with the chart.

    It shouldn’t be that hard.
    If the div doesn’t exist, create it
    If u have data /new data to display, create the chart into that div, else leave it empty.

    Update chart didn’t work for me very well. So I delete the prior when building the new chart.

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    L 1 Reply Last reply Mar 3, 2020, 8:05 PM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @sdetweil
      last edited by Mar 3, 2020, 8:05 PM

      @sdetweil you’re right. It gets more difficult if I do it in a rep I haven’t created. Need to find out the workflow first and sometimes crate workarounds. Every MM module developer has their own ways of creating update/call cycles.
      However since I’m really new to JS this is all still quite challenging.

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

      S 1 Reply Last reply Mar 3, 2020, 8:14 PM Reply Quote 0
      • S Away
        sdetweil @lavolp3
        last edited by Mar 3, 2020, 8:14 PM

        @lavolp3 i don’t think JS is the problem, its a pretty simple language…

        I think the MM runtime, and module structure is a challenge…

        u can look at my repo using chartjs here…

        https://github.com/sdetweil/WaterLevels

        i had two sets of data from my server and wanted two charts…
        so they are an array of chart info…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by Mar 5, 2020, 2:44 PM

          New Updates

          2.0.0 (2020-03-04)

          • Whole new build. (npm install is needed to update)
          • Removed: depedency of external API. Data is derived from original source directly.
          • Removed: some overspec config options.
          • Added: past 7-days bar graph.
          • Added: new confirmed, new deaths, new recovered of 1 day before (… of update date)
          • Added : info section, last reported time, distance from me.
          • Changed : multi pinned. pin key format changed.
          • Chagned : more controllable by CSS.

          Screenshot

          L 1 Reply Last reply Mar 5, 2020, 2:53 PM Reply Quote 2
          • L Offline
            lavolp3 Module Developer @Guest
            last edited by Mar 5, 2020, 2:53 PM

            @Sean Looks veeeery good! Nice work! I can scrap my fork now :-)

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

            ? 1 Reply Last reply Mar 5, 2020, 3:00 PM Reply Quote 0
            • ? Offline
              A Former User @lavolp3
              last edited by Mar 5, 2020, 3:00 PM

              @lavolp3
              You can hide deaths for your wife.

              .covid .deaths {
                display:none;
              }
              

              L 1 Reply Last reply Mar 5, 2020, 4:14 PM Reply Quote 0
              • L Offline
                lavolp3 Module Developer @Guest
                last edited by Mar 5, 2020, 4:14 PM

                @Sean :face_with_tears_of_joy:
                No, that’s not enough.
                I keep this on my development dashboard

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

                1 Reply Last reply Reply Quote 0
                • X Offline
                  x5nder
                  last edited by Mar 12, 2020, 2:29 PM

                  The World Total doesn’t show numbers anymore, but instead it just comes back with ‘NaN’. How can we fix this?

                  ? 2 Replies Last reply Mar 12, 2020, 3:04 PM Reply Quote 0
                  • ? Offline
                    A Former User @x5nder
                    last edited by Mar 12, 2020, 3:04 PM

                    @x5nder
                    I’ll see.

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @x5nder
                      last edited by Mar 12, 2020, 3:22 PM

                      @x5nder
                      There was some invalid data schemes in original source. I fixed urgently now. (But I’ll inspect deeper tomorrow)

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 2 / 8
                      2 / 8
                      • First post
                        19/71
                        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