From 847d1ba3e89b4a267c013126eaafa33a98ed9713 Mon Sep 17 00:00:00 2001 From: Adyanth H Date: Wed, 20 Apr 2022 18:13:55 +0530 Subject: [PATCH] Add UptimeKuma Service component (#414) * :sparkles: Add UptimeKuma Service component * :memo: Add custom services documentation * Change await to fetch and use new API * :sparkles: Tri State logic from Uptime Kuma * :memo: Add and lint documentation * Remove erroneous logging Co-authored-by: Evan Steinkerchner * Remove CORS warning Co-authored-by: Evan Steinkerchner * Correct error level Co-authored-by: Evan Steinkerchner * Correct error level Co-authored-by: Evan Steinkerchner * Prevent caching of requests Co-authored-by: Evan Steinkerchner * Prevent caching of requests Co-authored-by: Evan Steinkerchner * Undo unrelated changes Co-authored-by: Evan Steinkerchner --- docs/customservices.md | 15 +++ src/components/services/UptimeKuma.vue | 152 +++++++++++++++++++++++++ 2 files changed, 167 insertions(+) create mode 100644 src/components/services/UptimeKuma.vue diff --git a/docs/customservices.md b/docs/customservices.md index 509278f..709b16b 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -179,3 +179,18 @@ You need to set the type to Emby, provide an api key and choose which stats to s apikey: "MY-SUPER-SECRET-API-KEY" libraryType: "music" #Choose which stats to show. Can be one of: music, series or movies. ``` + +## Uptime Kuma + +Using the Uptime Kuma service you can display info about your instance uptime right on your Homer dashboard. + +The following configuration is available for the UptimeKuma service. Needs v1.13.1 or later because of the change in APIs due to [multiple status pages support](https://github.com/louislam/uptime-kuma/releases/tag/1.13.1). + +```yaml +- name: "Uptime Kuma" + logo: "assets/tools/sample.png" + # subtitle: "A fancy self-hosted monitoring tool" # optional, if no subtitle is defined, Uptime Kuma incidents, if any, will be shown + url: "http://192.168.0.151:3001" + slug: "myCustomDashboard" # Defaults to "default" if not provided. + type: "UptimeKuma" +``` diff --git a/src/components/services/UptimeKuma.vue b/src/components/services/UptimeKuma.vue new file mode 100644 index 0000000..5dd75f3 --- /dev/null +++ b/src/components/services/UptimeKuma.vue @@ -0,0 +1,152 @@ + + + + + -- 2.41.0