16 lines
544 B
PHP
16 lines
544 B
PHP
<?php
|
|
/*
|
|
* 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.
|
|
*/
|
|
echo file_get_contents('https://maps.googleapis.com/maps/api/timezone/json?' . $_SERVER['QUERY_STRING']);
|
|
?>
|