From 779deedecd8b89266822aa1d83f8a83b01147107 Mon Sep 17 00:00:00 2001 From: Rich Schumacher Date: Thu, 31 Oct 2024 16:32:08 -0400 Subject: [PATCH] feat: Add Gotify custom service component (#706) This adds a new custom service component for Gotify, a system for sending and receiving messages. The component will display the number of messages outstanding as well as the overall system health. Co-authored-by: Bastien Wirtz --- docs/customservices.md | 14 ++++ src/components/services/Gotify.vue | 105 +++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 src/components/services/Gotify.vue diff --git a/docs/customservices.md b/docs/customservices.md index b92dd60..c7b45c5 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -42,6 +42,7 @@ within Homer: - [Jellystat](#jellystat) - [Home Assistant](#home-assistant) - [FreshRSS](#freshrss) +- [Gotify](#gotify) > [!IMPORTANT] > Using smart cards will probably requires @@ -529,3 +530,16 @@ The FreshRSS service displays unread and subscriptions counts from your FreshRSS password: "<-- Your password -->" updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats ``` + +## Gotify + +The Gotify service will show the number of currently oustanding messages +available as well as the overall health of the system. + +Note that `apikey` must be a client token, not an app token. + +```yaml +- name: "Gotify" + type: "Gotify" + apikey: "" # Client token to retrieve messages +``` diff --git a/src/components/services/Gotify.vue b/src/components/services/Gotify.vue new file mode 100644 index 0000000..279f0b1 --- /dev/null +++ b/src/components/services/Gotify.vue @@ -0,0 +1,105 @@ + + + + +