[Owfs-developers] owserver polling so cached values never delay

2015-09-23 Thread Alex R. Gibbs
Hello, We have dozens of DS18B20 temperature sensors at 3 telescopes. I'd like to poll them and cache the results so that other programs can retrieve the latest temperatures with less than 50ms delay. It doesn't matter if the values are a few minutes old; just that clients don't have to wait

Re: [Owfs-developers] owserver polling so cached values never delay

2015-09-23 Thread Colin Reese
Just write a daemon to write to a database as they're read and have the clients read from the database. C > On Sep 23, 2015, at 5:35 AM, Alex R. Gibbs wrote: > > Hello, > > We have dozens of DS18B20 temperature sensors at 3 telescopes. I'd like to > poll > them and cache the results so th

Re: [Owfs-developers] owserver polling so cached values never delay

2015-09-23 Thread Jan Kandziora
Am 23.09.2015 um 14:35 schrieb Alex R. Gibbs: > > We have dozens of DS18B20 temperature sensors at 3 telescopes. I'd like to > poll > them and cache the results so that other programs can retrieve the latest > temperatures with less than 50ms delay. > So basically, you want the other programs

Re: [Owfs-developers] owserver polling so cached values never delay

2015-09-23 Thread Colin Reese
Is there a way to set the cache delay? There is the case where you don't want sensors read every second (for power consumption, load, or other reasons), but want values instantly. Setting the cache delay would address this, and the shell script could read this value and adjust accordingly. Also,

Re: [Owfs-developers] owserver polling so cached values never delay

2015-09-23 Thread Jan Kandziora
Am 23.09.2015 um 20:14 schrieb Colin Reese: > Is there a way to set the cache delay? > IIRC temperature values are cached as set in settings/timeout/volatile, in seconds. > There is the case where you > don't want sensors read every second (for power consumption, load, or > other reasons), but w

Re: [Owfs-developers] owserver polling so cached values never delay

2015-09-23 Thread Stefano Miccoli
I would follow Colin suggestion: do not tweak owserver, but deploy an in memory cache that acts like a buffer between owserver and the clients. I would suggest redis http://redis.io (or memcached, but I prefer redis). A basic setup would be to have a daemon process that cont

Re: [Owfs-developers] owexternal again

2015-09-23 Thread Jan Kandziora
Am 21.09.2015 um 23:29 schrieb Jan Kandziora: > > Still, the tcl language binding seem to have its own crash culprit. Have > to investigate further. > Owlib and all the language bindings depending on it (that is: all that are not ownet) had another set of bugs which made the client crash when acc