# 🦠 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:** 16\
**Page:** 5

<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:** [October 25, 2021, 6:40pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/83 "2021-10-25T18:40:26Z")

</div>

You never mentioned you were using a Beta version of Mac OS. Monterey has been release today, same issues with full release? I wont be installing Monterey for some time, when I do, I will take a look.

Maybe the BTT dev. will know what the issue is, im sure he has been working a lot with the beta builds and BTT.

---

<div class="post-metadata">

**Author:** ![AndiVienna91](https://community.folivora.ai/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@AndiVienna91](https://community.folivora.ai/u/AndiVienna91)\
**Post date:** [October 25, 2021, 6:48pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/84 "2021-10-25T18:48:34Z")

</div>

Here I mentioned about Monterey, but yes - same issue with full release.

I think there are some changes with how scripts work in Monterey ... BTT got uncountable updates (alphas included) and none of them does change anything in this case.

 ![Bildschirmfoto 2021-10-25 um 20.42.59](https://community.folivora.ai/uploads/default/original/3X/9/7/97bfd14cb814d17c2397ead5e4c877729cb82e9b.png)

---

<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:** [October 25, 2021, 6:55pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/85 "2021-10-25T18:55:41Z")

</div>

I hope its something that @Andreas_Hegenberg is able to resolve on the BTT end. If its something that causes changes in preset scripting, it will have to wait until I update MacOS or another user of my scripts compete the changes.

---

<div class="post-metadata">

**Author:** ![AndiVienna91](https://community.folivora.ai/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@AndiVienna91](https://community.folivora.ai/u/AndiVienna91)\
**Post date:** [October 25, 2021, 7:01pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/86 "2021-10-25T19:01:06Z")

</div>

Thank you very much for your help, I am sure we will fix this in the future. 👍

---

<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:** [October 25, 2021, 7:02pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/87 "2021-10-25T19:02:16Z")

</div>

For sure!

---

<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:** [October 25, 2021, 7:03pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/88 "2021-10-25T19:03:38Z")

</div>

I’m not aware of any scripting changes in Monterey, I’d assume it has something to do with the API that’s being called.

Can you post the result of just running the curl portion of the command?

Possibly the command line tools have been upgraded to newer versions on Monterey, but it‘d be weird if they‘d behave differently now

---

<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:** [October 25, 2021, 7:27pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/89 "2021-10-25T19:27:53Z")

</div>

curl [https://covid19-cli.wareneutron.com/basic/USA](https://covid19-cli.wareneutron.com/basic/USA) -si | grep -m1 -A1 'Cases' | sed 's/ \*Cases _| //g' | sed 's/ Today._//g'

> 46,316,225  
> Returns correctly on my end running MacOS Big Sur, BTT 3.565

---

<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:** [October 25, 2021, 7:32pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/90 "2021-10-25T19:32:29Z")

</div>

Returns this on my Monterey installation:

 ![image](https://community.folivora.ai/uploads/default/original/3X/2/4/24aa26ad5f3af63998f985e197e39a2408385b0c.jpeg)

---

<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:** [October 25, 2021, 7:34pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/91 "2021-10-25T19:34:04Z")

</div>

OK, so it does look like some scripting changes in Monterey.

---

<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:** [October 25, 2021, 7:34pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/92 "2021-10-25T19:34:44Z")

</div>

Should this return something different? (Sorry I haven't been following the thread :-D)

---

<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:** [October 25, 2021, 7:37pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/93 "2021-10-25T19:37:40Z")

</div>

Yes, It should return just the value.

 ![Screen Shot 2021-10-25 at 2.37.22 PM](https://community.folivora.ai/uploads/default/original/3X/3/1/31da29964da48b17b498e33714061432c10a8756.png)

---

<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:** [October 25, 2021, 7:37pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/94 "2021-10-25T19:37:53Z")

</div>

![image](https://community.folivora.ai/uploads/default/original/3X/d/e/de5bed7762ede9fdee1163525a02761c38f0e6ea.jpeg)

Can you check the curl & grep versions of older macOS? Then we can check the changelog for these tools

---

<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:** [October 25, 2021, 7:40pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/95 "2021-10-25T19:40:21Z")

</div>

![Screen Shot 2021-10-25 at 2.39.32 PM](https://community.folivora.ai/uploads/default/original/3X/2/b/2b5563c58a4286ee81f59af514d664f0f95433cd.png)

---

<div class="post-metadata">

**Author:** ![AndiVienna91](https://community.folivora.ai/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@AndiVienna91](https://community.folivora.ai/u/AndiVienna91)\
**Post date:** [October 25, 2021, 8:29pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/96 "2021-10-25T20:29:39Z")

</div>

I figured a way out to get rid of the unwanted infos.

I red something of the "grep" functions and hid unwanted things with "grep -v"

I don't know if this is a "clean" way to do this, but it seems to work for now.

I saved a Version where I changed nothing but the grep -v thing so that you can /test/use/upload it at some time if you want to.

[K2 CoronaVirus Monterey.bttpreset](https://community.folivora.ai/uploads/short-url/Nvhzfgec9MOGSMmG9f5mCHKbE0.bttpreset) (618.2 KB)

Maybe this works with Big Sur AND Monterey ... if yes, this could save you some work in the future.

Edit: This is what "Today Cases" looks now, just as an example ...

do shell script "curl [https://covid19-cli.wareneutron.com/basic/](https://covid19-cli.wareneutron.com/basic/)" & Country & " -si | grep -m1 -A1 'Today Cases' | grep -v 'Active' | sed 's/.\*Today Cases \*| //g'"

---

<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:** [October 25, 2021, 8:39pm UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/97 "2021-10-25T20:39:51Z")

</div>

Thanks for doing that leg work. That should work for new and old. Ill check that out later as well.

---

<div class="post-metadata">

**Author:** ![TM1698](https://community.folivora.ai/letter_avatar_proxy/v4/letter/t/ed8c4c/32.png) [@TM1698](https://community.folivora.ai/u/TM1698)\
**Post date:** [November 22, 2021, 10:59am UTC](https://community.folivora.ai/t/coronavirus-covid-19-statistics-in-touchbar/14817/98 "2021-11-22T10:59:03Z")

</div>

Total noob here, really keen to see this in action on my touchbar, but I just can't get it to work at all, even after following all of the instructions on this thread and trying to copy other people's scripts. Is there a quick tutorial I'm able to find somewhere or just script I can copy and substitute my own country (Australia) into?

Thanks!

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