MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-covid19 based on covid19api.com APIs

    Health
    1
    4
    460
    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.
    • 0m4r
      0m4r Module Developer last edited by

      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

      0m4r 1 Reply Last reply Reply Quote 0
      • 0m4r
        0m4r Module Developer @0m4r last edited by

        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

        0m4r 1 Reply Last reply Reply Quote 0
        • 0m4r
          0m4r Module Developer @0m4r last edited by 0m4r

          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

          0m4r 1 Reply Last reply Reply Quote 1
          • 0m4r
            0m4r Module Developer @0m4r last edited by

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy