Add ruuvi-prometheus

This commit is contained in:
Steffen Lange 2020-05-31 19:30:35 +02:00
parent fcc01a4c1b
commit ba978ffa2e

View file

@ -0,0 +1,14 @@
<?php
class RuuviPrometheus extends PatchBase {
function __construct() {
parent::__construct('Joonas Kuorilehto', 'ruuvi-prometheus', 'https://github.com/joneskoo/ruuvi-prometheus');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/joneskoo/ruuvi-prometheus/tags', true))
return $this->parse_json('name');
return false;
}
}
?>