Giter VIP home page Giter VIP logo

owt-back's Introduction

OwT server

This is a server implementation of the HTTP protocol of the OwnTracks app client, it can handle the payload and store in a cloud data base DetaBase for read/query, and also be hosted on DetaMicros

Demo at: DetaMicros

Installation

Install it using:

    $ git clone https://github.com/cgmark101/owt-back.git
    $ cd owt-back
    $ virtualenv env
    $ . env/bin/activate
    $ cd src
    $ pip install -r requirements.txt
    

Config

Edit base.py and main.py, paste your deta key (generated in their website) at deta.sh

    deta = Deta('your_super_secret_deta_key')
    db = deta.Base('ot') # Database name

Run

Run this file one time to initial fill the database.

    $ python base.py

And finally run

    $ python main.py

Navigate to localhost:8000/docs to see the interactive documentation (You have to open port 8000 in this case to be able to receive the payload from owntracks)

Owntracks app config

Inside the app navigate to preference->connection->mode and sellect HTTP

Inside the app navigate to preference->connection->host fill it with http://your-domain:8000/position/

Inside the app navigate to preference->connection->identification just fill device id and tracker id

Inside the app navigate to preference->reporting->aditional data and turn it on.

And you are done, take your phone, and do some moves to see your position updated and store in the database

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.