Create time-temp.inc.php.dist
This commit is contained in:
		
							parent
							
								
									52f2b8cf83
								
							
						
					
					
						commit
						29a2958bd3
					
				
							
								
								
									
										19
									
								
								time-temp.inc.php.dist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								time-temp.inc.php.dist
									
									
									
									
									
										Normal 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";
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user