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
- serverto define owfs server ip address (default 127.0.0.1).
- portto define owfs server port TCP (default 4304).
- devicesintervalspecifie interval to refresh devices list, in second (default 90)
- valuesintervalspecifie interval to refresh devices value, in second (default 10)
- temperaturescale(default C)
- pressurescale(default Mbar)
- uncachedread(default false)
mqtt section
- serverto define mqtt server ip address (default 127.0.0.1)
- portto define mqtt server port TCP (default 1883)
- keepalivespecify keepalive, in second (default 300)
- topicspecify the topic (default owfs)
log section
- levelto define log level, 1 to 7 (default 1)
- destinationto specifie log destination cout, cerr, clog or a file (default cerr)
- moduleto limit log on a source file
- functionto 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.
- displaynameto modify the device name in the mqtt topic
- roundto 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