Skip to content
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

Pushover Notification Customization of sound and priority #522

Closed
michaelkrieger opened this issue Dec 23, 2021 · 6 comments · Fixed by #996
Closed

Pushover Notification Customization of sound and priority #522

michaelkrieger opened this issue Dec 23, 2021 · 6 comments · Fixed by #996

Comments

@michaelkrieger
Copy link

Behaviour

Pushover always sends with the default sounds but in many cases this can be delivered silently or with a different priority.

Steps to reproduce this issue

N/A

Expected behaviour

The API calls for:

priority - send as -2 to generate no notification/alert, -1 to always send as a quiet notification, 1 to display as high-priority and bypass the user's quiet hours, or 2 to also require confirmation from the user

sound - the name of one of the sounds supported by device clients to override the user's default sound choice (string)

These should be customizable through configuration or the pushover environment variables.

Actual behaviour

These are not customizable and it will always play the default sound and priority

Configuration

  • Diun version : 4.20.1
  • Platform (windows/linux) : linux
  • System info (type uname -a) : Debian 11
@wsc96
Copy link

wsc96 commented Jan 11, 2022

This would be great.

@bb3454

This comment was marked as spam.

@tushev
Copy link

tushev commented Apr 28, 2023

@crazy-max in

Priority: c.cfg.Priority,
and
Priority int `yaml:"priority,omitempty" json:"priority,omitempty" validate:"omitempty,min=-2,max=2"`
there's already a Priority.

Is it somehow possible to set that value in docker-compose?

The docs say nothing about it.

@fanaticDavid
Copy link

Priority definitely works, even if it's not documented. I'm using the configuration file diun.yml:

notif:
  pushover:
    token: [REDACTED]
    recipient: [REDACTED]
    priority: -2
    templateTitle: "{{ .Entry.Image }} released"
    templateBody: |
      Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.

@tushev
Copy link

tushev commented Jul 8, 2023

@fanaticDavid thank you for sharing! Will try diun.yml.

@tushev
Copy link

tushev commented Oct 8, 2023

Thanks!

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

Successfully merging a pull request may close this issue.

6 participants