Create time-temp.inc.php.dist

This commit is contained in:
zyphlar 2018-01-16 20:12:00 -08:00 committed by GitHub
parent 52f2b8cf83
commit 29a2958bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
time-temp.inc.php.dist Normal file
View File

@ -0,0 +1,19 @@
<?php
// This is a sample config file. Copy to time-temp.inc.php
// and modify the UPPERCASE bits.
$wunderkey = "YOUR_WEATHERUNDERGROUND_API_KEY";
$url = "http://api.wunderground.com/api/";
$feature = "/conditions";
// TODO: replace the 1212 number(s) with YOUR Twilio number(s)
// and the appropriate cities/states for each $path .
if ($_POST['To'] == "+19995551212") {
$path = "/q/CA/San_Francisco.json";
} elseif ($_POST['To'] == "+19997771212") {
$path = "/q/HI/Honolulu.json";
} else {
$path = "/q/NY/New_York.json";
}