-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-weewx.conf
95 lines (85 loc) · 3.07 KB
/
example-weewx.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[DataBindings]
# additional section for an extra database to store the SNMP data
# optional!
[[snmp_binding]]
database = snmp_sqlite
table_name = archive
manager = weewx.manager.DaySummaryManager
schema = user.snmp.schema
[Databases]
# additional section for an extra database to store SNMP data
# optional!
[[snmp_sqlite]]
database_name = snmp.sdb
database_type = SQLite
[Engine]
[[Services]]
data_services = ..., user.snmp.SNMPservice
archive_services = ..., user.snmp.SNMParchive
# section in weewx.conf to add for the SNMP service
[SNMP]
# extra database
# optional!
# to switch off set data_binding = None
data_binding = snmp_binding
# Each subsection represents one device to be connected. There
# can be several such sections. The section name can be freely
# chosen. It is only used for the thread name.
[[UPS]]
# host and port to be connected
host = replace_me
port = 161
# authentication data
community = replace_me
username = replace_me
password = replace_me
# data to fetch
[[[loop]]]
# UPS data
[[[[iso.3.6.1.2.1.33.1.3.3.1.2.1]]]]
name = 'upsInputFrequency'
conversion = lambda x:float(x)/10.0
unit = 'hertz'
group = 'group_frequency'
[[[[iso.3.6.1.2.1.33.1.3.3.1.3.1]]]]
name = 'upsInputVoltage'
unit = 'volt'
group = 'group_volt'
[[[[iso.3.6.1.2.1.33.1.4.1.0]]]]
name = 'upsOutputSource'
[[[[iso.3.6.1.2.1.33.1.4.2.0]]]]
name = 'upsOutputFrequency'
conversion = lambda x:float(x)/10.0
unit = 'hertz'
group = 'group_frequency'
[[[[iso.3.6.1.2.1.33.1.4.4.1.2.1]]]]
name = 'upsOutputVoltage'
conversion = lambda x:float(x)
unit = 'volt'
group = 'group_volt'
[[[[iso.3.6.1.2.1.33.1.4.4.1.3.1]]]]
name = 'upsOutputCurrent'
conversion = lambda x:float(x)/10.0
unit = 'amp'
group = 'group_amp'
[[[[iso.3.6.1.2.1.33.1.4.4.1.4.1]]]]
name = 'upsOutputPower'
conversion = None
unit = 'watt'
group ='group_power'
[[[[iso.3.6.1.2.1.33.1.4.4.1.5.1]]]]
name = 'upsOutputPercentLoad'
unit = 'percent'
group = 'group_percent'
# extra sensor data
[[[[iso.3.6.1.2.1.99.1.1.1.4.1]]]]
# cabinet temperature
name = 'cabTemp'
conversion = lambda x: float(x)/10.0
unit = 'degree_C'
group = 'group_temperature'
[[[[iso.3.6.1.2.1.99.1.1.1.4.2]]]]
# cabinet humidity
name = 'cabHumidity'
unit = 'percent'
group = 'group_percent'