Update/add data sources
This commit is contained in:
parent
20b98d6742
commit
3aa44ed788
@ -103,7 +103,7 @@ alive(){
|
|||||||
|
|
||||||
cv(){
|
cv(){
|
||||||
args
|
args
|
||||||
stats=$(curl -s "https://corona.lmao.ninja/v2/countries/${args[*]}")
|
stats=$(curl -s "https://disease.sh/v3/covid-19/countries/${args[*]}")
|
||||||
mapfile -t cv <<< $(jq -cr '.[]' <<< $stats)
|
mapfile -t cv <<< $(jq -cr '.[]' <<< $stats)
|
||||||
if [ "${cv[4]}" == "0" ]
|
if [ "${cv[4]}" == "0" ]
|
||||||
then
|
then
|
||||||
@ -137,6 +137,7 @@ cv(){
|
|||||||
<b>Total:</b> $(div ${cv[3]}) ($(pct 1 ${cv[11]} 10000))
|
<b>Total:</b> $(div ${cv[3]}) ($(pct 1 ${cv[11]} 10000))
|
||||||
<b>Tests:</b> $(div ${cv[13]}) ($(pct 1 ${cv[14]} 10000))
|
<b>Tests:</b> $(div ${cv[13]}) ($(pct 1 ${cv[14]} 10000))
|
||||||
<b>Population:</b> $(div ${cv[15]})
|
<b>Population:</b> $(div ${cv[15]})
|
||||||
|
<b>Data source:</b> <a href=\"https://disease.sh\">disease.sh</a>
|
||||||
|
|
||||||
<b>Vaccination stats:</b>
|
<b>Vaccination stats:</b>
|
||||||
<b>Total coverage:</b> $(div ${vac[2]}) ($(pct 100 ${vac[2]} ${cv[15]}))
|
<b>Total coverage:</b> $(div ${vac[2]}) ($(pct 100 ${vac[2]} ${cv[15]}))
|
||||||
@ -144,6 +145,7 @@ cv(){
|
|||||||
<b>Administered today:</b> $(div ${vac[4]})
|
<b>Administered today:</b> $(div ${vac[4]})
|
||||||
<b>Daily average (7d):</b> $(div ${vac[5]})
|
<b>Daily average (7d):</b> $(div ${vac[5]})
|
||||||
<b>Last update:</b> ${vac[0]}
|
<b>Last update:</b> ${vac[0]}
|
||||||
|
<b>Data source:</b> <a href=\"https://github.com/owid/covid-19-data/tree/master/public/data/vaccinations\">Our World in Data</a>
|
||||||
|
|
||||||
Queried at $(date +'%Y-%m-%d %H:%M %Z').
|
Queried at $(date +'%Y-%m-%d %H:%M %Z').
|
||||||
Stay safe and get yourself vaccinated!
|
Stay safe and get yourself vaccinated!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user