Add Uptime Kuma

This commit is contained in:
Steffen Lange 2023-11-01 17:47:39 +01:00
parent 147d8c37d5
commit acd742b08c

14
modules/UptimeKuma.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class UptimeKuma extends PatchBase {
function __construct() {
parent::__construct('Louis Lam', 'Uptime Kuma', 'https://uptime.kuma.pet/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/louislam/uptime-kuma/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>