array( 'method' => 'GET', 'header' => 'x-ha-access: nXa7LiR1PG' ) ); $context = stream_context_create($options); $data = json_decode(file_get_contents("http://192.168.0.25:8123/api/states", false, $context), true); foreach($data as $item) { $output[$item["entity_id"]] = $item; } header('Content-Type: application/json'); echo json_encode($output['device_tracker.jasonsphone_jason']); exit(); elseif (isset($_GET["calendar"])): $options = array( 'http' => array( 'header' => 'Host: internal.jnf.me' ) ); $context = stream_context_create($options); header('Content-Type: application/json'); echo file_get_contents("http://192.168.0.25/public/pages/display/calendar.php?location", false, $context); else: ?>

Where tf is Jason?

Nobody Knows