This macro gives you a notification with the current Corona (COVID-19) data for a selected region.
- Make sure the macro group, where the macro is in, is enabled.
- In the header of the macro, set the desired hotkey trigger and make sure the Triggered by checkbox is selected.
- Make sure you are connected to the internet.
- Run the macro via its hotkey trigger.
In the list that should pop up, select your region/state/country, like this:
Then press Return and you will get a notification with the following data:
- Country/region & time stamp
- Number of confirmed/recoverd
- Diff of confirmed/recovered against previous data (day before)
The data is pulled from this:
It seems an updated table (with the data of the previous day) is uploaded once per day. So, it makes no sense to repeatedly run the macro for the same region on one day. This would only produce unnecessary traffic.
Currently (as of 2020-03-12) you will get an error when demanding data for certain regions (
for example France [France works again as of 2020-03-13]). This is because the current data format (last day) for some regions differs from the previous data format, for example “France” is Country and State vs “France” is only Country, and State is "" (empty).
I don’t know why they don’t publish the data with a consistent format, but I guess this will go away in a couple of days. If not, I’ll have to modify the macro.
For issues concerning the data itself, see the Issue Tracker.
It is not point of this macro to panic you. I’m completely aware that certain factions/companies may profit from people being panicked and may even push this ahead. Point of this macro simply is to facilitate quickly getting the desired information for a given region. It is up to you to handle this information responsibly.
- Using GMT offset now (should save a few http requests)
- Better mechanics to make sure always the latest data is pulled (considering the possible “dead” hour between 0h and ~1h and the different time zones)
- Fixed local variable issue
Added a check for if the data has not been updated yet (mainly shortly after 0:00h); we take the previous data as “latest” then, and pull the data from 2 days before for the “previous”.
Added time to the notification (the region-specific time stamp as in the latest pulled table)