• 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 based on covid19api.com APIs

Scheduled Pinned Locked Moved Health
4 Posts 1 Posters 792 Views 1 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.
  • 0 Offline
    0m4r Module Developer
    last edited by Jan 15, 2021, 8:50 AM

    you can find it here: https://github.com/0m4r/MMM-covid19

    04de9ba7-c3de-499e-9b46-0ad9ecaba9f2-image.png

    Let me know how you like it!

    https://github.com/0m4r

    0 1 Reply Last reply May 15, 2021, 12:27 PM Reply Quote 0
    • 0 Offline
      0m4r Module Developer @0m4r
      last edited by May 15, 2021, 12:27 PM

      A new release is out, version v0.3.0!
      Many new updates to make the code more reliable and stable.
      Added the option to schedule API call with a cron-like approach (https://github.com/node-schedule/node-schedule#readme)
      At the bottom are added more information about the timeframe the data refers to, the time of the next data refresh time (next API request), and the installed version vs. the latest available version.

      MMM-covide19 screenshot

      https://github.com/0m4r

      0 1 Reply Last reply Dec 27, 2021, 10:51 AM Reply Quote 0
      • 0 Offline
        0m4r Module Developer @0m4r
        last edited by 0m4r Dec 27, 2021, 12:10 PM Dec 27, 2021, 10:51 AM

        Good news! I have updated the module to swap the data provider to a new one (that seems to be more reliable and provides the most recent available data and, some additional ones too!)

        The changes are still on a development branch, so if you are interested in trying them out you can do the following (assuming you are in your Magic Mirror module folder for MMM-covid19):

        git fetch -p
        git checkout feat/new-api-corona-lmao-ninja
        git pull -r
        npm install
        

        the configuration does not require any update, but a few settings are now obsolete and not used, this is how the new configuration settings could be looking like:

        countryCodes: ["DE", "IT", "US", "NZ", "UK", "FR", "IN", "ES", "BG", "GR"],
        useScheduler: true,
        schedulerConfig: '0 0 */1 * * */1', // update every hour, every day
        updateInterval: 0.5 * 60 * 1000, // update every 30 seconds, only used if useScheduler: false
        

        and here is a screenshot:
        9c110bfb-8ec5-4569-8c2f-d72f70335484-image.png

        and here is the GitHub repo:
        https://github.com/0m4r/MMM-covid19/tree/feat/new-api-corona-lmao-ninja

        https://github.com/0m4r

        0 1 Reply Last reply Jan 2, 2022, 4:20 PM Reply Quote 1
        • 0 Offline
          0m4r Module Developer @0m4r
          last edited by Jan 2, 2022, 4:20 PM

          There is a further new update available here (still under development)
          https://github.com/0m4r/MMM-covid19/tree/feat/new-api-corona-lmao-ninja

          I have added two new config properties: locale and yesterday - please refer to the https://github.com/0m4r/MMM-covid19/tree/feat/new-api-corona-lmao-ninja/README.md for the details ;)

          MMM-covid19 screenshot preview

          https://github.com/0m4r

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