casenjo/flirc-home-assistant

Make proper flirc integration/addon for hass

Bluscream opened this issue · 0 comments

Here are some references:

<?php // session_start();
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);

    function sendir($pattern, $repeat = 3) {
        $cmd = "irtools sendir --ik=23000 --repeat=" . $repeat . " --csv=\"" . $pattern . "\"";
        echo($cmd."<br>");
        exec($cmd);
    }

    $repeat = $_GET["repeat"] ?? 0;

    if (isset($_GET["pattern"])) {
        sendir($_GET["pattern"], $repeat);
    }
    // header("Location: " . "https://localhost/ir.php");
?>