Glenn:
You have come to the rescue once again.
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
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.
My setup is weewx version 3.9.2 running with Python 2.7 on a Raspberry
Pi 4. I am using OWFS.
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. Then again, there are many
things that I do not understand. :)
Thanks for any suggestions and let me know if you need any further
information.
On 5/3/2020 6:16 PM, Glenn McKechnie wrote:
Assuming the rainwise bucket has a hobby-board counter, which uses the
DS2423 then the following will be your configuration...
[OWFS]
[[sensor_type]]
rain = rainwise_bucket
[[sensor_map]]
rain = /uncached/1D.30C60D000000
The counter.B is hardcoded in the driver so you don't need to add that part.
Is this the latest weewx, version 4.
Have you looked in syslog to see what is being reported?
The actual values from the sensors can be read directly using the
owfs.py driver script.
Are you using that script, and what is the interface ... usb, i2c-1
localhost ???
If the installation is working then something along the lines of
PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/owfs.py
--reading=/uncached/1D.81B500000000/Counter.B
should give a result. Pour water in and the counter.B value should increment
Adjust paths to suit. You may need to specify your interface as --iface==XXXX
If that doesn't return a result then more info will be needed, in
particular about your installation.
1. your setup
2. version of weewx
3. which script / driver are you using
4. the syslog output !
On 04/05/2020, michael form <[email protected]> wrote:
Through much help from this forum, I have gotten WEEWX generally working on
a Raspberry Pi 4. The only thing that does not seem to work is the input
from my Rainwise Tipping Bucket using a DS2423 1-wire counter. My question
is how should the device be listed in weewx.conf?
Should the sensor_map listing be: rain = /uncached/1D.30C60D000000,
or rain = /uncached/1D.30C60D000000/counters.B or something else?
Should the sensor_type be: rain = rainwise_bucket, or rain = delta or
something else?
Basically, the "Rain (Hourly Total) plot (always at zero), and the RAIN
TODAY and RAIN RATE on the summary are both zero (using the Seasons skin)
even though I have poured at least a hurricane's worth of water into the
bucket. I can hear the tipping mechanism working.
Thanks for any help on how to list the device or suggestions where I should
look.
--
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/b3e5aed9-7e7b-4e0c-acf1-bdb6f4dfdeb7%40googlegroups.com.
--
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/b8bf4231-b99e-697c-fea9-734735f41e3a%40verizon.net.