Giter Site home page Giter Site logo

fachinformatiker / pager_telegram_forwarder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stefanmoosbrugger/pager_telegram_forwarder

0.0 1.0 0.0 19 KB

Small python script that listens for pager messages (AFSK, FSK, HAPN, ZVEI, POCSAG, and many more) and forwards them to Telegram.

License: GNU General Public License v3.0

Shell 12.46% Python 87.54%

pager_telegram_forwarder's Introduction

Script for decoding pager messages and forwarding them as Telegram message

Small python script that decodes pager messages (AFSK, FSK, HAPN, ZVEI, POCSAG, FLEX, and many more) and forwards them to Telegram. The script uses rtl-sdr and multimon-ng (https://github.com/EliasOenal/multimon-ng) to receive and decode the messages and pytgbot (https://github.com/luckydonald/pytgbot) to forward the messages to Telegram (e.g., a Telegram channel)

Hardware Requirements:

Software Requirements:

  • Python
  • rtl-sdr
  • multimon-ng
  • pytgbot

For detailed instructions of how to setup a RaspberryPi for pager message decoding see https://www.raspberrypi.org/forums/viewtopic.php?t=45142

Start the script

Once the prerequisites are met the script can be started

python pager_telegram_forwarder.py --freq="<freq>" --prot="<protocols>" --min="<minimum message length>" --tID"<Telegram API ID>" --rID="<Telegram recipient ID>"

Example call to listen at 100.12MHz for POCSAG 512/1200/2400 messages with minimum length of 25 characters and sending them to the telegram recipient with the ID -1001004000133 (the used Telegram ID and recipient ID is fictitious. So don't use it.):

python pager_telegram_forwarder.py --freq="100.15M" --prot="POCSAG512 POCSAG1200" --min="25" --tID="123456789:JKASDHLJASGDjhsagdjhagASasfdA" --rID="-1001004000133"

Script autostart

For convenience only. If you want the script to be started automatically you can use the provided shell script and add it to the crontab. It checks if the forwarder script is already active. If not it will be started. This is useful because the script crashes sometimes.

pager_telegram_forwarder's People

Contributors

stefanmoosbrugger avatar simon-moosbrugger avatar

Watchers

 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.