mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
18 lines
412 B
PHP
18 lines
412 B
PHP
<?php
|
|
class CronApi extends ApiController {
|
|
|
|
public function clean(){
|
|
$logKeeper = new LogMaintainer();
|
|
$logKeeper->purge(LOGTIMOUT);
|
|
$this->response(['Value' => 'OK']);
|
|
}
|
|
|
|
public function fetch(){
|
|
//echo (new VirtualDeviceManager)->fetch('');
|
|
echo (new Covid)->fetch('');
|
|
echo (new OpenWeatherMap)->fetch('');
|
|
|
|
$this->response(['Value' => 'OK']);
|
|
}
|
|
}
|