Re: [weewx-user] Re: Cheetah for loop and data_binding

2018-09-27 Thread Thomas Keffer
Fixed in commit ba86c25 , to appear in V3.9. Thanks for your help! -tk On Wed, Sep 26, 2018 at 10:46 PM Mike Hawkins wrote: > Excellent ! That has solved the problem. > > Thank you very much > > Best regards > >

Re: [weewx-user] Re: Cheetah for loop and data_binding

2018-09-26 Thread Mike Hawkins
Excellent ! That has solved the problem. Thank you very much Best regards Mike On Thursday, September 27, 2018 at 1:52:13 AM UTC+1, Thomas Keffer wrote: > > Try this one. > > -tk > > On Wed, Sep 26, 2018 at 3:28 PM Mike Hawkins > wrote: > >> Unfortunately your new tags.py did not fix my

Re: [weewx-user] Re: Cheetah for loop and data_binding

2018-09-26 Thread Thomas Keffer
Try this one. -tk On Wed, Sep 26, 2018 at 3:28 PM Mike Hawkins wrote: > Unfortunately your new tags.py did not fix my problem. > > If I put a simple print into the > > def records(self, data_binding=None): > manager = self.db_lookup(data_binding) > for record in

Re: [weewx-user] Re: Cheetah for loop and data_binding

2018-09-26 Thread Mike Hawkins
Unfortunately your new tags.py did not fix my problem. If I put a simple print into the def records(self, data_binding=None): manager = self.db_lookup(data_binding) for record in manager.genBatchRecords(self.timespan.start, self.timespan.stop): yield

Re: [weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread Thomas Keffer
This is a bug. Try this version of tags.py. To answer your other questions, there are a bunch of tests that use $day, as well as other tags. Look in bin/weewx/test/test_skins/StandardTest. The "context" used in the tags is for formatting. It's how it knows to format a day related time as hh:mm,

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread mwall
tom and gary, do you know if there is a unit test for the $day tag (or any other tag, for that matter)? i'm not finding anything. also, this looks suspect, but perhaps not relevant to this problem. in tags.py i see this: def hour(self, data_binding=None, hours_ago=0): return

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread Mike Hawkins
Hi, Thanks for the suggestion, they do indeed return different values: wf: 7.3C wx: 5.5C default: 5.5C Mike On Tuesday, September 25, 2018 at 10:30:33 PM UTC+1, mwall wrote: > > > > On Tuesday, September 25, 2018 at 1:42:55 PM UTC-4, Mike Hawkins wrote: >> >> >> At one point in the

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread mwall
On Tuesday, September 25, 2018 at 1:42:55 PM UTC-4, Mike Hawkins wrote: > > > At one point in the index.html.templ I have: > $latest($data_binding='weatherflow_binding').outTemp > $current.outTemp > > and I get the expected differing values, so I know the weatherflow sensor > and database are

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread vince
On Tuesday, September 25, 2018 at 1:16:54 PM UTC-7, Mike Hawkins wrote: > > Ah, thanks for that suggestion,having the same variable names did not even > cross my mind. Changing them does not fix the problem, but definitely a > good suggestion, thanks > >> >> yeah - it was a stretch for sure

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread Mike Hawkins
Ah, thanks for that suggestion,having the same variable names did not even cross my mind. Changing them does not fix the problem, but definitely a good suggestion, thanks Mike On Tuesday, September 25, 2018 at 6:42:55 PM UTC+1, Mike Hawkins wrote: > > Hi, > I'm hoping somebody can point out

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread vince
On Tuesday, September 25, 2018 at 12:27:44 PM UTC-7, Mike Hawkins wrote: > > Certainly, i’m not trying to do anything that could not be done with the > built in functionality, it is partly a question of style, I think this > looks better, but mainly now it’s an annoyance that is under my skin, I

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread Mike Hawkins
Certainly, i’m not trying to do anything that could not be done with the built in functionality, it is partly a question of style, I think this looks better, but mainly now it’s an annoyance that is under my skin, I think this should work and want to understand why it isn’t. -- You received

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread vince
On Tuesday, September 25, 2018 at 11:36:34 AM UTC-7, Mike Hawkins wrote: > > Thanks for the reply, that was my first go and it works very nicely. But > chartist is just gorgeous and I can not resist taking advantage, hell or no > hell. > > On Tuesday, September 25, 2018 at 7:27:46 PM UTC+1,

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread Mike Hawkins
Thanks for the reply, that was my first go and it works very nicely. But chartist is just gorgeous and I can not resist taking advantage, hell or no hell. On Tuesday, September 25, 2018 at 7:27:46 PM UTC+1, vince wrote: > > On Tuesday, September 25, 2018 at 10:42:55 AM UTC-7, Mike Hawkins

[weewx-user] Re: Cheetah for loop and data_binding

2018-09-25 Thread vince
On Tuesday, September 25, 2018 at 10:42:55 AM UTC-7, Mike Hawkins wrote: > > I have two weather stations a Davis and a Weatherflow and would like to > use chartist to draw a graph with both temperature values on for > comparison. Chartist is not the problem, getting the data from the >