You.me gotten me thinking about this.
Performing a read periodically would update values. The values that need
re-reading are "volatile" -- they are tagged internally in for the cache
system as subject to change on their own and thus cached for a shorter
period.
The volatile property is exposed under "/structure" but we could have a
separate "/volatile" directory showing onely volatile properties. A script
could read all the values periodically to refresh, or keep track or changes
and send on data when the change meets the threshold.
Would this be useful? I'd probably not have the "volatile" directory shown
normally to reduce clutter and confusion.
Paul Alfille
On Tue, Jul 10, 2012 at 1:10 PM, Mark Richards
<mark.richa...@massmicro.com>wrote:
>
> On 7/6/2012 07:19, Romain Bourdy wrote:
>
> Hi both,
>
> Thanks for you fast answers. I had the same idea in mind, lower CPU
> Usage by removing that polling infinite loop and thus avoid useless
> broadcasts when nothing changes.
> The fact us that most of our users are using DS9490R adapters so it
> seems to be a no-go, this might have helped in getting domogik on very
> low end computers; I will stick to that infinite loop !
>
> FWIW Domogik has a quite good onewire support and even more, feel free
> to join us #domogik @ freenode and give feedback !
>
> It would be rather neat to have a feature in owfs where all devices are
> updated on a rolling basis. To provide iNotify support, perhaps then only
> updating the value exposed in owfs if it has changed from the last update.
>
> Managing a threshold for each sensor won't be atomic and is probably too
> complicated to be worth it, but such would reduce the notifications for
> small changes in, for example, temperature. Handling a series of small
> increments would also be problematic.
>
> /m
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers