Well, it communicates with all 1-Wire devices but I do not know the answer to your question about the "other driver" or "what interface it is using". Perhaps the info below will answer those questions but it seems to me that things are OK.

Adding

--iface=localhost:4304 --reading=/uncached/1D.30C60D000000

to the PYTHONPATH does return the DS2423 info. Where would I find this in the documentation?
Is there some way of reading the values in counter.B?

_What needs to be changed in weewx.conf and/or owfs.conf to make things happy?__
_
Thanks again.


Here is the section of *weewx.conf* that concerns itself with 1-Wire stuff and owfs.conf are below:

# Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    ###  station_type = Simulator
        station_type = OWFS

    # If you have a website, you may specify an URL
    #station_url = http://www.example.com

    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1

    # Start of week (0=Monday, 6=Sunday)
    week_start = 6


##############################################################################

####[Simulator]
    # This section is for the weewx weather station simulator

    # The time (in seconds) between LOOP packets.
####    loop_interval = 2.5

    # The simulator mode can be either 'simulator' or 'generator'.
    # Real-time simulator. Sleep between each LOOP packet.
####    mode = simulator
    # Generator.  Emit LOOP packets as fast as possible (useful for testing).
    #mode = generator

    # The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the default
    # is to use the present time.
    #start = 2011-01-01T00:00

    # The driver to use:
####    driver = weewx.drivers.simulator

# Options for extension 'owfs'
[OWFS]
    interface = localhost:4304
    driver = user.owfs
    [[sensor_type]]
        windSpeed = inspeed_windspeed
        windDir = inspeed_windvane
        rain = rainwise_bucket
    [[sensor_map]]
        outTemp = /uncached/28.D5A7C6000000/temperature
       # in outside cone
       outHumidity = /uncached/26.ADD891000000/humidity
     # in outside cone
      rain = /uncached/1D.30C60D000000
        windDir = /uncached/26.5C6EE7000000
        windSpeed = /uncached/1D.BCBF0D000000

###################

*Here is OWFS.conf:*

# Sample configuration file for the OWFS suite for Debian GNU/Linux.
#
#
# This is the main OWFS configuration file. You should read the
# owfs.conf(5) manual page in order to understand the options listed
# here.

######################## SOURCES ########################
#
# With this setup, any client (but owserver) uses owserver on the
# local machine...
###! server: server = localhost:4304
#
# ...and owserver uses the real hardware, by default fake devices
# This part must be changed on real installation
## server: FAKE = DS18S20,DS2405
#
#### USB device: DS9490
server: usb = all
#
# Serial port: DS9097
#server: device = /dev/ttyS1
#
# owserver tcp address
#server: server = 192.168.10.1:3131
#
# random simulated device
#server: FAKE = DS18S20,DS2405
#
######################### OWFS ##########################
#
#mountpoint = /mnt/1wire
#allow_other
#
####################### OWHTTPD #########################

###http: port = 2121

####################### OWFTPD ##########################

###ftp: port = 2120

####################### OWSERVER ########################

###server: port = localhost:4304

server: port = 4304



On 5/3/2020 9:28 PM, Glenn McKechnie wrote:
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!)


--
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/927b43e6-d2be-e764-e668-39bd6dfdc56e%40verizon.net.

Reply via email to