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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c323ce23-ff42-42fe-988c-14df56e7deb6%40googlegroups.com.