Skip to content
This repository has been archived by the owner on Sep 15, 2019. It is now read-only.

A Serverless AWS Lambda function that runs every 15 minutes, checks the Bandon river level at http://www.bandonfloodwarning.ie/ and saves it to Google Fusion Tables.

License

Notifications You must be signed in to change notification settings

conoro/bandonfews-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BandonFEWS-Serverless

A Serverless AWS Lambda function that runs every 15 minutes, checks the Bandon river level at http://www.bandonfloodwarning.ie/ and saves it to Google Fusion Tables.

Setup

(Assuming you have your AWS access credentials already setup)

git clone git@github.com:conoro/bandonfews-serverless.git
cd bandonfews-serverless
npm install -g serverless
npm install
serverless deploy

Notes:

  1. You can also invoke it manually by accessing the GET URL returned by the successful serverless deploy
  2. You can check manually invoked logs with:
serverless logs -f check

and Cron logs with

serverless logs -f cron
  1. If you make minor changes to just the function code, you can do a quick re-deploy with:
serverless deploy function -f check
  1. Change FUSIONTABLES_ID in serverless.yml to use this code with your own Fusion Table

  2. This code now uses JWT-based auth for simplicity. Here's how to setup for yourself:

LICENSE Apache-2.0

Copyright Conor O'Neill 2017, conor@conoroneill.com

About

A Serverless AWS Lambda function that runs every 15 minutes, checks the Bandon river level at http://www.bandonfloodwarning.ie/ and saves it to Google Fusion Tables.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published