PatchBot/modules/Tasmota.php
2020-02-01 23:46:58 +01:00

14 lines
340 B
PHP

<?php
class Tasmota extends PatchBase {
function __construct() {
parent::__construct('Theo Arends', 'Tasmota', 'https://github.com/arendst/Tasmota');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/arendst/Tasmota/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>