# 🦠 CoronaVirus COVID-19 Statistics in TouchBar

**URL:** <https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817>\
**Category:** Setup/Preset Sharing\
**Tags:** touch-bar, preset\
**Created:** [March 30, 2020, 10:34pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817 "2020-03-30T22:34:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [March 30, 2020, 10:34pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/1 "2020-03-30T22:34:16Z")

</div>

Are you interested in having the CoronaVirus COVID-19 Statistics in your country on the MacBook Pro touchbar?  
 ![IMG_0282 2](https://community.folivora.ai/uploads/default/original/2X/f/fd83ab18af34add8c09c207a79e1dd6f997c0ac5.jpeg)

 ![Touch Bar Shot 2020-04-18 at 9.44.44 AM](https://community.folivora.ai/uploads/default/original/2X/f/f40f74b676a32c6f0d1370f2918fdf3ded309a84.png)

 ![Touch Bar Shot 2020-10-29 at 10.56.44 AM](https://community.folivora.ai/uploads/default/original/3X/6/1/61284d41115f7692867dcea70d7c601302537ace.png)  
 ![Touch Bar Shot 2020-10-29 at 11.08.13 AM](https://community.folivora.ai/uploads/default/original/3X/e/4/e47bd9b433494b7db7063baa4a0dd5dfbc3a0eb4.png)  
 ![Touch Bar Shot 2020-10-29 at 11.09.35 AM](https://community.folivora.ai/uploads/default/original/3X/6/0/6057412018128d01a95ec0d0350131afb87cc837.png)

**Enjoying This Preset?** [PayPal.me/K2DesignLab](http://paypal.me/K2DesignLab)

**UPDATED: 04/06/2021**  
**Download Preset:** [K2 CoronaVirus.bttpreset](https://community.folivora.ai/uploads/short-url/lPHqCdaggzJU7mBhYli96sV2KS0.bttpreset) (617.9 KB)

**Notes:**

1. Changed to NEW data URL.

2. Fixed display based on new code changes from tracker.

3. Changed some display config for values to fit properly. Needed to expand the data value fields.

4. Added placeholder for chart data (coming soon)

5. I added a **LONG PRESS** action/trigger to the Main button (COVID CASES) and Country button on the CoronaVirus full details view. Long Press the main display button and enter your country name or ISO Country CODE. example: Hong Kong = HK

6. I also added a **SHORT PRESS** action on the Country button in the full display. This short tap action will open the Webpage of Country Codes.

**PLEASE NOTE:**  
I made the "Corona Virus Country" to a variable (LONG PRESS MAIN BUTTON or Country on full display to **set your country** ), Enter country name or **country ISO 3166-1 code**. (ie. "USA", "GB", "GBU", "DE", "DEU")

> Country Codes: **Short Press the country name on the full display view.** [https://en.wikipedia.org/wiki/List\_of\_ISO\_3166\_country\_codes#Current\_ISO\_3166\_country\_codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes#Current_ISO_3166_country_codes)

License: COVID-19 Tracker CLI is Developed by **Waren Gonzaga** and **Ian Vizarra** licensed under GNU General Public License v3 [Novel COVID API](https://disease.sh)

---

<div class="post-metadata">

**Author:** ![Pol](https://community.folivora.ai/user_avatar/community.folivora.ai/pol/32/10377_2.png) [@Pol](https://community.folivora.ai/u/Pol)\
**Post date:** [March 31, 2020, 12:49pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/2 "2020-03-31T12:49:30Z")

</div>

I am ! 😉

---

<div class="post-metadata">

**Author:** ![rishifter](https://community.folivora.ai/user_avatar/community.folivora.ai/rishifter/32/11656_2.png) [@rishifter](https://community.folivora.ai/u/rishifter)\
**Post date:** [March 31, 2020, 2:08pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/3 "2020-03-31T14:08:33Z")

</div>

What is the source for the data?

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [March 31, 2020, 2:19pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/4 "2020-03-31T14:19:50Z")

</div>

Data Source: [https://disease.sh](https://disease.sh)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 31, 2020, 2:25pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/5 "2020-03-31T14:25:08Z")

</div>

I think you should be careful with that. Worldometers does not allow usage of their data without payment, I had looked into that a while ago. But maybe giving instructions on how to access the data is fine 😉 I'd not publish a complete widget though as that might violate their copyright.

---

<div class="post-metadata">

**Author:** ![rishifter](https://community.folivora.ai/user_avatar/community.folivora.ai/rishifter/32/11656_2.png) [@rishifter](https://community.folivora.ai/u/rishifter)\
**Post date:** [March 31, 2020, 2:29pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/6 "2020-03-31T14:29:05Z")

</div>

Does John Hopkins or [Bing.com](http://Bing.com) doesn't have an API for the maps they show with all country specific numbers?

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [March 31, 2020, 2:41pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/7 "2020-03-31T14:41:04Z")

</div>

Thanks for that FYI...

## Sources

- API from [NovelCOVID API](https://github.com/NovelCOVID/API)  
[https://disease.sh](https://disease.sh)

## License

COVID-19 Tracker CLI is licensed under MIT - [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT)

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [April 3, 2020, 5:10pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/8 "2020-04-03T17:10:45Z")

</div>

Posted my sample code on Original Post.

---

<div class="post-metadata">

**Author:** ![Promise\_Igbokwe](https://community.folivora.ai/user_avatar/community.folivora.ai/promise_igbokwe/32/11530_2.png) [@Promise\_Igbokwe](https://community.folivora.ai/u/Promise_Igbokwe)\
**Post date:** [April 11, 2020, 6:21pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/9 "2020-04-11T18:21:33Z")

</div>

Good day, i hope you're staying safe....i'm really interested in this, but i don't know how to implement the code you pasted, could you help me with the instructions, please, thanks and sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![Polcheniezak](https://community.folivora.ai/letter_avatar_proxy/v4/letter/p/c77e96/32.png) [@Polcheniezak](https://community.folivora.ai/u/Polcheniezak)\
**Post date:** [April 15, 2020, 12:37am UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/10 "2020-04-15T00:37:20Z")

</div>

Hey ! I'm totally new to this, do I only have to paste that in apple script ? Thanks ! 🙂

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [April 15, 2020, 12:49am UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/11 "2020-04-15T00:49:53Z")

</div>

PRESET in Original Post...

---

<div class="post-metadata">

**Author:** ![Polcheniezak](https://community.folivora.ai/letter_avatar_proxy/v4/letter/p/c77e96/32.png) [@Polcheniezak](https://community.folivora.ai/u/Polcheniezak)\
**Post date:** [April 15, 2020, 11:04am UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/12 "2020-04-15T11:04:36Z")

</div>

Oh... Ok I feel stupid 😅 It was late in my country when I posted. Thanks a lot !!

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [April 17, 2020, 2:19pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/13 "2020-04-17T14:19:42Z")

</div>

New Code / Preset posted in Original Post. Seems the tracker is down or URL has changed. If you have blank data or errors, try the updated preset.

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [April 18, 2020, 3:37pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/14 "2020-04-18T15:37:41Z")

</div>

**POSTED UPDATED PRESET in Original Post.**  
**Updated:** 04/18/2020  
**Notes:** Changed some font spacing/formatting. Added "optional" country code display (pictured above).

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [May 9, 2020, 12:04am UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/15 "2020-05-09T00:04:38Z")

</div>

Working on an update... Anyone have any requests for any features or fields you would like added?

**Current Fields/Values Included:**  
Total Cases, Total Deaths, Mortality Rate%, Today Cases, Today Deaths

**Other Available Data Fields NOT DISPLAYED:**  
Critical, Recovered, Recovery %, Active, Cases/Million

Also, in the near future, I hope to have the ability to narrow down results based on STATES.

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [May 27, 2020, 9:45pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/16 "2020-05-27T21:45:29Z")

</div>

hi. I put in the code for New Zealand (ISO 3166-2:NZ), which is where I live. It didn't work, this happened. it happened when I typed the words New Zealand as well.

 ![eg 12](https://community.folivora.ai/uploads/default/original/2X/2/24a376a01bab81f49379463e919ffef9b7d587ed.png)

this is the coding:

 ![eg13](https://community.folivora.ai/uploads/default/original/2X/d/d5a8794e2af12df1c97119ab5b72939a36b0c494.jpeg)

edit:  
just realised that my country is getting pretty much no cases anymore (like 1 a week). could this be why?

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [May 27, 2020, 10:35pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/17 "2020-05-27T22:35:29Z")

</div>

Looks like the code: NZ works. Show me your output on Touch Bar.

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [May 27, 2020, 10:47pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/18 "2020-05-27T22:47:45Z")

</div>

![eg 12](https://community.folivora.ai/uploads/default/original/2X/2/24a376a01bab81f49379463e919ffef9b7d587ed.png) ![eg15](https://community.folivora.ai/uploads/default/original/2X/2/29f49a6deb20cb22e678b39c8cdc6acd2cdb6718.png)  
what do you mean by 'output on touchbar'? this?

---

<div class="post-metadata">

**Author:** ![K2DesignLab](https://community.folivora.ai/user_avatar/community.folivora.ai/k2designlab/32/5468_2.png) [@K2DesignLab](https://community.folivora.ai/u/K2DesignLab)\
**Post date:** [May 27, 2020, 11:05pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/19 "2020-05-27T23:05:10Z")

</div>

I changed to "NZ" and get the below.

 ![Touch Bar Shot 2020-05-27 at 6.04.04 PM](https://community.folivora.ai/uploads/default/original/2X/b/bb13052f9f5aacd29d8a9471df820c9fc46f4459.png)

---

<div class="post-metadata">

**Author:** ![Future\_Face](https://community.folivora.ai/user_avatar/community.folivora.ai/future_face/32/13410_2.png) [@Future\_Face](https://community.folivora.ai/u/Future_Face)\
**Post date:** [May 27, 2020, 11:13pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/20 "2020-05-27T23:13:11Z")

</div>

just 'NZ'? not New Zealand? Ill try that...

[Next page](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817.md?page=2)
