Giter VIP home page Giter VIP logo

telegramtrackerbot's Introduction

Telegram Tracker Bot

A C++ Telegram bot for interfacing with a GPS tracker, using LibTelegram.

This is a standalone bot intended to be run on your own server with an individual GPS tracker.

Currently a work in progress.

Supported tracker models

  • TK103 / TK102B clones using the KX402 protocol.

Building

The quickest way to build the bot is using CMake:

  • mkdir build
  • cd build
  • cmake ..
  • make

A Code::Blocks workspace and project are also included for easy building.

Usage

You'll need a bot token for your bot from the BotFather.

  • Save the token in the telegramtrackerbot.conf config file, or provide it on the commandline with the --token option.
  • Optionally, set a custom port for the tracking server to bind to.
  • The --help commandline option provides help for other options.
  • You will then need to get your tracker to talk to your tracking server.

Configuring your tracker

The configuration below is for a TK103 / TK102B type tracker; they may need to be adapted to other types. Send the following SMS commands to your tracker to configure it for gprs mode and point it to your server:

  • reset123456
  • begin123456
  • apn123456 <apn name> <apn username> <apn password>
  • gprs123456
  • adminip123456 <ip of your server> <port of your server>
  • tracker123456

Enable tracking, in the example below with a 30 second interval. Use m and h for minutes and hours instead:

  • t030s***n123456

Minimum tracking period is 20 seconds.

TODO: Twilio integration to allow automatic tracker configuration

telegramtrackerbot's People

Contributors

slowriot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

telegramtrackerbot's Issues

Issue under Visual Studio C++ 2019

Under Visual Studio C++ 2019:
libtelegram\include\boost\cgi\fcgi\traits.hpp(14,10): fatal error C1083: Cannot open include file: 'boost/asio/ip/tcp.hpp': No such file or directory

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.