Crates.io | sn0int-signal |
lib.rs | sn0int-signal |
version | 0.1.0 |
source | src |
created_at | 2020-06-12 00:17:36.553525 |
updated_at | 2020-06-12 00:17:36.553525 |
description | signal webhook server for sn0int |
homepage | |
repository | https://github.com/kpcyrd/sn0int-signal |
max_upload_size | |
id | 253097 |
size | 82,557 |
Provides a simple api for the kpcyrd/notify-signal sn0int module.
You need a second phone number to register with signal. A landline number could work for this.
Make sure you have signal-cli
installed, setup, and in your path!
Afterwards install the http api like this:
git clone 'https://github.com/kpcyrd/sn0int-signal'
cd sn0int-signal
cargo install --path .
sudo install -m 600 -o "$USER" /dev/null /etc/sn0int-signal.key
< /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > /etc/sn0int-signal.key
sn0int-signal -k /etc/sn0int-signal.key 127.0.0.1:4321 +31337
curl -v -H 'Content-Type: application/json' \
-H "x-signal-auth: $(cat /etc/sn0int-signal.key)" \
-d '{"to": "+313372", "body": "ohai"}' \
http://127.0.0.1:4321/api/v0/send
# /etc/systemd/system/sn0int-your-other-service.service
[Unit]
Description=sn0int-signal: api for signal notifications
[Service]
User=your-user
ExecStart=/usr/local/bin/sn0int-signal -k /etc/sn0int-signal.key 127.0.0.1:4321 +31337
GPLv3+