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
@@ -43,10 +43,15 @@ class AutomationManager{
|
||||
|
||||
}
|
||||
|
||||
public static function getById($automationId){
|
||||
return Db::loadOne("SELECT * FROM automation WHERE automation_id = ?", [$automationId]);
|
||||
|
||||
}
|
||||
|
||||
public static function executeAll(){
|
||||
global $logManager;
|
||||
|
||||
$automations = Db::loadAll ("SELECT * FROM automation");
|
||||
/*$automations = Db::loadAll ("SELECT * FROM automation");
|
||||
$dayNameNow = strtolower (date('D', time()));
|
||||
|
||||
foreach ($automations as $automation) {
|
||||
@@ -170,6 +175,6 @@ class AutomationManager{
|
||||
Db::edit('automation', array('locked' => 0), 'WHERE automation_id = ?', array($automation['automation_id']));
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user