Leave myself more breadcrumbs

This commit is contained in:
Dan Buch
2015-10-04 18:41:08 -04:00
parent 20cddd116b
commit 23e4f02538
8 changed files with 121 additions and 14 deletions

View File

@@ -2,3 +2,20 @@
Transforms [this](http://api.bls.gov/publicAPI/v2/timeseries/data/CUUSA210SA0)
into [this](http://s3.amazonaws.com/meatballhat/cpi/current.csv) :tada:.
## usage
This is intended for use with Google Sheets via:
```
=IMPORTDATA("http://s3.amazonaws.com/meatballhat/cpi/current.csv")
```
## deployment
A copy of this thing is deployed to Heroku with a Heroku Scheduler addon
configured to run the following once daily:
``` bash
bundle exec ruby cpi_fetcher.rb | bundle exec ruby mini_s3put.rb
```