Coder Social home page Coder Social logo

trackerbrand's Introduction

Trackerbrand

Trackerbrand is a simple proof-of-concept location history map. In its current use-case, data is added to the local Trackerbrand database (lowdb) via HTTP, coming from either a local script managing a GPS receiver or from remote via HTTP or HTTP via LoRaWAN gatewy.

Usage

  • Map tiles are added as described in this stackoverflow post
  • The databse must be created via POST request to /position/setup

Map viewing mode

The index file is served at /position/display. The passed hash specifies how the map is shown.
The following are valid display options:

  • #show:current Shows the current position
  • #show:live Shows the current position and updates position + map view every 10s
  • #show:history,size=n Shows a history of the latest n positions
  • #show:trip,threshold:t,interval:i Shows the trip point-by-point. Omitting points with a cumulative distance <t, adding a new point every i. (0.0007 has been proven to be a reasonable t for skipping port times)

Submitting lcoations.

Database must be set up once with a POST /position/setup An example of the payload that can be sent by a client to POST /position/add-remote to track a position:

{
    "app_id": "segelbrandgps",
    "payload_fields": {
    "x": 23,
    "y": 23,
    "t": 29839283,
    "u": "ges"
    }
}

trackerbrand's People

Contributors

cybrox avatar dependabot[bot] avatar

Watchers

 avatar  avatar

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.