Yes that is what I was talking about. I want to generate an html file just 
like weewx does normally. I have added the file to the skin.conf 
[CheetahGenerator]
    ...
    [[ToDate]]
        # Reports that show statistics "to date", such as day-to-date,
        # week-to-date, month-to-date, etc.
        [[[day]]]
#            template = index.html.tmpl
            template = index.php.tmpl

        # NEW BLP 2017-01-23 -- 
        [[[DailyStats]]]
            template = daily-stats.php.tmpl
        ...

Does that look correct?

Also your example didn't have a dollar sign in from of the 'record' is the 
'$' necessary?
Also you said V3.7 and I have V3.6.2. Do I need to upgrade?

On Monday, January 23, 2017 at 2:24:54 PM UTC-8, Tom Keffer wrote:
>
> I'm not sure quite what you mean "via the web," but assuming what you mean 
> is you want to generate an HTML file, V3.7 will allow you to have direct 
> access to individual records. For example, to create a table with the time 
> and temperature of each record since midnight:
>
> <table>
> #for record in $day.records
>   <tr>
>     <td>$record.dateTime</td>
>     <td>$record.outTemp</td>
>   </tr>
> #end for
> </table>
>
> Is this what you had in mind?
>
> -tk
>
> On Mon, Jan 23, 2017 at 1:02 PM, Barton Phillips <[email protected] 
> <javascript:>> wrote:
>
>> I am just getting into python and want to write a extension to weewx that 
>> displays the archive data for the day via the web. I have looked at the 
>> cheetahgenerator but it is a little too convoluted to figure out. I looked 
>> at the NOAA templates and it looks like I should be able to do a #for ... 
>> to get the data. I just need to know what the properties are that I need to 
>> use.
>>
>> By the way, why do so many of the python links end up with a 404. It 
>> seems like every time look at a tutorial and click on a link it is DEAD.
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to