Mercurial > hg > egg-tcls
annotate config.fetch_weather.example @ 428:04021e2e26c3
utillib: Fix silly bugs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 08 Jan 2017 04:15:50 +0200 |
parents | bc7746ca622e |
children | ba559d5d44db |
rev | line source |
---|---|
187 | 1 ### |
188 | 2 ### Example configuration for weather.tcl data fetcher |
3 ### script fetch_weather.pl. | |
187 | 4 ### |
5 | |
6 ## | |
373
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
7 ## Purge time threshold for old/obsolete records. |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
8 ## Fetch_weather stores data into a cache file, which |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
9 ## also keeps older records as sometimes weather stations |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
10 ## do not report reliably. However, too old records |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
11 ## need to be purged. This setting sets the threshold |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
12 ## time in MINUTES (default is 60 minutes) |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
13 ## |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
14 purge_threshold = 60 |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
15 |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
16 |
bc7746ca622e
fetch_weather: Implement purge_threshold setting.
Matti Hamalainen <ccr@tnsp.org>
parents:
348
diff
changeset
|
17 ## |
187 | 18 ## Enable/disable data scraping from Tiehallinto's WWW-pages |
19 ## | |
20 opt_tiehallinto = 1 | |
21 | |
348
9f64f54c2fb3
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
22 ## Tiehallinto static meta data file + path |
9f64f54c2fb3
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
23 tiehallinto_static_meta = "/some/path/weather.tiehallinto.meta" |
9f64f54c2fb3
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
24 |
187 | 25 ## |
26 ## Enable/disable open data access from FMI | |
27 ## You will need to obtain an API key, refer to | |
28 ## https://ilmatieteenlaitos.fi/avoin-data | |
29 ## | |
30 opt_fmi = 0 | |
31 fmi_api_key = "" | |
32 | |
33 ## | |
34 ## Debug mode, outputs some stuff sometimes maybe | |
35 ## | |
36 debug = 1 | |
37 | |
38 ## | |
39 ## Path to the output file, should be same as set in weather.tcl | |
40 ## If NOT set, the script will output to stdout. | |
41 ## | |
348
9f64f54c2fb3
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
275
diff
changeset
|
42 outfile = "/some/path/weather.data" |
187 | 43 |
44 ## | |
45 ## HTTP user agent. If not set here, default will be used. | |
46 ## | |
47 #http_user_agent = "Mozilla/5.0 (foobar)" |