2018-01-19 15:12:23 +00:00
|
|
|
<?php
|
2018-03-19 06:45:54 +00:00
|
|
|
/*
|
|
|
|
* Stairs lighting
|
|
|
|
* Copyright 2017 (c) Mark van Renswoude
|
|
|
|
*
|
|
|
|
* https://git.x2software.net/pub/Stairs
|
|
|
|
*
|
|
|
|
* Host this file somewhere on PHP enabled non-secure HTTP webhost
|
|
|
|
* and modify the config.h to proxy Maps API requests. Saves a ton
|
|
|
|
* of memory on the ESP8266.
|
|
|
|
*
|
|
|
|
* If you care about your API key being sent across plain HTTP,
|
|
|
|
* host this or a similar proxy on your LAN, perhaps on a Raspberry Pi.
|
|
|
|
*/
|
2018-01-19 15:12:23 +00:00
|
|
|
echo file_get_contents('https://maps.googleapis.com/maps/api/timezone/json?' . $_SERVER['QUERY_STRING']);
|
|
|
|
?>
|