This guide will walk you through setting up Gotify notifications. You will learn how to obtain the necessary credentials and configure them in your environment.
First, you need to get the Gotify server URL and an app token.
- Gotify Server URL: This is the URL of your Gotify server.
- App Token: You can create a new app in the Gotify web UI and get the token.
Next, you need to configure Chatz to use the Gotify provider. You can do this by editing the ~/.chatz.ini file or by setting environment variables.
Add the following section to your ~/.chatz.ini file:
[gotify]
PROVIDER=gotify
GOTIFY_URL=<your-gotify-server-url>
GOTIFY_TOKEN=<your-gotify-app-token>
GOTIFY_TITLE=<your-gotify-title>
GOTIFY_PRIORITY=<your-gotify-priority>Set the following environment variables:
export PROVIDER=gotify
export GOTIFY_URL=<your-gotify-server-url>
export GOTIFY_TOKEN=<your-gotify-app-token>
export GOTIFY_TITLE=<your-gotify-title>
export GOTIFY_PRIORITY=<your-gotify-priority>Now you can send a test notification to your Gotify server.
chatz --profile=gotify "Hello from Chatz!"You should receive a notification on your Gotify server.
You can also override the title and priority using CLI flags:
chatz --profile=gotify --subject "Custom Title" --priority 7 "Hello from Chatz!"This will send a notification with "Custom Title" as the title and a priority of 7.