Thanks. That clarified things for me quite a bit. I need my report to
iterate over all years too. So my report will be lik NOAA-MM.txt.tmpl. No
year in file name.

I guess i can't put this under existing summaryByyear but need to create a
new ones?

On Sun, 14 Aug, 2022, 07:58 gjr80, <[email protected]> wrote:

> I don't know what you mean by "*requires both year and month to be
> supplied*". [[SummaryByMonth]] and [[SummaryByYear]] iterate over all
> available archive records in spans of one month and one year respectively
> and the respective template is generated against each span (which is why
> you end up with numerous generated files from each template). No 'year' or
> 'month' is supplied.
>
> If you only want a report generated at a specific time perhaps you should
> look at the Scheduling report generation
> <http://weewx.com/docs/customizing.htm#customizing_gen_time> section of
> the Customization Guide, in particular the report_timing option which
> allows for 'cron like' control over report generation. There is no reason I
> can think of why report_timing could not be used with a [[SummaryByXxxx]]
> report to give the multi-span reports like the NOAA summary reports but
> only generated/updated a specific times. Though I have not seen this
> approach used before.
>
> Gary
> On Sunday, 14 August 2022 at 12:04:30 UTC+10 [email protected] wrote:
>
>> The ones under summarybyyear or summaryby month requires both year and
>> month to be supplied I think. I want to supply only month and build
>> historical records for the month across years . I want this to be done only
>> at end of each month for current month or if files don't exist.
>>
>> On Sun, 14 Aug, 2022, 02:34 gjr80, <[email protected]> wrote:
>>
>>> The behaviour you describe is inherent in reports named
>>> [[SummaryByMonth]] and [[SummaryByYear]]  ([[SummaryByDay]] can be used
>>> as well). Any templates included under reports using these names (in any
>>> skin config file) will be generated in the same manner.
>>>
>>> Gary
>>>
>>> On Sunday, 14 August 2022 at 00:37:43 UTC+10 [email protected] wrote:
>>>
>>>>
>>>> The way the NOAA format reports are generated is the current month and
>>>> year reports are generated every report cycle, past months (and years)
>>>> reports are never generated (again) unless the report does not exist (ie
>>>> you deleted it) *and* there are no reports for the subsequent months
>>>> and years"
>>>>
>>>> Raking up an old thread. How is this done? I m looking to create some
>>>> reports and have same requirement that i want only current month report to
>>>> be generated. Others to be generated only if they don't exist already.
>>>> On Thursday, 8 February 2018 at 20:35:06 UTC+5:30 [email protected]
>>>> wrote:
>>>>
>>>>> FYI there are also three similar occurrences in the yearly NOAA
>>>>> template ....
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> n Thursday, 8 February 2018 16:42:34 UTC+2, Tom Keffer wrote:
>>>>>
>>>>>> I'll have a closer look at that template, I would have thought there may 
>>>>>> have been a more robust way to achieve the same ends.
>>>>>>>
>>>>>>>
>>>>>> ​Good sleuthing!
>>>>>>
>>>>>> Don't know why I chose 'barometer', because there is indeed a better
>>>>>> way: do the check on dateTime, which is required for every record. So, it
>>>>>> becomes:
>>>>>>
>>>>>> #if $day.dateTime.count.raw
>>>>>> ...
>>>>>> #end if
>>>>>>
>>>>>>
>>>>>> Thanks for finding this, Gary
>>>>>>
>>>>>> -tk
>>>>>>
>>>>>> ​
>>>>>>
>>>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "weewx-user" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/weewx-user/pN6KA5_N2S0/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/abe67f2a-ed15-4f32-b501-63fd440853a4n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/abe67f2a-ed15-4f32-b501-63fd440853a4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/pN6KA5_N2S0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/1fcb2f71-63bf-429a-aae5-d10f14d7592an%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/1fcb2f71-63bf-429a-aae5-d10f14d7592an%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/CA%2BW%3DTmX%3DTKZRcb4BbK-PZ80LfEofP0UbOEwWzELr-drAybGCbA%40mail.gmail.com.

Reply via email to