-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadport_4004_KLDPIO.conf
36 lines (27 loc) · 1.75 KB
/
readport_4004_KLDPIO.conf
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
# Comments may appear on their own on an otherwise empty line
[device]
station = PIO
name = MET
host = 192.168.1.11
port = 4004
# Reconnect if no messages are received within the specified number of seconds.
# Comment out the line to disable timeouts.
timeout = 600
[parser]
# Regular expression for extracting the values from the message.
# Every capture group must state a variable name using (?P<name>...)
regex = ^TA1=(?P<TA1>\S+),TA2=(?P<TA2>\S+),TA3=(?P<TA3>\S+),RH1=(?P<RH1>\S+),RH2=(?P<RH2>\S+),RH3=(?P<RH3>\S+),DP1=(?P<DP1>\S+),DP2=(?P<DP2>\S+),DP3=(?P<DP3>\S+),WC1=(?P<WC1>\S+),PA=(?P<PA>\S+),QFE=(?P<QFE>\S+),QFF=(?P<QFF>\S+),QNH=(?P<QNH>\S+),PTEND=(?P<PTEND>\S+),SR=(?P<SR>\S+),SR1H=(?P<SR1H>\S+),SR24H=(?P<SR24H>\S+),SO2=(?P<SO2>\S+),NO2=(?P<NO2>\S+),CO=(?P<CO>\S+),H2S=(?P<H2S>\S+),PM2\.5=(?P<PM25>\S+),PM10=(?P<PM10>\S+),WS1AVG1=(?P<WS1AVG1>\S+),WD1AVG1=(?P<WD1AVG1>\S+),STATUS=(?P<STATUS>\S+).*$
# TA1=25.2,TA2=22.2,TA3=21.1,RH1=34.7,RH2=41.8,RH3=38.3,DP1=8.5,DP2=8.6,DP3=6.3,WC1=17.2,PA=1015.5,QFE=1015.7,QFF=1036.9,QNH=1037.6,PTEND=0.2,SR=486.0,SR1H=459.8,SR24H=256.5,SO2=///,NO2=///,CO=///,H2S=///,PM2.5=///,PM10=///,WS1AVG1=5.7,WD1AVG1=79,STATUS=0
# # Group incoming messages by the following variable and write to separate files.
# # The group variable will be cast to the supplied data type: int, float or str.
# group_by = level:int
# Number of records to save on disk at once. 1 msg/min * 60 min
pack_length = 10
# Destination directory where to save the resulting NumPy files
destination = /home/tower/tower_parse/data/
[logging]
# Use "DEBUG" to see more details in the console and the log-files;
# use "INFO" for a less verbose mode in production.
level = INFO
# Filename pattern, expanded to e.g. readport_4001.log
file = readport_${device:port}.log