-
Notifications
You must be signed in to change notification settings - Fork 1
/
oxc.conf.sample
141 lines (109 loc) · 3.46 KB
/
oxc.conf.sample
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[general]
#log_file = /tmp/oxc.log
##
## log_level 0 is least verbose; 4 is most
##
## 0 => "FATAL",
## 1 => "ERROR",
## 2 => "WARN",
## 3 => "INFO",
## 4 => "DEBUG"
##
#log_level = 2
## sensor_read_interval is the time period between
## sensors samples from the 1-wire bus
##
# sensor_read_interval = 15
## sensor_report_interval is the time period (in secs) between
## sensor updates. A sensor will report more frequently,
## However, if it changes exceed a (currently non-configurable)
## threshold (set at 1), a sensor report will occur.
## sensor_report_interval must be >= sensor_read_interval
##
#sensor_report_interval = 300
## solar radiation measurement; valid values are lux or wm2
#solar = wm2
## temperature scale; valid values are F or C
##
# temp_scale = F
## Data Collection Method (new to v0.5)
## method = owfs
## 1-wire file system owfs.sourceforge.net
## method = digitemp
## digitemp program used to gather data
## defaults to digitemp
##
# method = owfs
[xap]
##
## heartbeat interval in minutes
##
#hbeat_interval = 1
##
## ignore the xAP base uid unless it conflicts w/ other apps
##
#base_uid = EA09
##
## the source of xAP messages will be of the form:
## liming.oxc.<instance_name>
##
instance_name = house
##
## set nohub = 1 if you don't have a hub operating; default is 0
nohub = 0
## On newer versions of OWFS you may have to put in a hub line
#hubs = 1F.5EASDF000000/main,1F.D6DE08000000/main,1F.D53e08000000/main,1F.553208000000/aux,1F.541208000000/aux,1F.D23408000000/aux
##
## IMPORTANT!!! YOU MUST ALTER THE FOLLOWING PARAMS
## TO BE CONSISTENT WITH YOUR DIGITEMP INSTALLATION
## UNLESS METHOD = OWFS
[digitemp]
program_path = /usr/local/bin/digitemp
config_path = /etc/digitemp.conf
## optional; read_timeout defines the timeout in seconds for all sensors if defined here; default is 1
# read_timeout = 1
## optional; extra_options adds an ability to append extra options to digitemp when called
## for example, if the MySQL logging capability is desired via
## http://illx.org:8080/digitemp/index.jsp, then set extra_options to -e
# extra_options = -e
## One Wire File System (owfs) settings
[owfs]
## Mount point you have specified for owfs
## ie owfs -u /mnt/owfs
# mount_point = /mnt/owfs
## Number of decimal places to report
## for full decimal reporting set this to 0
## defaults to no decimal precision
# precision = 2
##
## Sensor declarations
##
## Each section must start w/ "sensor." any single word (with hypens,
## underscores and/or numbers may follow. This "word" will be considered
## the sensor's name and an xAP endpoint will be created for it
##
## The section names and serial numbers below are EXAMPLES ONLY
## Please replace with names and serial number pertinent to your
## environment
[sensor.outside-t]
## serial is the serial# of the one-wire device
serial = 103C28B7000800CC
## delta_report specifies a change threshold that
## will trigger a sensor report sooner than the scheduled
## periodic report; set to an exceptionally high value to
## prevent event based reports
delta_report = 2
## for sensors that contain more than one device
## such as the Honeywell humidity sensor, set
## the second delta (if different from the primary)
## as:
## delta_report = 3
## read_timeout (seconds) overrides the global or default timeout on a per sensor basis
# read_timeout = 1
[sensor.outside-h]
serial = 2687306E0004000F
delta_report_humid = 5
[sensor.house-s]
serial = 2636A123450000
type = solar
delta_report_solar = 5