Re: [Owfs-developers] Couple of Questions - another one

2016-09-03 Thread Mick Sulley
Jan, Stefano, Once again many thanks for your help and advise. My alias file is not dynamic as such, but can change as I create a new version of my software, which is what I am doing at present, so it seemed safer to copy it over at startup. I will look at redefining alias in owshell, then

Re: [Owfs-developers] Couple of Questions - another one

2016-09-03 Thread Stefano Miccoli
My 1cent advice: do not insert a delay before your script, instead catch the pyownet.protocol.ConnError exception and retry if the alias file is dynamic (otherwise why copy it at every reboot?) you can also define/redefine aliases using owshell/ownet. Please check this gist for an example of bo

Re: [Owfs-developers] Couple of Questions - another one

2016-09-03 Thread Jan Kandziora
Am 03.09.2016 um 10:09 schrieb Mick Sulley: > My code relies on aliases and so I wanted to copy the correct version of > owfs.conf to /etc/owfs.conf and I assumed that I would need to restart > after that for it to be read and the correct alias file used. > No. Owserver monitors its config file

Re: [Owfs-developers] Couple of Questions - another one

2016-09-03 Thread Mick Sulley
My code relies on aliases and so I wanted to copy the correct version of owfs.conf to /etc/owfs.conf and I assumed that I would need to restart after that for it to be read and the correct alias file used. The thing I don't understand is that it is not the restart that causes the failure, it is

Re: [Owfs-developers] Couple of Questions - another one

2016-09-02 Thread Jan Kandziora
Am 02.09.2016 um 22:48 schrieb Mick Sulley: > > If I have removed the restart it still fails, however if I introduce a > delay it works > > cp owfs.conf /etc/ > sleep 5 > ./control.py >> logfile > > Less than 5 seconds it fails, 5 or more it works > That is because owserver takes a while befor

Re: [Owfs-developers] Couple of Questions - another one

2016-09-02 Thread Mick Sulley
I have got my code to work, but I've come across something I don't understand. In my bash script that starts it all I copy a local owfs.conf file to /etc/owfs.conf, then restart owserver, then start my python code, so basically I have cp owfs.conf /etc/ systemctl restart owserver.service ./con

Re: [Owfs-developers] Couple of Questions

2016-09-01 Thread Jan Kandziora
Am 01.09.2016 um 20:43 schrieb Mick Sulley: > > $ sudo systemctl status owserver.service > [sudo] password for control: > ● owserver.service - Backend server for 1-wire control >Loaded: loaded (/lib/systemd/system/owserver.service; enabled) >Active: active (running) since Thu 2016-09-01 0

Re: [Owfs-developers] Couple of Questions

2016-09-01 Thread Mick Sulley
I am still in the process of converting my existing software, there have been many changes and even with the best intentions I don't think I have recorded them all, so once it is all sorted I intend to start again with a blank SD card, set it all up from scratch and make sure that I have a reco

Re: [Owfs-developers] Couple of Questions

2016-09-01 Thread Nigel Titley
This sounds a lot like my problem with raspbian... which I've still not sorted. Nigel On 01/09/16 08:56, Stefano Miccoli wrote: > >> On 31 Aug 2016, at 22:28, Mick Sulley > > wrote: >> >> $ owserver >> does nothing >> $ owserver -d /dev/i2c-1 >> starts the server >> $ se

Re: [Owfs-developers] Couple of Questions

2016-09-01 Thread Stefano Miccoli
> On 31 Aug 2016, at 22:28, Mick Sulley wrote: > > $ owserver > does nothing > $ owserver -d /dev/i2c-1 > starts the server > $ service owserver restart > returns "Failed to restart owserver.service: Access denied" > $ sudo service owserver restart > stops the server > $ owserver -c /etc/owfs.co

Re: [Owfs-developers] Couple of Questions

2016-08-31 Thread Jan Kandziora
Am 31.08.2016 um 22:28 schrieb Mick Sulley: > I think I still have a problem here. If I reboot owserver does not > start, I thought it should. My owfs.conf file contains > Contains? Or *is*? > > # All owfs programs but owserver should connect to a

Re: [Owfs-developers] Couple of Questions

2016-08-31 Thread Mick Sulley
I think I still have a problem here. If I reboot owserver does not start, I thought it should. My owfs.conf file contains # All owfs programs but owserver should connect to a running owserver. ! server: server = localhost:4304 # this is setting for a

Re: [Owfs-developers] Couple of Questions

2016-08-31 Thread Stefano Miccoli
> On 30 Aug 2016, at 23:31, Mick Sulley wrote: > > Still trying to transition from using owfs to ow-shell and I have a > couple of questions - > > When owserver is installed from the repository it should start > automatically at boot and will read /etc/owfs.conf to configure it, but > if I r

[Owfs-developers] Couple of Questions

2016-08-30 Thread Mick Sulley
Still trying to transition from using owfs to ow-shell and I have a couple of questions - When owserver is installed from the repository it should start automatically at boot and will read /etc/owfs.conf to configure it, but if I run "service owserver restart" will it read /etc/owfs.conf again?