Well, it's a bit of a puzzle

We know you have had it working with owfs.py as your first post shows
it returning a result when you used the --iface localhost:4304


On 12 December 2017 at 23:32, mixpc75 <[email protected]> wrote:
> Dear Glenn,
>
[...]

> PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/owfs.py --sensors
> gives the usual error:
> Traceback (most recent call last):
>   File "/usr/share/weewx/user/owfs.py", line 618, in <module>
>     main()
>   File "/usr/share/weewx/user/owfs.py", line 578, in main
>     ow.init(iface)
>   File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 224, in init
>     raise exNoController
> ow.exNoController

you've forgotten to add the --iface string ' --iface localhost:4304 '
. Add that and see if it works again.

[...]

> PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/owfs.py --iface
> localhost:4304 --sensors
> PYTHONPATH=/usr/share/weewx sudo python /usr/share/weewx/user/owfs.py
> --iface localhost:4304 --sensors
> result in the same respective errors as indicated above

Now I'm really confused, because you had it working before with that
exact same command...

pi@raspberrypi:~ $ sudo PYTHONPATH=/usr/share/weewx python
/usr/share/weewx/user/owfs.py --iface localhost:4304 --sensors
67C6697351FF: /10.67C6697351FF DS18S20
4AEC29CDBAAB: /05.4AEC29CDBAAB DS2405

although I note that you've switched sudos positioning.

[...]

> Just to check weewx status I run
> pi@raspberrypi:~ $ sudo systemctl status weewx.service
> ● weewx.service - LSB: weewx weather system
>    Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled)
>    Active: active (exited) since Tue 2017-12-12 13:20:34 CET; 1min 53s ago
>      Docs: man:systemd-sysv-generator(8)
>   Process: 249 ExecStart=/etc/init.d/weewx start (code=exited,
> status=0/SUCCESS)
>    CGroup: /system.slice/weewx.service
>
> Dec 12 13:20:34 raspberrypi weewx[349]: owfs: driver version is 0.21
> Dec 12 13:20:34 raspberrypi weewx[349]: owfs: interface is localhost:4304
> Dec 12 13:20:34 raspberrypi weewx[349]: owfs: sensor map is {}
> Dec 12 13:20:34 raspberrypi weewx[349]: owfs: sensor type map is {}
> Dec 12 13:20:34 raspberrypi weewx[349]: owfs: polling interval is 10
> Dec 12 13:20:34 raspberrypi weewx[349]: owfs: sensor unit system is metric
> Dec 12 13:20:39 raspberrypi OWFS[349]: DEFAULT: owlib.c:(52) No valid 1-wire
> buses found
> Dec 12 13:20:39 raspberrypi OWFS[349]: import of driver failed:  (<class
> 'ow.exNoController'>)
> Dec 12 13:20:39 raspberrypi OWFS[349]: engine: Unable to load driver:
> Dec 12 13:20:39 raspberrypi OWFS[349]:     ****  Exiting...
>
> So there it is, the same error. So it seems now there is no way to get the
> --sensors value... I have attached a link to the three config files:

Indeed, it's not working. I wonder if changing to an IP would make a difference?

interface = 127.0.0.1:4304

The port 4304 was working before and is the one in the owfs.conf file
so that should be correct.
If you run...
netstat -nlp
you can check and confirm if it's actually listening there. The
owfs.py notes suggest 3003 but...?

[...]

In summary
we know you had it working from the command line
we know it's at (or was at)  localhost:4304 and that --iface
localhost:4304  worked
It appears that - weewx.conf is not accepting that as the interface entry?

I see the other thread has become active and offers further insight ,
I shall move there - if required!


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to