Files
weewx/weewx.conf
Tom Keffer 15a175db50 Added other services to the engine.
Removed DST logic from VantagePro.
Fixed logic problem in imagegenerator
2012-03-26 00:58:34 +00:00

332 lines
12 KiB
Plaintext

############################################################################################
# #
# #
# WEEWX CONFIGURATION FILE #
# #
# #
############################################################################################
# #
# Copyright (c) 2009, 2010, 2011 Tom Keffer <tkeffer@gmail.com> #
# #
# See the file LICENSE.txt for your full rights. #
# #
############################################################################################
#
# $Revision$
# $Author$
# $Date$
#
############################################################################################
#
# This section is for general configuration information
#
# Set to 1 for extra debug info, otherwise comment it out or set to zero.
debug = 1
# How long to wait before timing out a socket (FTP, HTTP) connection:
socket_timeout = 20
# Current version
version = 2.0.0a1
############################################################################################
[Station]
#
# This section is for information about your station
#
# Root directory of the weewx data file hierarchy for this station.
WEEWX_ROOT = /home/weewx
location = "Hood River, Oregon"
# Latitude, longitude in decimal degrees
latitude = 45.686
longitude = -121.566
# Altitude of the station, with unit it is in:
altitude = 700, foot # Choose 'foot' or 'meter' for unit
# The start of the rain year (1=January; 10=October, etc.)
rain_year_start = 1
# Start of week (0=Monday, 6=Sunday)
week_start = 6
# How often to check the clock on the weather station for drift (in seconds)
clock_check = 14400
# How much it can drift before we will correct it (in seconds):
max_drift = 5
# Set to 1 (one) to cache LOOP data, otherwise zero. Most people
# will want to set this to one unless you have a specialized application
cache_loop_data = 1
# Set to type of station (e.g., 'VantagePro' for a Davis VantagePro or VantagePro2)
# Must match section name below.
station_type = VantagePro
############################################################################################
[VantagePro]
#
# This section is for configuration info for a Davis VantagePro or
# VantagePro2 or Davis WeatherLinkIP
#
# Archive interval in seconds for your station. Used only when configuring
# the station; otherwise it is downloaded from the station.
archive_interval = 300
# Connection type.
# Choose one of "serial" (the classic VantagePro) or "ethernet" (the WeatherLinkIP):
type = serial
#type = ethernet
# If you chose "serial", then give its port name
#
# Ubuntu and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0 a common serial port name
port = /dev/ttyUSB0
#port = /dev/ttyS0
# If you chose "ethernet", then give its IP Address/hostname
host = 1.2.3.4
######################################################
# The rest of this section rarely needs any attention.
# You can safely leave it "as is."
######################################################
# The type of rain bucket you have. After changing, YOU MUST RUN the configuration program!
# Possible types are 0 (0.01 inch bucket)
# 1 (0.2 MM bucket)
# 2 (0.1 MM bucket)
# If left commented out, then the configuration program will not change the bucket type.
# rain_bucket_type = 0
# Serial baud rate (usually 19200)
baudrate = 19200
# TCP port (when using the WeatherLinkIP)
tcp_port = 22222
# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 1
# The id of your ISS station (usually 1)
iss_id = 1
# How long to wait (in seconds) before processing new archive data
archive_delay = 15
# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 5
# How long to wait before trying again (in seconds)
wait_before_retry = 1.2
# How many times to try before giving up:
max_tries = 4
# What unit system to use on the station. 1=US Customary (the only one the VP
# supports)
unit_system = 1
############################################################################################
[RESTful]
#
# This section if for uploading data to sites using RESTful protocols.
#
[[Wunderground]]
#
# This section is for configuring posts to the Weather Underground
#
# If you wish to do this, make sure the following two lines are uncommented
# and filled out with your station and password information:
# station = your Weather Underground station ID here (eg, KORHOODR3)
# password = your password here
protocol = Ambient
[[PWSweather]]
#
# This section is for configuring posts to PWSweather.com
#
# If you wish to do this, make sure the following two lines are uncommented
# and filled out with your station and password information:
# station = your PWSweather station ID here (eg, KORHOODR3)
# password = your password here
protocol = Ambient
[[CWOP]]
#
# This section is for configuring posts to CWOP.
#
# If you wish to do this, make sure the following line is uncommented
# and filled out with your station ID
# station = CW1234
# If you are an APRS (radio amateur) station, you will need a passcode
# as well:
# passcode = your passcode here eg, 12345 (APRS stations only)
# Comma separated list of server:ports to try:
server = cwop.aprs.net:14580, cwop.aprs.net:23
interval = 600 # How often we should post in seconds. 0=with every archive record
protocol = CWOP
############################################################################################
[Archive]
#
# This section is for configuration info about the sqlite3 archive database
#
# The path to the database, relative to the WEEWX_ROOT directory
archive_file = archive/weewx.sdb
# What unit system to use in the database. 1=US Customary (the only
# one supported now)
unit_system = 1
############################################################################################
[Stats]
#
# This section is for configuration info about the sqlite3 statistical
# database
#
# Path to the statistics database, relative to the WEEWX_ROOT directory:
stats_file = archive/stats.sdb
# The types for which Hi/Low statistics will be kept. Types not listed will
# not be available for HTML pages and other stats. Note that while most
# types correspond to their SQL counterpart, 'wind' is a special type that
# replaces windSpeed and windGust. It can answer queries such as dominant
# wind directions, etc. If not given, statistics will be kept for all
# possible types, resulting in a possibly much bigger than necessary stats
# database. This list is only used when the stats database is initialized.
# Thereafter, the types are retrieved from the database.
stats_types = wind, barometer, inTemp, outTemp, inHumidity, outHumidity, rainRate, rain, dewpoint, windchill, heatindex, ET, radiation, UV, extraTemp1, rxCheckPercent
############################################################################################
[Reports]
#
# This section specifies what reports, using which skins, are to be generated.
#
# Where the skins reside, relative to WEEWX_ROOT:
SKIN_ROOT = skins
# Where the generated reports should go, relative to WEEWX_ROOT:
HTML_ROOT = public_html
# Each subsection represents a report you wish to run:
[[StandardReport]]
# What skin this report should be based on:
skin = Standard
# You can override values in the skin configuration file from here.
# For example, uncommenting the next 3 lines would have pressure reported
# in millibars, irregardless of what was in the skin configuration file
# [[[Units]]]
# [[[[Groups]]]]
# group_pressure=mbar
#
# Here is an example where we create a custom report, still using the standard
# skin, but where the image size is overridden, and the results are put in a
# separate subdirectory 'public_html/big'
#
#[[BigReport]]
# skin = Standard
# HTML_ROOT = public_html/big
# [[[Images]]]
# image_width = 600
# image_height = 360
[[FTP]]
skin = Ftp
#
# FTP'ing the results to a webserver is treated as just another report,
# albeit one with an unusual report generator!
#
# If you wish to use FTP, uncomment and fill out the next four lines:
# user = replace with your username
# password = replace with your password
# server = replace with your server name, e.g, www.threefools.org
# path = replace with the destination root directory on your server (e.g., '/weather)
# Set to 1 to use passive mode, zero for active mode:
passive = 1
# How many times to try to transfer a file before giving up:
max_tries = 3
# If you wish to upload files from something other than what HTML_ROOT is set to
# above, then reset it here:
# HTML_ROOT = public_html
############################################################################################
[Calibrate]
#
# This section can adjust data using calibration expressions.
#
[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the native units of the weather station hardware.
# For example:
# outTemp = outTemp - 0.2
############################################################################################
[QC]
#
# This section for quality control checks.
# It should be in the native units of the weather station hardware.
#
[[MinMax]]
outTemp = -40, 120
barometer = 28, 32.5
outHumidity = 0, 100
############################################################################################
[Engines]
# This section configures the internal weewx engines. It is for advanced customization.
[[WxEngine]]
# The list of services the main weewx engine should run:
service_list = weewx.wxengine.StdStation, weewx.wxengine.StdCalibrate, weewx.wxengine.StdQC, weewx.wxengine.StdArchive, weewx.wxengine.StdTimeSynch, weewx.wxengine.StdPrint, weewx.wxengine.StdRESTful, weewx.wxengine.StdReportService