You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
0e2f600338 | 6 years ago | |
---|---|---|
.gitignore | 6 years ago | |
Pipfile | 6 years ago | |
Pipfile.lock | 6 years ago | |
README.md | 6 years ago | |
app.py | 6 years ago | |
config.example.py | 6 years ago | |
functions.py | 6 years ago | |
prebuild.py | 6 years ago | |
zappa_settings.example.json | 6 years ago |
README.md
owntracks-aws-slt
Serverless location tracking HTTP endpoints for use with Owntracks. Uses several AWS services:
- API Gateway - Provides HTTP endpoints to point Owntracks client at
- Lambda - Processes incoming data streams and performs queries, cleanups, notifications, etc
- S3 - Stores incoming messages
The backend code is written in Python 3.6 and makes use of the Pyramid web framework.
Everything is deployed and managed using the Zappa serverless management framework.
Requirements
Before you can use this tool, you must have these prerequisites:
- Amazon Web Services account
- Administrative IAM API key pair configured on your computer
- Pipenv installed on your computer
- Python 3.6 installed on your computer
Setup
Assuming you have all the requirements met, the following steps will create everything needed:
$ git clone https://github.com/lalanza808/owntracks-aws-slt.git
$ cd owntracks-aws-slt
$ pipenv install --python 3.6
$ pipenv shell
$ zappa init
$ zappa deploy
The Zappa output should provide you with an endpoint for API Gateway - the HTTP endpoints with Python Lambda scripts being triggered behind them.