1
0

- changed webserver to apiserver

- added webserver
- a lot of debugging
- install shell script
This commit is contained in:
2022-04-07 01:44:17 +02:00
parent 0d35b1ff3f
commit f8fc3f63ec
28 changed files with 463 additions and 223 deletions

View File

@@ -22,7 +22,6 @@ class topic {
class device
{
public $method; //0 = auto or 1 = manual
public $topic;
public $ieeeAddress;
public $groupID;
@@ -40,9 +39,8 @@ class device
$this->availability = array("value" => null, "functions" => array());
}
public function set($method=0) //, $event = null)
public function set() //, $event = null)
{
$this->method = $method;
publish($this->topic . "/" . $this->friendlyName, $this->payload, "set"); //, $event);
}
@@ -72,6 +70,7 @@ class event
public $stopDatetime;
public $recurrenceInterval; // interval : for recurrent event
public $exceptionInterval; // array of object ranges
public $method; // cf: constants.php (IDLE, AUTO, MANUAL)
}
class watch