From 79a774c79e1744dddbfad623cae1255b8b10f06d Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Thu, 2 Aug 2018 11:18:12 -0600 Subject: [PATCH] Added "where tf is Jason" page --- www/where/index.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 www/where/index.php diff --git a/www/where/index.php b/www/where/index.php new file mode 100644 index 0000000..c12e0bb --- /dev/null +++ b/www/where/index.php @@ -0,0 +1,34 @@ + 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; + } +?> + + + + + +Welcome to JnF.me + + + +

Where tf is Jason?

+

+ +