Really good to hear of another success! I've just bumped mine to weewx v4.1.0 and that's also working like a charm.
I know the feeling with the heavy rain. Thankfully it's only ever been phantom downfalls and therefore easily fixed. On 28/05/2020, Neville Davis <nevilledavis1...@gmail.com> wrote: > Glenn > > Success my system is fully operational with python 3.7 weewx v4.0.0 with > 1Wire rain, and my i2C sensor system, with ow-server and pyownet. > > For your information Glenn I am using your OWFS-dallas.py downloaded > yesterday.....after my silly mistake we are lo longer under several meters > > of water falling in one loop cycle :) > > Now I just need to get my old skins working under python3...... > > regards > > Neville > > On Wednesday, May 27, 2020 at 8:15:07 PM UTC+10, Neville Davis wrote: >> >> Thanks very much Glen I will do the mods in the morning. >> I had specified a sensor type in my old system...but just forgot.. >> >> Neville >> >> On Wednesday, May 27, 2020 at 5:31:30 PM UTC+10, Glenn McKechnie wrote: >>> >>> Hi Neville, >>> >>> Within the [OWFS] section of weewx you need to specify a [[sensor_type]] >>> >>> >>> Firstly, you are correct with the count incrementing when the bucket >>> tips but you need to turn that into a time based value >>> A rain value is evaluated as the difference between the current count >>> and the last count for the time it was taken. >>> This is where the sensor_type comes into it. >>> >>> owfs.py provides the function rainwise_bucket that assumes there is >>> 0.1 " per tip ( 0.0254cm ) of the tipping bucket. By comparing the >>> current count with the last reading (count) taken, and knowing the >>> times involved it returns the measurement in cm. >>> >>> So, to enable that function you need to specify the following after >>> your [sensor_map] section >>> >>> [[sensor_type]] >>> rain = rainwise_bucket >>> >>> Once that's done you'll find the maths is taken care of and tipping >>> water into the bucket will register a meaningful volume / measure. >>> If it's not 0.01" per tip you can adjust that value by using the >>> [StdCalibrate][[Corrections]] section of weewx.conf >>> >>> Incidentally. You have owfs.py configured as a Driver and as a >>> Service. I'm thinking you only want the Service side of it, that way >>> it supplements your main stations data. >>> >>> If that assumption is correct, remove the "driver = user.owfs " line >>> from the [OWFS] section. Leave the [Engine][[Services]] data_services >>> = user.owfs.OWFSService as it is >>> >>> >>> >>> >>> On 27/05/2020, Neville Davis <nevilled...@gmail.com> wrote: >>> > Glen >>> > >>> > My solution is proving to be beyond my capabilities to get to be >>> correct, >>> > while I can get the data I have run into several issues that just makes >>> > >>> it >>> > too messy. >>> > After reading this and looking at your far more elegant solutions I >>> have >>> > installed and it is has several problems. >>> > First I run with loop and the print out below shows that I have an >>> enormous >>> > >>> > amount of rain...and the quality control kicks in and prevents any >>> further >>> > stuff up. >>> > I then ran without loop and the system crashed. >>> > when I query using owget I get the current count value in the sensor >>> > (counter.b) as 16570. This has been operational for a few years. This >>> count >>> > >>> > does increment with bucket tips. >>> > My system is home grown i2C (BMP085, qty two SHT31-D, si1145) on range >>> > >>> > extenders, with Davis wind direction and speed sensors. >>> > The following from the log >>> > Any suggestions appreciated >>> > I am defaulted to python3 and weewx v4 on latest debian on Pi3 >>> > >>> > Regards >>> > >>> > Neville >>> > >>> > May 27 15:14:08 raspberrypi weewx[5106] INFO __main__: Initializing >>> weewx >>> > version 4.0.0 >>> > >>> > May 27 15:14:08 raspberrypi weewx[5106] INFO __main__: Using Python >>> 3.7.3 >>> > (default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0] >>> > >>> > May 27 15:14:08 raspberrypi weewx[5106] INFO __main__: Platform >>> > Linux-4.19.97-v7+-armv7l-with-debian-10.4 >>> > >>> > May 27 15:14:08 raspberrypi weewx[5106] INFO __main__: Locale is >>> > 'en_US.UTF-8' >>> > >>> > May 27 15:14:08 raspberrypi weewx[5106] INFO __main__: PID file is >>> > /var/run/weewx.pid >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO __main__: Using >>> configuration >>> > file /home/weewx/weewx.conf >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: Loading >>> station >>> > type PiWeather (user.piweather) >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: service version >>> > >>> is >>> > 0.23.6 (pyownet) >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: binding is >>> archive >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: interface is >>> > localhost:4304 >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: sensor map is >>> > {'rain': '/uncached/1D.E3AB0D000000/counter.b'} >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: sensor type map >>> > >>> is >>> > {} >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: dallas >>> direction >>> > map is {} >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO user.owfs: sensor unit >>> system >>> > is metric >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: StdConvert >>> > target unit is 0x1 >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.wxservices: The >>> > following values will be calculated: pressure=prefer_hardware, >>> > altimeter=prefer_hardware, appTemp=prefer_hardware, >>> > barometer=prefer_hardware, beaufort=prefer_hardware, >>> > cloudbase=prefer_hardware, dewpoint=prefer_hardware, >>> ET=prefer_hardware, >>> > heatindex=prefer_hardware, humidex=prefer_hardware, >>> > inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, >>> > rainRate=prefer_hardware, windchill=prefer_hardware, >>> > windrun=prefer_hardware >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.wxservices: The >>> > following algorithms will be used for calculations: altimeter=aaASOS, >>> > maxSolarRad=RS >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: Archive will >>> > >>> use >>> > >>> > data binding wx_binding >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: Record >>> > generation will be attempted in 'hardware' >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: Using >>> archive >>> > interval of 300 seconds (specified in weewx configuration) >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.restx: >>> StationRegistry: >>> > Registration not requested. >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.restx: Wunderground: >>> > >>> > Posting not enabled. >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.restx: PWSweather: >>> > Posting not enabled. >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.restx: CWOP: Posting >>> > >>> not >>> > >>> > enabled. >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.restx: WOW: Posting >>> > >>> not >>> > enabled. >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.restx: AWEKAS: >>> Posting >>> > not enabled. >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO __main__: Starting up >>> weewx >>> > version 4.0.0 >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: Using >>> binding >>> > 'wx_binding' to database 'weewx_new' >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.manager: Starting >>> > backfill of daily summaries >>> > >>> > May 27 15:14:08 raspberrypi weewx[5110] INFO weewx.engine: Starting >>> main >>> > packet loop. >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] INFO weewx.engine: Main loop >>> > exiting. Shutting engine down. >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: Caught >>> > unrecoverable exception: >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > loginf() takes 1 positional argument but 2 were given >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > Traceback (most recent call last): >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 195, in run >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet)) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > callback(event) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 578, in check_loop >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > raise BreakLoop >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > weewx.engine.BreakLoop >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> During >>> > >>> > handling of the above exception, another exception occurred: >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > Traceback (most recent call last): >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 594, in post_loop >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > self._catchup(self.engine.console.genArchiveRecords) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 638, in _catchup >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > for record in generator(lastgood_ts): >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/drivers/__init__.py", line 30, in >>> genArchiveRecords >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > raise NotImplementedError("Method 'genArchiveRecords' not implemented") >>> > >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > NotImplementedError: Method 'genArchiveRecords' not implemented >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> During >>> > >>> > handling of the above exception, another exception occurred: >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > Traceback (most recent call last): >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewxd", line 154, in main >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > engine.run() >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 202, in run >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > self.dispatchEvent(weewx.Event(weewx.POST_LOOP)) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > callback(event) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 596, in post_loop >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > self._software_catchup() >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 658, in _software_catchup >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > origin='software')) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > callback(event) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> File >>> > >>> > "/home/weewx/bin/user/owfs.py", line 916, in handle_new_archive >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > loginf("-----data = %s", data) >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > TypeError: loginf() takes 1 positional argument but 2 were given >>> > >>> > May 27 15:15:16 raspberrypi weewx[5110] CRITICAL __main__: **** >>> > Exiting. >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > with loop enabled >>> > >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO __main__: Using >>> configuration >>> > file /home/weewx/weewx.conf >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO weewx.engine: Loading >>> station >>> > type PiWeather (user.piweather) >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: service version >>> > >>> is >>> > 0.23.6 (pyownet) >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: binding is loop >>> > >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: interface is >>> > localhost:4304 >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: sensor map is >>> > {'rain': '/uncached/1D.E3AB0D000000/counter.b'} >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: sensor type map >>> > >>> is >>> > {} >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: dallas >>> direction >>> > map is {} >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO user.owfs: sensor unit >>> system >>> > is metric >>> > >>> > May 27 15:20:13 raspberrypi weewx[5261] INFO weewx.engine: StdConvert >>> > target unit is 0x1 >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.wxservices: The >>> > following values will be calculated: pressure=prefer_hardware, >>> > altimeter=prefer_hardware, appTemp=prefer_hardware, >>> > barometer=prefer_hardware, beaufort=prefer_hardware, >>> > cloudbase=prefer_hardware, dewpoint=prefer_hardware, >>> ET=prefer_hardware, >>> > heatindex=prefer_hardware, humidex=prefer_hardware, >>> > inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, >>> > rainRate=prefer_hardware, windchill=prefer_hardware, >>> > windrun=prefer_hardware >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.wxservices: The >>> > following algorithms will be used for calculations: altimeter=aaASOS, >>> > maxSolarRad=RS >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.engine: Archive will >>> > >>> use >>> > >>> > data binding wx_binding >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.engine: Record >>> > generation will be attempted in 'hardware' >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.engine: Using >>> archive >>> > interval of 300 seconds (specified in weewx configuration) >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.restx: >>> StationRegistry: >>> > Registration not requested. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.restx: Wunderground: >>> > >>> > Posting not enabled. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.restx: PWSweather: >>> > Posting not enabled. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.restx: CWOP: Posting >>> > >>> not >>> > >>> > enabled. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.restx: WOW: Posting >>> > >>> not >>> > enabled. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.restx: AWEKAS: >>> Posting >>> > not enabled. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO __main__: Starting up >>> weewx >>> > version 4.0.0 >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.engine: Using >>> binding >>> > 'wx_binding' to database 'weewx_new' >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.manager: Starting >>> > backfill of daily summaries >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] INFO weewx.engine: Starting >>> main >>> > packet loop. >>> > >>> > May 27 15:20:14 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:13 AEST (1590556813) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:16 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:16 AEST (1590556816) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:19 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:18 AEST (1590556818) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:21 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:21 AEST (1590556821) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:24 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:23 AEST (1590556823) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:26 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:26 AEST (1590556826) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:29 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:28 AEST (1590556828) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:31 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:31 AEST (1590556831) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:34 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:33 AEST (1590556833) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:36 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:36 AEST (1590556836) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:39 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:38 AEST (1590556838) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:41 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:41 AEST (1590556841) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:44 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:43 AEST (1590556843) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:46 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:46 AEST (1590556846) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:49 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:48 AEST (1590556848) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:51 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:51 AEST (1590556851) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:54 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:53 AEST (1590556853) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:56 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:56 AEST (1590556856) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:20:59 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:20:58 AEST (1590556858) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:21:01 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:21:01 AEST (1590556861) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:21:04 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:21:03 AEST (1590556863) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:21:06 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:21:06 AEST (1590556866) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:21:09 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:21:08 AEST (1590556868) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:21:11 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:21:11 AEST (1590556871) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > May 27 15:21:14 raspberrypi weewx[5261] WARNING weewx.qc: 2020-05-27 >>> > 15:21:13 AEST (1590556873) LOOP value 'rain' 6529.921259842519 outside >>> > >>> > limits (0.0, 10.0) >>> > >>> > # This section configures the internal weewx engine. >>> > >>> > >>> > [Engine] >>> > >>> > >>> > [[Services]] >>> > >>> > # This section specifies the services that should be run. They >>> > >>> are >>> > >>> > # grouped by type, and the order of services within each group >>> > >>> > >>> > # determines the order in which the services will be run. >>> > >>> > prep_services = weewx.engine.StdTimeSynch >>> > >>> > data_services = user.owfs.OWFSService >>> > >>> > process_services = weewx.engine.StdConvert, >>> > weewx.engine.StdCalibrate, weewx.engine.StdQC, >>> > weewx.wxservices.StdWXCalculate >>> > >>> > archive_services = weewx.engine.StdArchive >>> > >>> > restful_services = weewx.restx.StdStationRegistry, >>> > weewx.restx.StdWunderground, weewx.restx.StdPWSweather, >>> > weewx.restx.StdCWOP, weewx.restx.StdWOW,$ >>> > >>> > report_services = weewx.engine.StdPrint, weewx.engine.StdReport >>> > >>> > >>> > >>> > >>> > >>> ############################################################################# >>> >>> >>> > >>> > >>> > [PiWeather] >>> > >>> > loop_interval = 2.5 >>> > >>> > driver = user.piweather >>> > >>> > >>> > >>> ############################################################################# >>> >>> >>> > >>> > >>> > >>> > >>> ############################################################################# >>> >>> >>> > >>> > >>> > # Options for extension 'owfs' >>> > >>> > [OWFS] >>> > >>> > #interface = u >>> > >>> > interface = localhost:4304 >>> > >>> > binding = loop >>> > >>> > driver = user.owfs >>> > >>> > [[sensor_map]] >>> > >>> > rain = /uncached/1D.E3AB0D000000/counter.b >>> > >>> > #rain = /1D.E3AB0D000000/counter.b >>> > >>> > >>> > >>> > *pi@raspberrypi*:*/home/sensorreadings $* python owget.py >>> > /1D.E3AB0D000000/counter.b >>> > >>> > 16586 >>> > >>> > *pi@raspberrypi*:*/home/sensorreadings $* >>> > >>> > >>> > On Wednesday, May 27, 2020 at 9:36:31 AM UTC+10, Glenn McKechnie wrote: >>> > >>> >> >>> >> Thanks Neville, >>> >> >>> >> That's interesting and certainly of note. It may be just what we are >>> >> looking for. >>> >> >>> >> Stefano Miccoli is the author of pyownet so we are doubly on topic! >>> >> >>> >> The original post is at... >>> >> https://sourceforge.net/p/owfs/mailman/message/36765345/ >>> >> and part of a much longer thread... >>> >> >>> https://sourceforge.net/p/owfs/mailman/owfs-developers/?viewmonth=201909 >>> >>> >> >>> >> To me, the take away is to create the override file as follows... >>> >> >>> >> "/etc/systemd/system/owserver.service.d/override.conf is an override >>> >> file, that you create with" >>> >> sudo systemctl edit owserver.service >>> >> >>> >> and include the following content... >>> >> >>> >> # /etc/systemd/system/owserver.service.d/override.conf >>> >> [Service] >>> >> User=Debian-ow >>> >> Group=Debian-ow >>> >> ExecStart= >>> >> ExecStart=/usr/bin/owserver -c /etc/owfs.conf --foreground >>> >> >>> >> [Install] >>> >> Also= >>> >> >>> >> For context, read the full post at the above link. >>> >> >>> >> I'll add... >>> >> We will continue to run owserver as root (skipping his point #1) and >>> >> will perform points #2 and #3 by creating the file as he has outlined >>> >> >>> >> above. >>> >> >>> >> I'll add the above to the install notes, and wiki when I get a moment. >>> >> >>> >> >>> >> >>> >> >>> >> On 27/05/2020, Neville Davis <nevilled...@gmail.com <javascript:>> >>> wrote: >>> >> >>> >> > Guys I too have been following, I am now running pythonv3 weewxv4 >>> with >>> >> > 1wire rain, my solution is different and messy but seems to work for >>> >> > >>> me, >>> >> > >>> >> > But while trying to sort out my problem found a report about >>> problems >>> >> with >>> >> > owserver on Pi using buster....github miccoli in the config file >>> edit >>> >> > owserver.service ExecStart=/user/bin/owserver -c /etc/OWFS,conf >>> >> > —foreground, Apparently on the OWFS developer mailing list this is >>> >> > discussed. My system is working without the foreground option >>> apparently >>> >> > >>> >> > the problem is intermittent. >>> >> > Don’t know if this is related to your problem though >>> >> > >>> >> > On Tuesday, May 26, 2020 at 9:16:24 PM UTC+10, Glenn McKechnie >>> wrote: >>> >> >> >>> >> >> On 26/05/2020, Messy Potamia <messyp...@gmail.com <javascript:>> >>> >> wrote: >>> >> >> > >>> >> >> > *I'm following this because one of my weewx stations rely heavily >>> >> >> > >>> on >>> >> >> > >>> >> OW >>> >> >> > >>> >> >> > sensors to augment the data from my Davis Vantage pro2. * >>> >> >> > *I'd upgrade to weewx 4.x but really can't lose owfs >>> operability*. >>> >> >> > Thx/mp >>> >> >> >>> >> >> By weewx4 I assume you mean python3 and weewx4? >>> >> >> >>> >> >> What are the sensors? Just temperature or...? >>> >> >> >>> >> >> >>> >> >> You shouldn't lose anything. The driver does work with weewx4 and >>> >> python3 >>> >> >> >>> >> >> I have it running with 4.0.b18 which was the last version? before >>> the >>> >> >> final release of weewx4. >>> >> >> If you know your sensor_map and sensor_type then you are halfway >>> >> >> there. Nothings changed in that respect. >>> >> >> >>> >> >> The biggest hurdle seems to be getting owserver to behave. You >>> could >>> >> >> try installing that now and when it runs okay then you'll be set. >>> >> >> There may be an interruption if your existing owfs.py (with >>> python-ow >>> >> >> I assume) and owserver both point to the busmaster device and >>> attempt >>> >> >> a query at the same time (Gaz's was /dev/i2c-1, mine is the USB >>> >> >> dongle). It may just simply block on access, or segfault but a >>> restart >>> >> >> >>> >> >> of either service will fix that, nothing should break. >>> >> >> When it comes to restarting services (keeping in mind that I use >>> SysV >>> >> >> eg: /etc/init.d/weewx) I no longer use restart. I actually stop >>> them >>> >> >> first (regardless of their state) then start them. I have more >>> success >>> >> >> >>> >> >> that way, probably gives them a chance to regain state. >>> >> >> >>> >> >> If you do much the same as Gaz but stick with python2.7 then you >>> can >>> >> >> test it all before making the big shift to weewx4 running under >>> >> >> python3 >>> >> >> >>> >> >> -- >>> >> >> >>> >> >> >>> >> >> 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 weewx...@googlegroups.com <javascript:>. >>> >> > To view this discussion on the web visit >>> >> > >>> >> >>> https://groups.google.com/d/msgid/weewx-user/414b4af4-9539-4110-8000-207fe8ff5814%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 weewx...@googlegroups.com. >>> > To view this discussion on the web visit >>> > >>> https://groups.google.com/d/msgid/weewx-user/e413a708-30a9-4433-a88e-d56a029cc21b%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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/d09bc866-7f1a-4d7b-910d-5175bc4afb1e%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAAraAzgHfPvSb0wJ3ts8SV5WQVJ8PunTSbLo3GLd6KanvyVgKw%40mail.gmail.com.