Frequency of image generation

53 views
Skip to first unread message

bell...@gmail.com

unread,
Jul 30, 2021, 10:19:40 AM7/30/21
to weewx-user
I think  I read somewhere that the frequency that images are generated is influenced by the aggregate_interval setting, but I can't seem to find the information anywhere.
If someone could point me to it, it would be greatly appreciated.
rich

vince

unread,
Jul 30, 2021, 12:10:22 PM7/30/21
to weewx-user
A quick google pointed me to https://www.weewx.com/docs/customizing.htm which has some examples along those lines.

In the code it seems to be in imagegenerator.py and xtypes.py
 

Karen K

unread,
Jul 30, 2021, 2:51:09 PM7/30/21
to weewx-user
I am not sure if it is described in the customization guide.

In imagegenerator.py the function skipThisPlot() decides based on timestamp, aggregation interval, and file existence:
  • If the image file does not exist, the file is created.
  • If there is no aggregation, the file is created every archive interval.
  • If the timestamp is after the file creation time + aggregation interval, the file is created. 
  • If the timestamp is on an aggregation boundary (that is the whole hour for an hour interval or midnight for a day interval etc.), the file is created.
  • Otherwise it is not created.


bell...@gmail.com

unread,
Jul 30, 2021, 7:13:54 PM7/30/21
to weewx-user
Thank! At this point I am pretty sure it isn't in any docs or wiki pages.  I was just about to 'crack open' the code.  This will save me the trouble of that.
rich

Reply all
Reply to author
Forward
0 new messages