Giter VIP home page Giter VIP logo

pokesag's Introduction

Warning: Depending on your region, it may not be legal to share or act upon any messages received by a radio scanner. You are advised to check your local regulations, and to NOT expose PokéSAG to the internet.

PokéSAG Logo

PokéSAG

An interface for receiving and viewing POCSAG pages.

The receiver has been tested with an RTL-SDRv3 on a Raspberry Pi 2. CPU utilisation is around 80%.

Configuration

PokéSAG is configured using environment variables. The following environment variables are always available.

  • PORT: The port for the web interface.

The following environment variables are only used for PostgreSQL.

  • DB_HOST: The host/IP address of your database server.
  • DB_PORT: The port of your database server.
  • DB_NAME: The name of the database that PokéSAG wil use.
  • DB_USER: The username that PokéSAG wil use.
  • DB_PASS: The password that PokéSAG wil use.

Frequency and device configuration is done by manually editing the source file pokesag.lua / pokesag-postgres.lua. These files have been pre-populated with some frequencies used in New Zealand.

Installing Dependencies

This section assumes a Debian-based OS such as Ubuntu or Raspbian.

A number of common packages will be required:

apt-get install -y build-essential cmake git libpq-dev pkg-config luajit luarocks 

Installing LuaRadio

Install the rtl-sdr, libliquid-dev, libvolk1-dev, and libfftw3-dev packages, and run the following commands.

git clone --depth 1 https://github.com/vsergeev/luaradio.git
cd luaradio/embed
make install-lmod

Installing luapgsql (for PostgreSQL)

Install the libpq-dev package, and run the following command.

luarocks install luapgsql PQ_INCDIR=/usr/include/postgresql

Installing lsqlite3 (for SQLite)

luarocks install lsqlite3

Running PokéSAG

PokéSAG consists of two seperate components - a POCSAG reciever and a web interface.

Running the Reciever

Launch the receiver with the ./run.sh or ./run-postgres.sh script. This will receive pages and store them in a database.

Running the Web App

  • Change to the web_app directory.
  • Install the required dependencies with npm install.
  • Build the javascript with npm run build.
  • Launch the web app with npm run start or npm run start-postgres.
  • The web interface will now be available at http://localhost:8080/

pokesag's People

Contributors

joppyfurr avatar dmptrluke 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.