Skip to content

Add Gotify Support and Startup Message #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

bruj0
Copy link

@bruj0 bruj0 commented Apr 9, 2025

This pull request introduces the following changes:

1. Gotify Notification Support

  • Added a new [gotify] section in the config.toml file to configure Gotify notifications.
  • Updated the notification logic to support both Telegram and Gotify services.
  • Introduced new configuration fields:
    • url: The base URL of the Gotify server.
    • token: The application token for authentication.
    • title: (Optional) Title prefix for notifications.
    • priority: (Optional) Priority level for notifications.

2. Startup Message

  • Added a log message at application startup to confirm the notifier is running and ready to monitor the journal file.

Configuration Example

Here is an example config.toml file with Gotify configuration:

[notification]
service = "gotify"

[gotify]
url = "https://gotify.myserver.com"
token = "abc123xyz"
title = "ED Alerts"
priority = 8

Additional Notes

  • The priority field in Gotify configuration is optional and defaults to 5 if not specified.
  • The startup message helps users confirm the application is running without needing to wait for an event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant