![]() ![]() If a system does not officially support the API, it may be possible to use the API via the mentioned Webhook Daemon, see: Docker WebHook Daemon: simple hook server for bash scripts. As an example, Home Assistant or Uptime Kuma provides direct support for the API. The "signal-cli-rest-api" can be accessed relatively easily from other systems using a POST call. Designed for users who want to keep an eye on their crypto without necessarily getting too involved in fancy apps and the like. The function of the bash file is currently limited to transferring the transmitted message (message), which allows the use of templates and variables for the message in Grafana. "webhookd" is the name of the webhookd container and "signal" the name of the bash file without. In Grafana, a new "Update contact point" with the URL is now sufficient. In order to start the bash script, I allowed it to be executed with chmod +x: chmod +x. The last line in the bash script corresponds to the curl call mentioned earlier. Also, I enjoy the fact that opposed to WhatsApp - it doesn't rely on the smartphone only. The following terminal command can send a signal message to one or more phone numbers after pairing: curl -X POST -H "Content-Type: application/json" ' \ Why signal has no web based interface Signal seems really secured and privacy concerned, which is really important. The API allows sending and retrieving messages via a POST request: Send signal message from terminal (curl). The call is made via the browser: In the Signal app, on the smartphone, the API can be paired with "+" under Settings and "Paired devices": Connect Signal appĭ he container generates a QR code via which the Signal app can be paired. "./signal:/home/.local/share/signal-cli"Īfter saving the content to a file or adding it to another docker-compose file, the container can be started with "docker-compose up -d". ![]() If youre really hoping for the mainstream to adopt this over things like facebook messenger, being able to jump on a random computer and be chatting in seconds is non-negotiable. ![]() To include the API in another project or to document the parameters, it is a good idea to use a docker-compose.yml - file: version: "3" Signal claims a web version would be unsuitable for security reasons, however element.io has no issue providing full e2e over web. e 'MODE=native' bbernhard/signal-cli-rest-api v $HOME/.local/share/signal-cli:/home/.local/share/signal-cli \ Those who have Docker installed on their system can start the API with the following command: docker run -d -name signal-api -restart=always -p 8080:8080 \ When a container is first launched, Docker independently loads all the necessary sourcesĭocker can be installed on Windows, macOS or an Linux Distribution Software Docker allows applications to be launched by command in a so-called container.Ī container is an isolated environment independent of the operating system (OS): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |