infrafast / piwebpool

The first full open source Raspberry PI PHP web-based application that automates the control of swimming pool
https://infrafast.github.io/piwebpool/
3 stars 1 forks source link

run() from webinterface #2

Open infrafast opened 7 years ago

infrafast commented 7 years ago
    case 'forceCron':
        $result['state'] = shell_exec('./scripts/hourlypiwebpool.sh');
        // not a good solution as it will be executed by apache with no write access to the logs
        // for strange reason this also return {|main:Runtime error|custom:Runtime error}]  in the log
        // we'd better call the code of cronaction.php here
infrafast commented 7 years ago

implement in action.php the case "run"