From f682a84e9ffc667c92dd2dac5efaab9d7280540d Mon Sep 17 00:00:00 2001 From: thedroid Date: Sun, 6 Aug 2023 14:48:52 -0500 Subject: PiAlert custom service (#674) Add Pi Alert custom service --- docs/customservices.md | 13 +++- dummy-data/pialert/php/server/devices.php | 1 + src/components/services/PiAlert.vue | 104 ++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 dummy-data/pialert/php/server/devices.php create mode 100644 src/components/services/PiAlert.vue diff --git a/docs/customservices.md b/docs/customservices.md index ca88d85..cb897a2 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -33,6 +33,7 @@ within Homer: - [SABnzbd](#sabnzbd) - [OctoPrint](#octoprint) - [Tdarr](#tdarr) + - [PiAlert](#pialert) - [Immich](#immich) If you experiencing any issue, please have a look to the [troubleshooting](troubleshooting.md) page. @@ -413,6 +414,16 @@ for transcoding on your Tdarr instance as well as the number of errored items. checkInterval: 5000 # (Optional) Interval (in ms) for updating the queue & error counts ``` +## PiAlert + +The PiAlert service displays stats from your PiAlert server. + +```yaml +- name: "PiAlert" + type: "PiAlert" + updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats +``` + ## Immich The Immich service displays stats from your Immich server. @@ -422,4 +433,4 @@ The Immich service displays stats from your Immich server. type: "Immich" apikey: "<--- Your api key --->" # administrator user updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats -``` \ No newline at end of file +``` diff --git a/dummy-data/pialert/php/server/devices.php b/dummy-data/pialert/php/server/devices.php new file mode 100644 index 0000000..55dbfa6 --- /dev/null +++ b/dummy-data/pialert/php/server/devices.php @@ -0,0 +1 @@ +[89,82,0,15,0,0] \ No newline at end of file diff --git a/src/components/services/PiAlert.vue b/src/components/services/PiAlert.vue new file mode 100644 index 0000000..fb0d9ed --- /dev/null +++ b/src/components/services/PiAlert.vue @@ -0,0 +1,104 @@ + + + + + \ No newline at end of file -- cgit v1.2.3