Just wanted to confirm for any reading this later, After fixing my sensor issues, this change did exactly what I needed to do, and I am now seeing SUM values instead of average in the archive packets.
Thanks again, On Sunday, September 1, 2019 at 5:27:27 PM UTC-6, Thomas Carlin wrote: > > I think you may be correct... It looks like only half or so of the data > was actually pulling from the sensors. I'll have to figure that issue out, > but it doesn't look like the problem was in the config changes we made. > > Thanks again Tom! > > On Sunday, September 1, 2019 at 5:04:24 PM UTC-6, Thomas Keffer wrote: >> >> Hmmm. >> >> If you run weewxd directly from the console command line, what values do >> you see go by on the console? >> >> On Sun, Sep 1, 2019 at 3:18 PM Thomas Carlin <[email protected]> wrote: >> >>> Thanks Tom, >>> >>> Thanks for the fast response! I created the section that you said in >>> weewx.conf, see below, and now I don't get any data in the archive table, >>> also included below, with previous AVG values for comparison sake. >>> Suggestions? >>> >>> [Accumulator] >>> [[kwh]] >>> extractor = sum >>> [[IrrigationFlow]] >>> extractor = sum >>> sqlite> select datetime, kwh, IrrigationFlow from archive where datetime >>> >=1567374900; >>> dateTime|kwh|IrrigationFlow >>> 1567374900|0.009349|0.0 >>> 1567375200|0.0100596551724138|0.0 >>> 1567375800|| >>> 1567376100|| >>> sqlite> >>> >>> >>> ? >>> >>> >>> >>> On Sunday, September 1, 2019 at 3:20:00 PM UTC-6, Thomas Carlin wrote: >>>> >>>> Good afternoon, I hope everyone is enjoying their labor day weekend! >>>> >>>> I have a custom data source that I wrote a driver for, and have >>>> recently changed it from pulling data when the archive packet is created, >>>> to when the loop packet is received. This is working well, and everything >>>> is pulling correctly, but now I have an issue with the creation of the >>>> archive packet. Previously, the device that I received the data from >>>> performed the aggregation, but now it is producing much more frequent >>>> information, and the driver/weewx service needs to handle the aggregation. >>>> >>>> >>>> Several of my data sources are similar to 'rain' where I want to count >>>> the total of something used or collected, and it looks like the archive >>>> packet is created using the average. Based on the documentation, I need >>>> to >>>> implement genArchiveRecords() for these to specify how the data is >>>> aggregated, but I can't find any example code of how this is done. Could >>>> you please point me in the correct direction for modifying this, or to a >>>> driver with some example code that I can modify for my needs? >>>> >>>> If this is more fitting for the development group, please move it there. >>>> >>>> Many thanks, >>>> >>>> Thomas >>>> >>> -- >>> 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/c323ce23-ff42-42fe-988c-14df56e7deb6%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/c323ce23-ff42-42fe-988c-14df56e7deb6%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/d015522c-5f7e-4742-8b24-f307adfe7796%40googlegroups.com.
