OK more research and I have made a bit of progress. adding
server: fake=10.053C8A010800,10.2AFE89010800,10.90F889010800 to owfs.conf creates these devices with random values, different at each read. They can be split over different lines e.g. server: fake=10.053C8A010800 fake=10.2AFE89010800,10.90F889010800 Also you can limit the values - server: fake=10.053C8A010800 fake=10.2AFE89010800,10.90F889010800 --temperature_low=20.1 --temperature_high=22.1 limits the values of all 3 sensors to between 20.1 and 22.1, however server: fake=10.053C8A010800 --temperature_low=10.1 --temperature_high=12.1 fake=10.2AFE89010800,10.90F889010800 --temperature_low=20.1 --temperature_high=22.1 limits all 3 sensors to between 20.1 and 22.1, it seems that only the last restrictions are used for all devices. The limits must be on separate lines, so server: fake=10.053C8A010800 --temperature_low=10.1 --temperature_high=12.1 does not restrict the temperature at all. Using 'tester' in place of 'fake' creates the device with a consistent value, but there does not seem to be any way to control what that value is, --temperature_low=20.1, --temperature_high=22.1 has no effect. The values seem to be different for each device, but all are many hundreds or thousands of degrees. Is there any way to set individual temperatures for fake devices? Thanks Mick On 04/12/16 23:34, Mick Sulley wrote: > I am trying to test out some code using the tester facility in owfs.conf > > If I add > > tester=10.053C8A010800 > > I can see that fake device. Looking at the documentation there is a way > to tell it what value e.g. temperature you would like it to read, from > the documentation (which seems rather confusing) it is > > tester=10.053C8A010800 -p 4444 > > I have tried a few values at the end and they don't make any difference. > > I also found some old mails suggesting maybe 'mock' instead of 'tester' > and also adding --templow and --temphigh but these don't seem to work > either. > > How can I set the value I would like to see? > > Thanks > > Mick > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers