Does notif test also work for Telegram #916
Unanswered
jslegers73
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have installed diun on my test machine via docker and want to test it if it send a message to Telegram that I have setup. If I do a
docker compose exec -it diun diun notif test
I get the following response on the console Notification sent for mail notifier(s). Is this test only working for mail setup? I have also tried to set it up via mail but get no test message.
Here is my docker compose file
diun:
image: crazymax/diun:latest
container_name: Diun
restart: always
command: serve
volumes:
- /home/pi/docker-data/diun:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TZ=${TZ}
- LOG_LEVEL=debug
- LOG_JSON=false
- DIUN_WATCH_WORKERS=20
- DIUN_WATCH_SCHEDULE=0 */6 * * *
- DIUN_WATCH_JITTER=30s
- DIUN_PROVIDERS_DOCKER=true
- DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true
- DIUN_NOTIF_MAIL_HOST=smtp.gmail.com
- DIUN_NOTIF_MAIL_PORT=587
- DIUN_NOTIF_MAIL_USERNAME=${DIUN_NOTIF_MAIL_USERNAME}
- DIUN_NOTIF_MAIL_PASSWORD=${DIUN_NOTIF_MAIL_PASSWORD}
- DIUN_NOTIF_MAIL_FROM=${DIUN_NOTIF_MAIL_FROM}
- DIUN_NOTIF_MAIL_TO=${DIUN_NOTIF_MAIL_TO}
- DIUN_NOTIF_MAIL_TEMPLATETITLE=${DIUN_NOTIF_MAIL_TEMPLATETITLE}
- DIUN_NOTIF_MAIL_TEMPLATEBODY=${DIUN_NOTIF_MAIL_TEMPLATEBODY}
- DIUN_NOTIF_TELEGRAM_TOKEN=mytoken
- DIUN_NOTIF_TELEGRAM_CHATIDS=mychatid
- DIUN_NOTIF_TELEGRAM_TEMPLATEBODY=Docker tag {{ if .Entry.Image.HubLink }}[{{ .Entry.Image }}]({{ .Entry.Image.HubLink }}){{ else }}{{ .Entry.Image }}{{ end }} which you subscribed to through {{ .Entry.Provider }} provider has been {{ if (eq .Entry.Status "new") }}newly added{{ else }}updated{{ end }} on {{ escapeMarkdown .Meta.Hostname }}.
labels:
- diun.enable=true
I don't use a diun config file.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions