-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
61 lines (58 loc) · 1.6 KB
/
config.php
File metadata and controls
61 lines (58 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
$weather_api_list=array(
'forecastio' => array(
// https://developer.forecast.io/
'key' => '3a3c60d8'
,'latitude' => '17.1556'
,'longitude' => '17.5914'
,'delay' => 10*60
,'use' => true
)
,'openweather' => array(
// two requests per update - current and forecast
// http://openweathermap.org/api
// use city name or latitude and longitude
// city name will be used if all 3 fields are filled in
'key' => 'ccf359c274'
,'cityname' => 'london,uk'
,'latitude' => '17.1556'
,'longitude' => '17.5914'
,'delay' => 10*60
,'use' => true
)
,'worldweatheronline'=> array(
// no forecast
// http://developer.worldweatheronline.com/io-docs
'key' => 'nh8r'
,'q' => 'Iasi'
,'delay' => 10*60
,'use' => true
)
,'hamweather' => array(
// no forecast
// http://www.hamweather.com/support/documentation/aeris/
'location' => 'london,uk'
,'id' => 'zjS58'
,'secret' => 'pu874'
,'delay' => 10*60
,'use' => true
)
,'wunderground' => array(
// two requests per update - current and forecast
'key' => 'f95'
,'location' => 'London'
,'delay' => 10*60
,'use' => true
)
);
// Delay between two checks, in seconds
$main_delay=5;
// Number of loops, use null for infinite or a number for limited run
// Use $loops=null; when the script is ran as a server
// Use $loops=1 when the script is ran from crontab
// $loops=1; or $loops=null;
$loops=1;
// Storage method
// echo - displays on screen
// file - writes to 'output.txt'
$storage_class='echo';