FaT Fingers striKes again. I've made a few changes to the owfs entry. Have a look at it and see if it fills enough of the gaps.
https://github.com/weewx/weewx/wiki/owfs I have a markdown error in it. Need to escape [ so that it (all of them) display correctly (rather than as a link) On 04/05/2020, michael form <[email protected]> wrote: > Thanks. owserver is indeed running. > > Evidently, the "Counter.B" needs to have a lower case c, "counter.B" for it > > to work. At least for me. > > It indeed returns a value and tomorrow I will pour more water into the > tipping bucket and see if the counter increments. If it does, then I will > have to see if the "rain" is posted correctly in weewx. > I am pessimistic about success since with everything as it currently is, > "rain" never changed with the addition of water. Of course, the problem may > > lie in the operation of the tipping bucket itself, but tomorrow > will tell the tale on what is going on. > > On Sunday, May 3, 2020 at 11:51:35 PM UTC-4, Glenn McKechnie wrote: >> >> Argh! >> Bugger. >> >> PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/owfs.py >> --iface=localhost:4304 --reading=/uncached/1D.81B500000000/Counter.B >> >> owfs.py defaults to the usb adaptor. You need to specify the iface if >> using something else >> >> On 04/05/2020, Glenn McKechnie <[email protected] <javascript:>> >> wrote: >> > Michael Form wrote: >> >> 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. >> > >> > The owfs.py can run as a driver (full 1-wire network) >> > >> > It can also run as a service. >> > This is where you have another station type that will be the main driver >> > >> > entry, you augment the values returned from that weather station with a >> > >> > couple of 1-wire sensors that are being read by owfs.py that runs as a >> > service. >> > >> > You are running a full 1-wire setup. Your config is correct. >> > >> > owfs.py can iface (interface) with a serial port, usb port, i2c-1 device >> > >> > Yours is a the usb port BUT, it's accessed through owserver so >> > weewx.conf needs the localhost:4304 entry to tell it that. >> > >> > >> >> Adding >> >> >> >> --iface=localhost:4304 --reading=/uncached/1D.30C60D000000 >> >> >> >> to the PYTHONPATH does return the DS2423 info. Where would I find this >> >> >> in >> >> the documentation? >> > >> > It's in the source of owfs.py >> > Probably needs adding to the / a wiki entry. >> > >> >> Is there some way of reading the values in counter.B? >> > >> > Along the way the counters.B got dropped. Ooops! >> > To get the reading for that location add it to the path as per the >> > following. >> > >> > PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/owfs.py >> > --reading=/uncached/1D.81B500000000/Counter.B >> > >> > >> >> >> >> _What needs to be changed in weewx.conf and/or owfs.conf to make things >> >> >> >> happy?__ >> > >> > That appears to be nothing (see below). Providing the owserver is >> > running. >> > >> > /etc/init.d/owserver status >> > >> > if systemd isn't in charge, that should return "owserver is running." >> > >> > If systemd is in charge it will give you more info, of which "active >> > (running)" should be in there. >> > >> > If there are no errors in the log, or your other sensors are working >> > fine. Then it is running. >> > >> > >> > _ >> >> 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 >> > >> > No other drivers so this is correct. >> > >> > [...] >> >> # Options for extension 'owfs' >> >> [OWFS] >> >> interface = localhost:4304 >> > >> > This means we access the usb device via the owserver (which listens on >> > 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 >> >> >> >> ################### >> > [...] >> > >> >> server: usb = all >> > >> > Correct, and confirms that access to the DS9490R will be made via the >> > owserver >> > >> > [...] >> >> ####################### OWSERVER ######################## >> >> >> >> ###server: port = localhost:4304 >> >> >> >> server: port = 4304 >> > >> > also correct >> > >> > weewx will contact the owserver which will access the usb adaptor. >> > All communication will be via the owserver. >> > >> > -- >> > >> > Cheers >> > Glenn >> > >> > rorpi - read only raspberry pi & various weewx addons >> > https://github.com/glennmckechnie >> > >> > >> >> >> -- >> >> >> 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/1be9ca5f-c591-4ca3-8b5a-002564a35eaa%40googlegroups.com. > -- 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/CAAraAzjxXOhgCf-zWQTzq3NqOZzCpwP7hnHz614aENNDmRBtyQ%40mail.gmail.com.
