On 04/05/2020, Michael Form <[email protected]> wrote:
> Glenn:
>
> You have come to the rescue once again.

Ah, Okay. I'll find and review our previous discusion

> However, I have what you suggested in the type and map entries which
> does not work.
>
> When I try,  sudo PYTHONPATH=/usr/share/weewx python
> /usr/share/weewx/user/owfs.py --reading=/uncached/1D.30C60D000000
>
> I get the old exNoController message:
>
>    File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 223, in
> init
>      raise exNoController
> ow.exNoController

That means that communication with any 1-wire devices is impossible.
The interface to query them doesn't exist.

> I stopped trying to figure out the reason that I was getting this error
> since weewx was working fine. It would be good to figure out the reason
> for the error as it would be useful to read the sensors directly.

If weewx is working fine, what's the other driver?
What interface does it use?

If you have another driver running then my understanding is owfs.py
should be running as a service.
But you should still get a response from that command line query.

> My setup is weewx version 3.9.2 running with Python 2.7 on a Raspberry
> Pi 4. I am using OWFS.

Going by your last post, you have a temperature gauge (outTemp) and
you now have the rain gauge.
You were also setting up owserver and using that. You had difficulties
in starting owserver but appeared to get it working.

Is it still running?

I'm assuming that the usb dongle / bus master DS9490 is still set up
in /etc/owfs.conf.

Attach a copy of /etc/owfs.conf to your next reply.

Also attach your password free weewx.conf file, or at the very least
your full OWFS section. That's everything after [OWFS] until the main
next section heading.

> syslog shows no problems with the "rain" info with the "correct map and
> type settings (although it does show errors when I had other settings).
> There were errors when I tried to read the sensor:
>
> May  3 19:46:38 raspberrypi weewx[1755]: engine: Terminating weewx
> version 3.9.2
> May  3 19:46:43 raspberrypi weewx[9679]: Stopping weewx weather system:
> weewx..
> May  3 19:46:43 raspberrypi systemd[1]: weewx.service: Succeeded.
> May  3 19:46:43 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
> May  3 19:49:43 raspberrypi OWFS[9746]: DEFAULT: owlib.c:(208) Cannot
> open USB bus master
> May  3 19:49:43 raspberrypi OWFS[9746]: DEFAULT: owlib.c:(52) No valid
> 1-wire buses found
> May  3 19:52:02 raspberrypi OWFS[9756]: DEFAULT: owlib.c:(208) Cannot
> open USB bus master
> May  3 19:52:02 raspberrypi OWFS[9756]: DEFAULT: owlib.c:(52) No valid
> 1-wire buses found
> May  3 19:54:31 raspberrypi OWFS[9804]: DEFAULT: owlib.c:(208) Cannot
> open USB bus master
> May  3 19:54:31 raspberrypi OWFS[9804]: DEFAULT: owlib.c:(52) No valid
> 1-wire buses found
> May  3 20:16:07 raspberrypi systemd[1]: Started Session c10 of user pi.
>
> What I do not understand is why  it complains "Cannot open USB bus
> master" and "No valid 1-wire buses found" when weewx works perfectly
> well using the Maxim USB bus master, DS9490.

Depending on the answers to the above questions, you need to supply an
appropriate --iface string to that command.
I'm punting that will be  '  --iface=localhost:4304 ' ie:-
PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/owfs.py
--iface=localhost:4304 --reading=/uncached/1D.30C60D000000

You may even need to give that a couple of tries, depending on your
configuration. Wait a couple of seconds between each attempt.

> Then again, there are many things that I do not understand. :)

I'll look for you in the queue ;-)

> Thanks for any suggestions and let me know if you need any further
> information.

Regardless of whether you get this working or not, post those
requested configs / extracts back to the list.
They may help the next user with a similar problem. (It's always good
to have a solution with a problem!)

-- 


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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAAraAzgyczvmYX_eJEQvDMHg81UdYOW6cg8NAada%3Dj1ARJe9CA%40mail.gmail.com.

Reply via email to