An open API service indexing awesome lists of open source software.

https://github.com/codedcontainer/covid19

Grabs stats from the CDC website and the Indiana Coronavirus webpage and saves these to a Google Spreadsheet
https://github.com/codedcontainer/covid19

Last synced: 4 months ago
JSON representation

Grabs stats from the CDC website and the Indiana Coronavirus webpage and saves these to a Google Spreadsheet

Awesome Lists containing this project

README

        

# United States Covid19 Stats To Google Spreadsheets #
Grabs stats about number of cases, deaths, and more for the United States and individual states. After returning data the data is saved into a private Google spreadsheet.

## Getting Started ##
1. Install Selenium Web Driver for your OS
2. Install all packages `npm install`
3. Create a new Google Spreadsheet doc with a sheet for the US total and each state
4. Make sure that the column headers match the object property names
5. Follow the authentication service account steps: https://theoephraim.github.io/node-google-spreadsheet/#/getting-started/authentication
6. Save credentials from Google API to `./credentials.json`
7. Replace Google sheet ID in `./index.json`
8. Go to document share > share with service email address
9. If you need to update with past records go to http://coronavirusapi.com/, find state, and save as CSV.
- If you open this in Excel you can convert the Unix time to simple date (use resource link below)

## Resources ##
-[Lodash: how to sort by array of dates](https://stackoverflow.com/questions/26930692/lo-dash-sortby-array-of-dates-in-string-format)
-[_.isEqual reporting diff when there is none](https://stackoverflow.com/questions/32516519/isequal-reporting-a-difference-when-there-is-none)
- [Add delay to JS loop](https://stackoverflow.com/questions/3583724/how-do-i-add-a-delay-in-a-javascript-loop)
- Installing node on Raspberry Pi: `curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -`
- `sudo apt install nodejs`
- Installing on Raspberry Pi: `apt-get install chromium-chromedriver`
- Linux Path to Chrome web driver: `/usr/lib/chromium-browser/chromedriver`
- [How to execute node cron job](https://stackoverflow.com/questions/5849402/how-can-you-execute-a-node-js-script-via-a-cron-job#5849463)
- [Chrome driver headless](https://stackoverflow.com/questions/44197253/headless-automation-with-nodejs-selenium-webdriver#48677891)
- [Spreadsheet convert Unix to short date time](https://stackoverflow.com/questions/46130132/converting-unix-time-into-date-time-via-excel#48617380)