GithubHelp home page GithubHelp logo

grab-inreach's Introduction

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

grab-inreach's People

Contributors

camilleanne avatar

Stargazers

 avatar Jacob Vigeveno avatar Majid Hojati avatar Tomislav Filipcic avatar Sam Burba avatar Dan Fernandez avatar Will Smidlein avatar Chris avatar Agbeli Ameko avatar Taras Kalapun avatar Sam Wilson avatar Bruce Schubert avatar

Watchers

James Cloos avatar  avatar

Forkers

nkgilroy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.