• 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-COVID19-SPARKLINE

Scheduled Pinned Locked Moved Health
29 Posts 16 Posters 7.6k Views 14 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 Offline
    skelliam
    last edited by skelliam Apr 5, 2020, 4:17 PM Mar 28, 2020, 4:59 PM

    Description:
    Yet another COVID-19 tracker. This one adds sparklines (small graphs).

    4-April-2020: Added Weekly change vs. Total Cases plot (sparklineDeltavsDaily), see this idea put forth by minutephysics in “https://www.youtube.com/watch?v=54XLXg4fYsc”

    5-April-2020: Added ability to show n days in delta plot (showDeltaPlotNDays), also merged Brian Hepler’s numeric delimiter option.

    For the latest info please see the project readme.md file.

    Credits:
    This is a combination of MMM-COVID19 and MMM-COVID-19. I liked Jose’s clean look, but I liked how Sean used the github data source (the same data Johns Hopkins is using). So I used Sean’s library and Jose’s GUI and added the tiny plots.

    I also discovered highcharts.js while working on this; this is an incredible piece of work. (Also see MMM-GoogleFit’s use of this lib.)

    Thanks Brian Hepler for adding delimiters to the data, makes it much easier to read. See option showDelimiter.

    Source:
    I’m not a web developer.
    https://github.com/skelliam/MMM-COVID19-SPARKLINE

    Development:
    If you see something wrong, please fix it and make a pull request. I can’t promise that I’ll be actively maintaining this or responding to queries.

    Screenshot:
    Screenshot

    Delta Cases vs Total Cases Screenshot:
    See option sparklineDeltavsDaily.
    Screenshot

    Last n days in delta plot screenshot
    The option showDeltaPlotNDays will sum the previous (n) days and smooth out the delta plot, this has an effect of phase-shifting the data to the left in time, but it also helps eliminate noise. I love how the South Korea data below clearly shows two distinct curves – one indicating that their peak growth has come and gone, but a new curve showing peak growth of recoveries. This data is beautiful! :)
    Screenshot

    S J 2 Replies Last reply Mar 31, 2020, 11:21 PM Reply Quote 4
    • E Offline
      ezarlive
      last edited by Mar 28, 2020, 7:51 PM

      WoW! Fantastic ;)

      1 Reply Last reply Reply Quote 1
      • E Offline
        ezarlive
        last edited by Mar 28, 2020, 8:35 PM

        Please add an option to select backend data. Current github api doesn’t have updated data for Europe. Using MMM-COVID19 data is refreshed.

        1 Reply Last reply Reply Quote 1
        • M Offline
          minomit
          last edited by Mar 30, 2020, 10:43 AM

          uau, good work

          1 Reply Last reply Reply Quote 1
          • S Offline
            sonicgoose @skelliam
            last edited by Mar 31, 2020, 11:21 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • B Offline
              bhepler Module Developer
              last edited by Apr 3, 2020, 1:52 PM

              Thank you for this. Great work.

              1 Reply Last reply Reply Quote 1
              • S Offline
                Sparkie579
                last edited by Apr 8, 2020, 9:52 AM

                Is there any update to show UK / Europe data?

                B 1 Reply Last reply Apr 8, 2020, 7:10 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @Sparkie579
                  last edited by bhepler Apr 8, 2020, 7:13 PM Apr 8, 2020, 7:10 PM

                  @Sparkie579 - UK can be specified by putting “United Kingdom” in the config. I don’t think there is one for the EU as a whole. But you can specify the countries in the EU.

                  You can go to the Johns Hopkins page and see the list of countries that it tracks. Use those names in the left column if you need to look up particular spelling & variations (UK vs United Kingdom vs Britain vs England).

                  S S 2 Replies Last reply Apr 9, 2020, 9:07 PM Reply Quote 1
                  • S Offline
                    skelliam @bhepler
                    last edited by Apr 9, 2020, 9:07 PM

                    @bhepler Thanks, that is exactly correct! Any country can be specified so long as it is in the Johns Hopkins data.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cyberphox
                      last edited by Apr 10, 2020, 12:01 PM

                      Getting this error when I try to run npm install

                      npm ERR! code Z_DATA_ERROR
                      npm ERR! errno -3
                      npm ERR! zlib: invalid distance too far back

                      Actually getting that error when trying to install MMM-Screencast as well.

                      Running my MM in serveronly in a docker on my Synology NAS

                      Full time Dad, DJ and entertainer and lover of technology.

                      S 1 Reply Last reply Apr 10, 2020, 3:27 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        2/29
                        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