mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Automations Endpoint Detail + Cron Endpoint
This commit is contained in:
1 parent
38b29a2a4a
commit
7ea4a90980
4 files changed
+39
-7
No files matched your search
+6
-2
@@ -20,8 +20,7 @@ class CronApi extends ApiController
|
||||
$this->response(['Value' => 'OK']);
|
||||
}
|
||||
|
||||
public function fetch()
|
||||
{
|
||||
public function fetch(){
|
||||
//Run Plugins
|
||||
$result = [];
|
||||
$dir = $_SERVER['DOCUMENT_ROOT'] . BASEDIR . 'app/plugins/';
|
||||
@@ -60,4 +59,9 @@ class CronApi extends ApiController
|
||||
//Print Result
|
||||
$this->response($result);
|
||||
}
|
||||
|
||||
public function automations(){
|
||||
AutomationManager:executeAll();
|
||||
$this->response(['Value' => 'OK']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user