A cron job for fetching data from blood.org.tw, convert to JSON file and send to gh-pages.
JSON file is generated every hour and upload to here: http://g0v.github.io/blood/blood.json
Goto Github Settings -> Personal access tokens to create a new token.
export GH_TOKEN & GH_REF to your environment variables
export GH_TOKEN=<YOUR_GITHUB_TOKEN>
export GH_REF=github.com/g0v/blood.git
Install dependencies:
npm install
and execute main.js
to fetch data blood.org.tw, convert to json and send to gh-pages.
node main.js
MIT License