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

2015-10-06 Thread Jan Kandziora
Am 06.10.2015 um 09:35 schrieb Alex R. Gibbs: > Hi Jan, > > It turns out the sensors are parasite powered. :/ We bought them from > iButtonLink already packaged that way. > Which sensor do you use? Besides the T-Probe-Pipe sensor, they all can be used as a powered device, too. Just apply +5V to

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

2015-10-06 Thread Alex R. Gibbs
Oops, I should say thanks for the help, Jan! I guess there are a lot of authors, particularly Paul Alfille. On 10/6/2015 12:35 AM, Alex R. Gibbs wrote: > By the way, thanks for writing owfs! -- _

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

2015-10-06 Thread Alex R. Gibbs
Hi Jan, It turns out the sensors are parasite powered. :/ We bought them from iButtonLink already packaged that way. We don't need to update our readings that often so it's okay. Every 2-5 minutes is fine. On 10/5/2015 6:54 AM, Jan Kandziora wrote: > Am 05.10.2015 um 14:23 schrieb Alex R. G

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

2015-10-05 Thread Jan Kandziora
Am 05.10.2015 um 16:21 schrieb Johan Ström: > > (I'm almost sure of this, and I cannot find any evidence of read > operations executed in ow_simultanous. But please correct me if I'm wrong) > No, you are right. Sensors aren't read when triggering simultaneous. Kind regards Jan ---

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

2015-10-05 Thread Johan Ström
On 05/10/15 15:54, Jan Kandziora wrote: > Am 05.10.2015 um 14:23 schrieb Alex R. Gibbs: >> However, other clients will have to wait if they happen >> to query owserver during the conversion/read. >> > No. That can only happen if you use parasite powered sensors. Because > parasite power occupies th

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

2015-10-05 Thread Jan Kandziora
Am 05.10.2015 um 14:23 schrieb Alex R. Gibbs: > > However, other clients will have to wait if they happen > to query owserver during the conversion/read. > No. That can only happen if you use parasite powered sensors. Because parasite power occupies the bus during temperature conversion for poweri

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

2015-10-05 Thread Alex R. Gibbs
Thanks for all the suggestions. I got sidetracked and wasn't able to look into them much until now. Jan, I'll have multiple clients asking for temperatures. One of them is time critical and I could have it trigger the conversions at the right time so that it never has to wait. However, oth

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] 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 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 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
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