view config.fetch_weather.example @ 698:6ba9f961e463 default tip

quotedb: Bump version and copyright.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 18 Sep 2023 11:38:41 +0300
parents c95c0eb0a10f
children
line wrap: on
line source

###
### Example configuration for weather.tcl data fetcher
### script fetch_weather.pl.
###
# NOTE! There are some undocumented settings too,
# take a look at the %settings hash in the script.


##
## Purge time threshold for old/obsolete records.
## Fetch_weather stores data into a cache file, which
## also keeps older records as sometimes weather stations
## do not report reliably. However, too old records
## need to be purged. This setting sets the threshold
## time in MINUTES (default is 60 minutes)
##
purge_threshold = 60


##
## Enable/disable data scraping from Tiehallinto's WWW-pages
##
opt_tiehallinto = 1

## Tiehallinto static meta data file + path
tiehallinto_meta = "/some/path/weather.tiehallinto.meta"

# Fetch period for static meta data (in days)
tiehallinto_meta_period = 7

##
## Enable/disable open data access from FMI
##
opt_fmi = 1

##
## Debug mode, outputs some stuff sometimes maybe
##
#debug = 1

##
## Path to the output file, should be same as set in weather.tcl
## If NOT set, the script will output to stdout.
##
outfile = "/some/path/weather.data"

##
## HTTP user agent. If not set here, default will be used.
##
#http_user_agent = "Mozilla/5.0 (foobar)"