Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.02 KB

readme.md

File metadata and controls

17 lines (13 loc) · 1.02 KB

grab inreach

A lambda function for scooping up the KML files from the Garmin InReach shared feed, converting to GeoJSON, and dumping it on S3.

For a version of this script that simplifies geometries and outputs a geobuf instead of GeoJSON see the simplify branch.

deploy

  1. create a lambda function on AWS with a Cloudwatch scheduled trigger (InReach defaults to sending a new point every 10m, my script is scheduled for once an hour)
  2. Set up environment variables through the AWS Cloudwatch console:
    • BUCKET (destination bucket of GeoJSON)
    • KEY (prefix and filename for JSON)
    • INREACHACCT (the public name of feed you are requesting)
    • STARTDATE (beginning of time frame for requested date in YYYY-MM-DD)
  3. Give the lambda write permission to the destination BUCKET
  4. If you set up the function with a name other than grab-inreach or in region other than us-east-1, edit /lambda-package.sh
  5. run ./lamda-package.sh to deploy script