annotate fetch_weather.config @ 187:8b0a9315c69e

Permissions.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Jun 2014 21:45:07 +0300
parents b41c525bdaf7
children 1487659d4f26
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 ###
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
2 ### Exampel configuration for fetch_weather.pl
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
3 ###
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 ## Enable/disable data scraping from Tiehallinto's WWW-pages
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
7 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
8 opt_tiehallinto = 1
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
9
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
10 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
11 ## Enable/disable open data access from FMI
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
12 ## You will need to obtain an API key, refer to
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
13 ## https://ilmatieteenlaitos.fi/avoin-data
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
14 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
15 opt_fmi = 0
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
16 fmi_api_key = ""
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
17
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
18 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
19 ## Debug mode, outputs some stuff sometimes maybe
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
20 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
21 debug = 1
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
22
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
23 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
24 ## Path to the output file, should be same as set in weather.tcl
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
25 ## If NOT set, the script will output to stdout.
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
26 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
27 outfile = "/home/niinuska/bot/weather.data"
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
28
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
29 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
30 ## HTTP user agent. If not set here, default will be used.
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
31 ##
8b0a9315c69e Permissions.
Matti Hamalainen <ccr@tnsp.org>
parents: 186
diff changeset
32 #http_user_agent = "Mozilla/5.0 (foobar)"