That was indeed it. I added yet another tweak to the user/extensions.py
here.

weewx.accum.extract_dict['hail'] = weewx.accum.Accum.sum_extract
weewx.accum.extract_dict['hailRate'] = weewx.accum.Accum.sum_extract

donned the trusty headlamp, and went and tipped the buckets...

Viola, the last two lines show the results I'm after...
+------------+-------+------------------+--------------------+------------------+-------------+
| datetime   | rain  | rainRate         | hail               |
hailRate         | heatingTemp |
+------------+-------+------------------+--------------------+------------------+-------------+
| 1490858640 |     0 |                0 | 0.0423333333333333 |
NULL |       0.508 |
| 1490858700 |     0 |            2.032 | 0.0423333333333333 |
NULL |       0.508 |
| 1490873340 |     0 |                0 |              0.508 |
0.50799999896368 |        NULL |
| 1490873400 |     0 |                0 |              1.016 |
1.01599999792736 |        NULL |

Yes, everything is in software as it's 100% 1-wire. I'm not yet running a
3.7.x  still on 3.6.2
I'm in the process of switching to 3.7.x so I'll keep your notes handy as I
understand that the extensions.py method is likely to break at some stage,
or at least has been replaced by what you've outlined.

Thanks for the confirmation, and the notes for 3.7

Regarding the report_timing. It's a monkey see, monkey do approach at this
keyboard :-)  Worked examples first, rather than notes are the preferred
method.
As I recall I found the 'Class ReportTiming' in reportengine.py first and
followed through from there. It's more than likely I visited the doc's link
you've given, but I can't say that I remember finding them as complete as
that at the time? If it was I yield and can only plead RTFM blindness.
It has the worked example as well as a good explanation of each field, it
would have done the job nicely!  It's definitely not too lengthy either.

I'm sorted now. Thanks for your help.



Cheers
 Glenn

rorpi - read only raspberry pi + weewx: now with scripts
<https://github.com/glennmckechnie/rorpi-raspberrypi>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to