Configuration - leschNUX/MqttOwfs GitHub Wiki
Location
You can find the configuration file to /etc/MqttOwfs.conf
.
To specify another folder or configuration file see daemon settings on How to install.
Sample of configuration file
[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
[0100A00124DA00/ispresent]
displayname = door
refreshinterval = 1
uncachedread = true
new features
- You can specify a specific refresh interval for a device with refreshinterval in device section. To force uncached read for a device, add uncachedread = true in device section. To verify if a device existing, create a device with /ispresent in title section, for example : see config is present
owfs section
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)
mqtt section
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)
log section
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 filefunction
to limit log on a single function
Others sections
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 topicround
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