Command Line Covid-19 Status
Links to repo
- GitHub - Primary Repo
Just a script that helps automate the recieving and parsing of Covid-19 data.
I built this for myself since I didn't want to rely on an irc bot since I'm not online 24/7, so offline is a must, simplicity, less data usage because my x200 doesn't get the best wifi signal when out.
Requirements: This requires
jq which I recommend having if you consume a
lot of data via shell scripts, it makes your life a lot easier.
The main file is
c19-update.sh, this is only ran when you want to update the
data. Use an alias to access the data and grep what you need.
less the cached formatted data and that's about it.
If you want to make full use of this script I'd recommend making an alias for it, since, c'mon, I know you want to keep looking at the stats.
alias covid-stats="cat ~/.cache/corona-formatted" \ covid-update="<path-to-script>/c19-update.sh" \
If you want to be big-brained about it and not have to worry about running an
alias every time you want something, then think about modifying the script by
case and setting to a cron job. I don't want to make assumptions
when putting a repo on github so I have that conditional for it.
Note: Remember to run the update script first. After you do that it's saved
~/.cache/corona_stats so just cat that to see what there is.