Forward messages from DAPNET to ntfy
Find a file
2024-01-08 10:04:02 +01:00
dapnet2ntfy.pl clarifying instructions, deactivating debug output 2024-01-08 10:04:02 +01:00
dapnet2ntfy.service add systemd user .service file 2024-01-04 16:26:22 +01:00
LICENSE Initial commit 2024-01-03 16:34:30 +01:00
README.md clarifying instructions, deactivating debug output 2024-01-08 10:04:02 +01:00

dapnet2ntfy

dapnet2ntfy forwards messages from the DAPNET to ntfy.

Similar to other gateways, especially the Telegram Bot DB0USD, it allows receiving messages, when there is no pager with reception at hand.

Prerequisites

DAPNET account

A normal account at hampager.de (select 'Help Topic -> New DAPNET Account with RIC').

A transmitter registered at hampager.de (select 'Help Topic -> New DAPNET Transmitter').

ntfy account

Use ntfy.sh or set up your own server: DOCS.

perl modules

  • IO::Socket::INET
  • IO::Socket::Timeout
  • Errno
  • HTTP::Request
  • LWP::UserAgent
  • MIME::Base64
  • POSIX
  • utf8

For Debian:

apt install perl-base libio-socket-timeout-perl libhttp-message-perl libwww-perl

Installation

Instructions for installing the script to $HOME/bin/ and activating a systemd user service for running the script

mkdir -p $HOME/.config/systemd/user/
cp dapnet2ntfy.service $HOME/.config/systemd/user/
mkdir -p $HOME/bin
install -m 700 dapnet2ntfy.pl $HOME/bin/
# edit the configuration section to your needs
systemctl --user daemon-reload
systemctl --user enable dapnet2ntfy.service --now