Re: [weewx-user] Write a program to display the days data

2017-01-24 Thread gjr80
So you didn't clone the development branch? Iterating over $day.records is not available until the yet to be released version 3.7.0. The only way to access it now is to clone and install from the development branch. Gary -- You received this message because you are subscribed to the Google

Re: [weewx-user] Write a program to display the days data

2017-01-23 Thread Barton Phillips
Your first suggestion using the for loop. For now I will just do it the old fashion way and read directly from the database and to hell with Cheetah and python. I will use PHP where there is good documentation and all of the links work. On Monday, January 23, 2017 at 6:36:00 PM UTC-8, Tom

Re: [weewx-user] Write a program to display the days data

2017-01-23 Thread Thomas Keffer
Which suggestion? To use the code from the development branch? -tk On Mon, Jan 23, 2017 at 6:34 PM, Barton Phillips wrote: > I tried your suggestion but it does not work. Is there no way to get an > iterable object and get the fields (like outTemp) from it? I would

Re: [weewx-user] Write a program to display the days data

2017-01-23 Thread Barton Phillips
I tried your suggestion but it does not work. Is there no way to get an iterable object and get the fields (like outTemp) from it? I would have thought that such a thing would be something that someone has done. On Monday, January 23, 2017 at 4:16:04 PM UTC-8, Tom Keffer wrote: > > V3.7 is not

Re: [weewx-user] Write a program to display the days data

2017-01-23 Thread Thomas Keffer
V3.7 is not out yet. No estimates when, but we're working on it. If you're the adventurous type, you can try cloning the 'development ' branch and give it a try, but there will be minimal (that is to say, no) support for it. -tk On Mon, Jan 23,

Re: [weewx-user] Write a program to display the days data

2017-01-23 Thread Barton Phillips
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.

Re: [weewx-user] Write a program to display the days data

2017-01-23 Thread Thomas Keffer
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: #for record in

[weewx-user] Write a program to display the days data

2017-01-23 Thread Barton Phillips
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 ...