diff --git a/konata.sh b/konata.sh index fcdf410..b6ce904 100755 --- a/konata.sh +++ b/konata.sh @@ -103,7 +103,7 @@ alive(){ cv(){ 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) if [ "${cv[4]}" == "0" ] then @@ -137,6 +137,7 @@ cv(){ Total: $(div ${cv[3]}) ($(pct 1 ${cv[11]} 10000)) Tests: $(div ${cv[13]}) ($(pct 1 ${cv[14]} 10000)) Population: $(div ${cv[15]}) + Data source: disease.sh Vaccination stats: Total coverage: $(div ${vac[2]}) ($(pct 100 ${vac[2]} ${cv[15]})) @@ -144,6 +145,7 @@ cv(){ Administered today: $(div ${vac[4]}) Daily average (7d): $(div ${vac[5]}) Last update: ${vac[0]} + Data source: Our World in Data Queried at $(date +'%Y-%m-%d %H:%M %Z'). Stay safe and get yourself vaccinated!