It is a google sheets function now

This commit is contained in:
2023-01-21 20:29:36 -05:00
parent 5aadce63fd
commit 4f05c1cbae
12 changed files with 45 additions and 244 deletions

View File

@@ -1,21 +1,17 @@
# cpi-feed
Transforms [this](https://api.bls.gov/publicAPI/v2/timeseries/data/CUUSA210SA0)
into [this](https://s3.amazonaws.com/meatballhat/cpi/current.csv) :tada:.
into CSV rows.
## usage
This is intended for use with Google Sheets via:
```
=IMPORTDATA("https://s3.amazonaws.com/meatballhat/cpi/current.csv")
=CURRENTCPI("{bls-token}")
```
## 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 ./sync
```
Just like [this
example](https://apipheny.io/import-json-google-sheets/).