OK, I've added this feature in commit 18fcdb6
<https://github.com/weewx/weewx/commit/18fcdb6a56e0882dadf82de7ac413d89348fff16>
.

The generation by day follows the same pattern as by month and year. That
is, in skin.conf under section [CheetahGenerator], you want something like:

    [[SummaryByDay]]
        # Reports that summarize "by day"
        [[[NOAA_day]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY-MM-DD.txt.tmpl

Then put a template in file NOAA/NOAA-YYYY-MM-DD.txt.tmpl which is used as
the template for the day. For example, it might look something like

       SUMMARY FOR DAY $day.dateTime

#for $record in $day.records
$record.dateTime $record.outTemp $record.outHumidity
#end for

Note that this can generate *lots* of files --- one for every day in the
database. I'm not sure if this is what you had in mind.

I've left this feature undocumented for now, until we have a better feel
for whether this is the right way to approach this.

-tk

On Mon, Nov 28, 2016 at 7:00 AM, Thomas Keffer <[email protected]> wrote:

> Unfortunately, the cheetah generator offers summary by year and by month,
> but not by day. I've posted issue #185
> <https://github.com/weewx/weewx/issues/185> to remind myself to look at
> this.
>
> -tk
>
> On Sun, Nov 27, 2016 at 6:40 PM, Louis De Lange <[email protected]>
> wrote:
>
>> Tom,
>>
>> Thanks for this - it works great.
>>
>> I have one problem though - I have to generate a file with the current
>> day's date, but inserting the template DDMMYYY.csv.tmpl under the
>> [[ToDate]] [[[day]]] part of the skin.conf file ignores the DD portion of
>> the file name generation.  Based on the configuration guide this is
>> expected behavior.
>>
>> Louis
>>
>
>

Reply via email to