Add RuuviTag

This commit is contained in:
Steffen Lange 2020-05-30 23:58:26 +02:00
parent ba5d84ef7a
commit fcc01a4c1b

14
modules/RuuviTag.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class RuuviTag extends PatchBase {
function __construct() {
parent::__construct('Ruuvi Innovations', 'RuuviTag', 'https://lab.ruuvi.com/dfu/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/ruuvi/ruuvitag_fw/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>