PatchBot/modules/Domoticz.php
2021-11-02 11:17:55 +01:00

14 lines
350 B
PHP

<?php
class Domoticz extends PatchBase {
function __construct() {
parent::__construct('Robbert E. Peters', 'Domoticz', 'https://www.domoticz.com/downloads/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/domoticz/domoticz/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>