Re: [Owfs-developers] Changing Alias with pyownet

2016-09-08 Thread Mick Sulley
Well it's reassuring to know that it is not just me :) I have been testing some more and with multiple devices it seems to rename some and then fail part way through. I have code that list all of the devices, the fields and their values. If I run that after a rename failure that fails as well

Re: [Owfs-developers] Changing Alias with pyownet

2016-09-08 Thread Stefano Miccoli
From the python point of view it’s OK… I think it’s an owserver bug (or feature, I do not know ;-) since I have your very same behaviour. S > On 08 Sep 2016, at 00:03, Mick Sulley wrote: > > Stefano, > I took your ex.py and modified it slightly to use a variable as the base > device name -

[Owfs-developers] Changing Alias with pyownet

2016-09-07 Thread Mick Sulley
Stefano, I took your ex.py and modified it slightly to use a variable as the base device name - == import sys import time import pyownet.protocol TIMEOUT = 10 def main(): timeout_time = time.time() + TIMEOUT while time.time() < timeout_time: try: