-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmeteo.default.yml
50 lines (40 loc) · 1.25 KB
/
meteo.default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Configuration file for meteo logger and server
name: 'ExWi'
# Serial port file of meteo station.
# If value is 'auto' then search for meteo station.
serial: 'auto' # /dev/ttyS0
baudrate: 19200
# Setup for meteo station
# setup: [] # No setup
# Each setting is tested by querying current state and sending the settings if needed.
# For the WXT520, the settings need to be split into several chunks.
# Page numbers refer to WXT530 manual.
setup:
# Settings, page 60
- '0XU,A=0,M=P,T=0,C=2,I=0,B=19200,D=8,P=N,S=1,L=20'
# Wind, page 107
- '0WU,R=11111111&11111111'
- '0WU,I=60,A=60,G=1,U=M,D=0,N=W,F=4'
# Temperature, page 113
- '0TU,R=11111111&11111111'
- '0TU,I=60,P=H'
# Precipitation, page 117
- '0RU,R=11111111&11111111'
- '0RU,I=60,U=M,S=M,M=T,Z=M'
# Poll interval in seconds.
interval: 60
# Where to put the log files
target: '/home/pi/meteo/'
# Maximum number of daily log files to keep.
# Typical size for 60 s interval is 80 kB
max_files: 10000
# Logging directly to database
database:
use_database: No
# See: http://docs.sqlalchemy.org/en/latest/core/engines.html
url: 'mysql+mysqlconnector://user:password@server/database'
table: 'table_name' # Will get created automatically
server:
host: '0.0.0.0'
port: 8080
debug: no