Skip to content

lambda for grabbing garmin inreach traces for use on map

Notifications You must be signed in to change notification settings

camilleanne/grab-inreach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

lambda for grabbing garmin inreach traces for use on map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published