Receive a notification when Gladys updates

Would it be possible to display in Gladys a notification to let us know that Gladys has just been updated?

There is also a feature request for notifications related to devices which, according to @pierre-gilles, is far from easy to implement
https://community.gladysassistant.com/t/notification-du-chat-par-le-navigateur/6361?u=tlse-vins

@Tlse-vins I created a new thread so as not to mix two conversations :slight_smile:

It all depends on what you mean by « notification ».

  • If it’s via the current Gladys message API (in the chat + Telegram), yes that would be doable
  • If it’s a small « toast » in the UI when you log in to Gladys (like a message you can dismiss the first time you log in after an update), why not
  • If it’s a notification in the sense of:

Then that’s a whole discussion that needs to be addressed :slight_smile: I think it’s a nice piece of work.

1 Like

Your screenshot is representative of what I imagine.
« New Gladys version 4.15.0 — more information on the forum »

This looks like it’s going to turn into a debate :sweat_smile: which is a good thing!
Personally, I often find notifications intrusive… I like little toasts (in the broad sense of the term, actually!)

Default toast and notification via a scene if desired?

I find it useful to have a visual indication that your instance has been updated. Even without following the forum, you get the info that way.

2 Likes

Hi everyone,
I received an SMS today (from Free) about Gladys restarting. I wondered why. Power outage?..
When I got home, I saw that Gladys had been updated.
That gave me the following idea:
It would be cool to have an « Update » trigger that would allow me to alert myself by SMS.
What do you think?

2 Likes

Why not, if you want to see this in Gladys → feature request :slight_smile: (We might edit that one, I’ll let you talk to @Tlse-vins about it)

Yes, it’s possible to modify the request so that it addresses more use cases.

On my side I added Telegram notifications to Watchtower, which allows me to see which containers have been updated with a basic report. Admittedly it sends notifications every day but at least I know what’s going on.
Voici ce que ça donne dans mon docker compose :

version: '3.3'

services:
  watchtower:
    image: containrrr/watchtower
    restart: always
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime:ro
    environment:
      TZ: Europe/Paris
      WATCHTOWER_LIFECYCLE_HOOKS: "true"
      WATCHTOWER_NOTIFICATIONS: "shoutrrr"
      WATCHTOWER_NOTIFICATION_URL: >
        telegram://BOT_TOKEN@telegram/?channels=CHAT_ID
      WATCHTOWER_CLEANUP: "true"
#     WATCHTOWER_SCHEDULE: 0 0 20 * * *
      WATCHTOWER_NOTIFICATION_REPORT: "true"
      WATCHTOWER_NOTIFICATION_TEMPLATE: |
        {{- if .Report -}}
          {{- with .Report -}}
        {{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
              {{- range .Updated}}
        - {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
              {{- end -}}
              {{- range .Fresh}}
        - {{.Name}} ({{.ImageName}}): {{.State}}
            {{- end -}}
            {{- range .Skipped}}
        - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
            {{- end -}}
            {{- range .Failed}}
        - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}
            {{- end -}}
          {{- end -}}
        {{- else -}}
          {{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
        {{- end -}}

and this is what it looks like (I have 3 Docker instances with Watchtower on each) :

2 Likes

Nice notification message :star_struck:
I’ll snag it for my servers, it’s more explicit and less verbose than the default logs :grin:

I’m in favor of the notification being integrated or via a scene trigger.

Finally, having the info in Gladys with a link to the release notes, or directly integrated into the notification (

3 Likes

Hello everyone!

Gladys will now send a notification to administrators when Gladys has been updated, in their language and with a link to the release post:

The PR:

3 Likes

This new feature is available in Gladys Assistant 4.58 :

1 Like