npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-covid19

v2.0.1

Published

A node-red node to gather information about the statistics of COVID-19 (Corona) virus.

Downloads

11

Readme

node-red-contrib-covid19

A simple set of node-red nodes to gather statistics regarding of COIVD-19 (Corona) virus cases.

Install

Run the following npm command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-covid19

Note that statistics rely on external sources, witch may not be 100% accurate, and may not be online 24/7.

Version 2.0.0

Added two new nodes All of the nodes are moved to the COVID19 category inside node-red

Node usage

This node gets a request of all of the statistics, and filter them according to nodes settings. In the Specify countries: type in the iso code of the country you want to gather the statistics of the COVID-19 virus.(make sure that the iso code is uppercase).

Input:

Input can be any messsage, there is no need to set up anything.

Output:

All of the nodes outputs are in msg.covid.

Default values that are always sent to the output are:

msg.covid.(countryISO).countryinfo.country        (string)
msg.covid.(countryISO).countryinfo.iso            (string)
msg.covid.(countryISO).countryinfo.iso2           (string)
msg.covid.(countryISO).countryinfo.flagurl        (string)
msg.covid.(countryISO).countryinfo.location.lat   (number)
msg.covid.(countryISO).countryinfo.location.long  (number)

Other variable outputs are:

msg.covid.(countryISO).cases          (number)    Cases count
msg.covid.(countryISO).deaths         (number)    Deaths count
msg.covid.(countryISO).recovered      (number)    Recovered count
msg.covid.(countryISO).active         (number)    Active count
msg.covid.(countryISO).critical       (number)    Critical count
msg.covid.(countryISO).todaycases     (number)    Today count
msg.covid.(countryISO).todaydeaths    (number)    Today Deaths count
msg.covid.(countryISO).casemilion     (number)    Cases Per One Milion count
msg.covid.(countryISO).deathsmilion   (number)    Deaths Per One Milion count 

All of these outputs are optional, depending if selected checkboxes are checked or not.

Screenshots

This are the values that are sent everytime.

This is the output of the node with all of the settigns checked for China and Italy.

And these are the settings of the output above.

In case the Countries text box is lefted empty or haves an error you will recieve the first error when you deploy your flow, and the second error when the node recieves a message.

In case your textbox haves an invalid country iso format you will recieve the following error.

New nodes

These are the results from the worldwide node:

These are the results from the affected countries node: