[GUIDE] Use Signal Messenger as a notification service

  • This guide was inspired by the [GUIDE] Use Telegram as notification service by subzero79. I used Telegram for a long time. But due to a more privacy and data protection approach of Signal, I switched to Signal Messenger.

    What you need

    • A free phone number
    • curl
    • Remote ssh access with sudo access
    • Docker


    Signal does not offer a bot service, so we need to have an extra number to act as the bot. There are a couple of service providers which offers free phone numbers. Should be easy to obtain an extra number.


    Once you have the extra number, connect to your OMV instance via ssh and then install docker:


    Code
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io


    bbernhard created a signal-cli wrapper which offers a rest-api: https://github.com/bbernhard/signal-cli-rest-api. This will be used to send the notifications over Signal.


    To start the port using this command

    Code
    docker run \
      --name "/signal-cli-rest-api" \
      --volume "<config_path>:/home/.local/share/signal-cli" \
      --restart "unless-stopped" \
      --port "8080:8080" \
      "bbernhard/signal-cli-rest-api:latest"


    To register the number, follow the official guide: https://github.com/bbernhard/s…ob/master/doc/EXAMPLES.md


    Once this is done, we can create our script


    nano /usr/share/openmediavault/notification/sink.d/10signal


    Then paste this content into the file:


    Save the file


    Then the script needs to be made executable:


    chmod 700 /usr/share/openmediavault/notification/sink.d/10signal

  • ryecoaaron

    Hat das Thema freigeschaltet.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!