Webhook Notifier is a small project to send a notification to all your devices when a bash command is done running.
.cli-notifier [Command]
-
Clone the Repository:
git clone https://github.com/Joffi05/cli-notifier.git
-
Open in Android Studio
- Open the android folder and build the apk
- Install the app and run it
-
Select a secret for authentication
- Input a secret and click save
- Build the project
cd cli-notifier
cargo build --release
Create a config.toml
in ~/.config/cli-notifier/
I could look like this:
[notifiers.desktop]
[notifiers.webhook]
url = "http://192.168.0.12:8000/webhook"
secret = "very-secret"
The [notifiers.desktop]
specifies that the user also wants the notification on the desktop through the notify-rust
crate.
The [notifiers.webhook]
specifies that the user want the notification via webhook. url
defines the target url. secret
is... well