# \[ANNOUNCE\] node-red-contrib-covid19

**URL:** <https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706>\
**Category:** Share Your Nodes\
**Created:** [27 March 2020 04:46 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706 "2020-03-27T04:46:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [27 March 2020 04:46 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/1 "2020-03-27T04:46:09Z")

</div>

First of all i want to thank @BartButenaers for helping me understand the 'functionality of custom nodes'.  
After couple of days of writing code and debuginig i managed to create a first beta version (some of functionality was ejected, as i couldn`t resolve some errors).

You can check the code @ [github](https://github.com/vukmirovic98/node-red-contrib-covid19)

Had some problems when uploading the package to npm regarding of ` Package name triggered spam detection' so i emailed the support and they allowed me to upload.

This is a simple node to gather statistics regarding of COIVD-19 (Corona) virus cases.  
It was just a small project for me, after someone on facebook left me a comment with github page on COVID19 JSON file.

**THE RESULTS MAY NOT BE 100% ACCURATE**

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [27 March 2020 07:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/2 "2020-03-27T07:27:45Z")

</div>

Morning Vukmirovic,

I must admit that I am really impressed. When I compare your Node-RED knowledge level today and a few weeks ago, it is amazing to see how much you have learned from experimenting and reading code from other people. 👍 👍 👍 👍

Nice to have you in the community, and keep up the good work!

P.S. Probably you already know, but just in case: if you ever publish your final version (after your beta's), don't forget to add the "_node-red_" keyword in your [package.json](https://github.com/vukmirovic98/node-red-contrib-covid19/blob/master/package.json#L13) file. Otherwise it will not appear in the Node-RED palette. But indeed for a beta version you don't want it to appear in the palette.

Bart

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [27 March 2020 07:47 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/3 "2020-03-27T07:47:03Z")

</div>

If you ever manage to build up some partnership with @BartButenaers, all the best and a bit more will be squeezed out from you but in the very nice and friendly way.  
To improve your powers and discover your hidden skills, work with Bart

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [27 March 2020 07:59 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/4 "2020-03-27T07:59:17Z")

</div>

Well, actually I wasnt very happy myself with the code I wrote . Especially where I needed to fetch the JSON file two times in the js file (variable result was returning undefined couldn't figure out why as I declared it globally and literally made 20+ changes in the code to try to fetch only on node input, but I didn`t manage to do it). And decide to push it to npm.js but not for node-red  
And the [server for pulling statistics](https://corona.lmao.ninja/countries/) is not very reliable as it gets offline several times a day.  
And, of course, any recommendation for improvement of the node is needed.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [27 March 2020 08:06 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/5 "2020-03-27T08:06:49Z")

</div>

> [@hotNipi](#):
>
> all the best and a bit more will be squeezed out from you but in the very nice and friendly way.

Damn, busted 🤣 😂 🤣

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [27 March 2020 08:16 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/6 "2020-03-27T08:16:11Z")

</div>

> [@lizzardguki](#):
>
> I needed to fetch the JSON file two times in the js file (variable result was returning undefined couldn't figure out why as I declared it globally

I understand that you call it as soon as an input message arrives, but why do you need to get it when your node is started? Perhaps you can explain this a bit more in details, so we can help you with it ...

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [27 March 2020 21:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/8 "2020-03-27T21:58:00Z")

</div>

**Version 1.1.0 is available on NPM**  
I fixed the issue of using msg,covid19 and changed it to just msg.covid  
And the node is not running fetch on deployment anymore 😃  
And I also fixed some errors and status messages.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 March 2020 23:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/9 "2020-03-27T23:27:01Z")

</div>

> [@lizzardguki](#):
>
> And the [server for pulling statistics](https://corona.lmao.ninja/countries/) is not very reliable as it gets offline several times a day.  
> And, of course, any recommendation for improvement of the node is needed.

Most people seem to be using the data published by Johns Hopkins which comes from the original WHO data. I've used that myself in an example flow and in a spreadsheet I'm using as a test to myself of using Excel PowerQuery, pivot tables and charts. I combined that with standard population data so that I could do things like normalise the number of cases as a % of population. Some useful mental exercises more than really taking the numbers too seriously since there are far too many variables for the numbers to be all that accurate.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [1 April 2020 19:16 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/10 "2020-04-01T19:16:42Z")

</div>

3 posts were split to a new topic: [How to make a flow?](https://discourse.nodered.org/t/how-to-make-a-flow/24051)

---

<div class="post-metadata">

**Author:** ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)\
**Post date:** [1 April 2020 21:33 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/11 "2020-04-01T21:33:37Z")

</div>

Hi, thank's...I want to try your node...for my dashboard!

Very goood

 ![Covid-italia](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e270fa8df1b7defd3ac71e8bd1d147897e259316.png)

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [1 April 2020 21:38 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/12 "2020-04-01T21:38:33Z")

</div>

Great 😃 if you have any issues or anything you can submit them at [Github](https://github.com/vukmirovic98/node-red-contrib-covid19)

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [5 April 2020 15:49 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/13 "2020-04-05T15:49:28Z")

</div>

Version 2.0.0 is on [npmjs](https://www.npmjs.com/package/node-red-contrib-covid19)  
-added two new nodes  
-the first node (COVID-19) is renamed (may cause a crash in the flow)

- All of the nodes are located under COVID19 category

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 May 2020 04:46 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-covid19/23706/14 "2020-05-26T04:46:20Z")

</div>

This topic was automatically closed after 60 days. New replies are no longer allowed.
