Closed mroi-perso-49 closed 6 years ago
Hi Maximilien, I'll check asap and I'll bet that you've found the issue, I don't have lot of hardware to test it now, don't hesitate to propose a fix, I'll merge it Anyway, as soon as I have some testing capabilities, I'll fix this this Regards, Jean
Thanks for your quick reply. I forked your project and changed line 28 to : this.OwfsCnx = new Client({host:this.hostIp, port:this.hostPort}); And now the temperature is fetched from the remote owserver. I tried to make a pull request but I could not commit this only change. For publishing on npm and testing on homebridge I had to change the name of the package ; those modifications should not be merged to your project. If I create a pull request with all the modifications I have made can you accept only what is really needed ?
Regards,
Maximilien.
Not fully familiar with GIT, otherwise, just give me the modified ligne here and I'll change it in the main branch directly Jean
Change line 28 to : this.OwfsCnx = new Client({host:this.hostIp, port:this.hostPort}); Been working fine here for a few days now :-)
Maximilien.
Good catch Maximilien, works for me too. This is how I got it working:
sudo npm uninstall -g --unsafe-perm homebridge-owfs
cd ~/downloads; git clone https://github.com/jchassin/homebridge-owfs.git
sudo npm install -g --unsafe-perm /home/pi/downloads/homebridge-owfs
and whola, values are finally being shown on Apple Home app :-)
Commited => to be packages in version 1.3.2
Hi,
Thanks for sharing the great job !
I am trying to connect to a remote owserver, I have successfully tested remote access using owread : owread -s 192.168.0.8:4304 /28.FF5DD5641501/temperature 22.4375
In homebridge I have configured a DS18B20 : [Temp] Initializing OWFS_DS18B20 accessory... [Temp] Configuring device : 28.FF5DD5641501 on 192.168.0.8:4304
But retrieving the temperature fails : [Temp] Error reading /28.FF5DD5641501/temperature
In the examples on owjs repo the instanciation looks like : var client = new owjs.Client({host:'192.168.0.8'});
At line 28 of the remote host instanciation there is : this.OwfsCnx = new Client(this.hostPort, this.hostIp);
I do not know much of js but maybe there is something related to this.
Thanks a lot for your help,
Maximilien.