Good morning all,
After an extended hiatus I am very happy to have a working and recording weather station again. Unable to contain myself I am now tinkering with skins, extensions and data on
https://davies-barnard.co.uk/
Anyway, my install of Weewx seems to be making repeated calls to the extension I'm playing around with. Its quite computational so I want it to run only when required to stay up to date.
skin.conf
search_list_extensions = user.xstats.ExtendedStatistics, user.celestialPatterns.CelestialPatterns
[[ToDate]]
...
[[[celestialpatterns]]]
template = celestialPatterns.html.tmpl
My Extension
def get_extension_list(self, timespan, db_lookup):
print("Extension Called")
#Get the seasons
seasons = self.getSeasons()
#Get all the sun/moon rises and sets for 12 months.
allRiseAndSet = self.getRiseAndSet()
...
def getSeasons(self):
print ("calling getSeasons")
....
def getRiseAndSet(self):
print("Calling getRiseAndSet")
...
Is outputing:
daviesc@pecan-ubuntu:/home/weewx$ sudo ./bin/wee_reports weewx.conf
Using configuration file weewx.conf
Generating for all time
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
Extension Called
calling getSeasons
Calling getRiseAndSet
daviesc@pecan-ubuntu:/home/weewx$
I can see this could align with the number of entries under CheetahGenerator but it seems excessive or is it by design? If someone could enlighten me I would be very grateful.
Thanks again.
Chris