-
Notifications
You must be signed in to change notification settings - Fork 6
Configuration
François JARRIER-GELLEZ edited this page Jan 18, 2019
·
12 revisions
You can find the configuration file to /etc/MqttOwfs.conf
.
To specify another folder or configuration file see daemon settings on How to install.
[owfs]
server=127.0.0.1
port=4304
devicesinterval=5
valuesinterval=4
temperaturescale=C
pressurescale=Mbar
uncachedread=false
[mqtt]
server=127.0.0.1
port=1883
keepalive=300
topic=owfs
[log]
level=1
destination=cerr
module=
function=
[0589454659845/temperature9]
displayname = TemperatureSalon
round = 1
-
server
to define owfs server ip address (default 127.0.0.1). -
port
to define owfs server port TCP (default 4304). -
devicesinterval
specifie interval to refresh devices list, in second (default 90) -
valuesinterval
specifie interval to refresh devices value, in second (default 10) -
temperaturescale
(default C) -
pressurescale
(default Mbar) -
uncachedread
(default false)
-
server
to define mqtt server ip address (default 127.0.0.1) -
port
to define mqtt server port TCP (default 1883) -
keepalive
specify keepalive, in second (default 300) -
topic
specify the topic (default owfs)
-
level
to define log level, 1 to 7 (default 1) -
destination
to specifie log destination cout, cerr, clog or a file (default cerr) -
module
to limit log on a source file -
function
to limit log on a single function
Other sections allow you to manually define devices. The name of the section must be the folder to read the owfs device value.
-
displayname
to modify the device name in the mqtt topic -
round
to round the value (1 to round to one decimal place)
Example of section to have a mqtt message for a DS2438, VDD value :
[26000026D90000/VDD]
displayname = MyDS2438voltage
round = 1