Re: [weewx-user] Re: Cheetah #for / #if to output data in lines instead of columns.

2018-04-05 Thread wysiwyg
Just to share, if someone needs something similar: The template: columns: [ ['x' #slurp #for $record in $span($hour_delta=32).records , ${record.dateTime.raw}000 #slurp #end for ], ['$obs.label.outTemp' #slurp #for $record in $span($hour_delt

Re: [weewx-user] Re: Cheetah #for / #if to output data in lines instead of columns.

2018-04-05 Thread gjr80
Actually, I got it slightly wrong, #slurp eats newlines . Gary On Thursday, 5 April 2018 22:45:42 UTC+10, wysiwyg wrote: > > Hey ! that's perfect > > I was not aware this #slurp could be used anywhere

Re: [weewx-user] Re: Cheetah #for / #if to output data in lines instead of columns.

2018-04-05 Thread wysiwyg
Hey ! that's perfect I was not aware this #slurp could be used anywhere (outside #for etc..) good to know !! Good image"slurp eats EOLs", the words sounds like eating something :D Many thanks, Gary and Matthew ! Le jeudi 5 avril 2018 14:29:02 UTC+2, gjr80 a écrit : > > So put a #slurp af

Re: [weewx-user] Re: Cheetah #for / #if to output data in lines instead of columns.

2018-04-05 Thread gjr80
So put a #slurp after ['x' in your first attempt/example. #slurp eats EOLs. Gary On Thursday, 5 April 2018 21:15:47 UTC+10, wysiwyg wrote: > > Ah ! good idea!! :-) > > It tried this: > columns: [ > ['x' > #for $record in $span($hour_delta=32).records > , ${record.dateTime.raw}000 #slurp

Re: [weewx-user] Re: Cheetah #for / #if to output data in lines instead of columns.

2018-04-05 Thread Frederic Stuyk
Ah ! good idea!! :-) It tried this: columns: [ ['x' #for $record in $span($hour_delta=32).records , ${record.dateTime.raw}000 #slurp #end for ], and it output this: columns: [ ['x' , 152281110 , 152281140 , 152281170 , 152281200 , 152281230 , 1

[weewx-user] Re: Cheetah #for / #if to output data in lines instead of columns.

2018-04-05 Thread mwall
try slurping, like this: #for $record in $span($hour_delta=32).records , ${record.dateTime.raw}000 #slurp #end for -- 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