annotate config.fetch_weather.example @ 275:9cf0c86e72b2

Renamed example config for fetch_weather.pl
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 23 Jan 2015 11:19:29 +0200
parents fetch_weather.config@1487659d4f26
children 9f64f54c2fb3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
187
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
1 ###
188
1487659d4f26 Typofix.
Matti Hamalainen <ccr@tnsp.org>
parents: 187
diff changeset
2 ### Example configuration for weather.tcl data fetcher
1487659d4f26 Typofix.
Matti Hamalainen <ccr@tnsp.org>
parents: 187
diff changeset
3 ### script fetch_weather.pl.
187
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
4 ###
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
5
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
6 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
7 ## Enable/disable data scraping from Tiehallinto's WWW-pages
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
8 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
9 opt_tiehallinto = 1
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
10
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
11 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
12 ## Enable/disable open data access from FMI
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
13 ## You will need to obtain an API key, refer to
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
14 ## https://ilmatieteenlaitos.fi/avoin-data
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
15 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
16 opt_fmi = 0
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
17 fmi_api_key = ""
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
18
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
19 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
20 ## Debug mode, outputs some stuff sometimes maybe
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
21 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
22 debug = 1
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
23
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
24 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
25 ## Path to the output file, should be same as set in weather.tcl
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
26 ## If NOT set, the script will output to stdout.
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
27 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
28 outfile = "/home/niinuska/bot/weather.data"
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
29
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
30 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
31 ## HTTP user agent. If not set here, default will be used.
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
32 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
33 #http_user_agent = "Mozilla/5.0 (foobar)"