Merge branch 'master' into release

This commit is contained in:
Jason Williams 2018-08-02 17:19:34 -06:00
commit 01be4d4fba
5 changed files with 40 additions and 18 deletions

View File

@ -1,9 +0,0 @@
<?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: text/calendar; charset=utf-8');
header('Content-Disposition: inline; filename=calendar.ics');
echo file_get_contents('https://www.google.com/calendar/ical/j.williams%40n2sh.com/private-28b3d5b1c600c54976b99416877bc3e0/basic.ics');
?>

View File

@ -1,9 +0,0 @@
<?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-type: text/calendar; charset=utf-8');
header('Content-Disposition: inline; filename=calendar.ics');
echo file_get_contents('https://storage.jnf.me/__wcproxy.php');
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

40
www/where/index.php Normal file
View File

@ -0,0 +1,40 @@
<?php
$options = array(
'http' => 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;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Welcome to JnF.me</title>
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300' rel='stylesheet' type='text/css'>
<style type="text/css">
* {box-sizing: border-box; margin: 0; border: 0; padding: 0; font-family: 'Source Sans Pro', sans-serif; font-weight: 300; text-align: center;}
html, body {height: 100%; min-height: 100%;}
body {background-color: #333333;}
p {font-size: 10vh;}
h1 {font-size: 20vh; color: #FFFFFF;}
#container {width: 100%; height: 100%; border: 1.5vw solid #333333; background-color: #3e5381;}
#centered {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}
</style>
<body>
<div id="container">
<div id="centered">
<p>Where tf is Jason?</p>
<h1><?= ucwords($output['device_tracker.jasonsphone_jason']['state']) ?></h1>
</div>
</div>
</body>
</html>