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

2018-04-05 Thread wysiwyg
Hi there !! I'm playing around with some js charts libraries and I use cheetah to fill up my scripts with the data. Here is my code: columns: [ ['x' #for $record in $span($hour_delta=32).records , ${record.dateTime.raw}000 #end for ],

[weewx-user] Re: weewx_wd

2018-04-05 Thread K-Lutz
Hallo Schau dir das mal bitte an. http://wetter-uerdingen.de/ Am Dienstag, 3. April 2018 12:17:09 UTC+2 schrieb gjr80: > > Aha. Vielleicht wurde ich als spam eingestuft, oder ich habe die falsche > e-mail-adresse verwendet. Meine e-mail-adresse lautet gjroderick(at) > gmail.com. Wenn Sie mir di

[weewx-user] Re: Twitter feed on top of the hour

2018-04-05 Thread JHoke
I thought I would share what I have done for the next person who is looking around for this so that they can save some time. If there are any suggestions to improve on this please reply to this message with them :) - Installed Oystter (https://github.com/oysttyer/oysttyer) - I needed a twi

[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

Re: [weewx-user] Re: weewx_wd

2018-04-05 Thread Gary Roderick
Hallo, Ich schaue auf deine Seite. Was ist das Problem? Gary On Thu, 5 Apr 2018 at 20:29, wrote: > Hallo > Schau dir das mal bitte an. http://wetter-uerdingen.de/ > > > Am Dienstag, 3. April 2018 12:17:09 UTC+2 schrieb gjr80: > >> Aha. Vielleicht wurde ich als spam eingestuft, oder ich habe d

[weewx-user] Re: Weewx new template / comments welcomes!

2018-04-05 Thread Greg from Oz
Hi. Looks good on a computer screen but hard to see on a phone. I like the responsive skin so it adapts to phone and computer. https://weather.ubeaut.work/ Good work. On Thursday, 25 April 2013 02:35:46 UTC+10, wysiwyg wrote: > > Hello, > I am working on a new template for weewx. > This is

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

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 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: adding extension which applies to reporting on one file only

2018-04-05 Thread Thomas Keffer
Hello, Rich. I'm afraid I'm not quite understanding your situation. There are 3 different occasions when your SLE may come into play: 1. When the Cheetah report generator starts up. This is when your SLE gets instantiated, that is, its __init__ function, if any, gets invoked. This happe

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
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: adding extension which applies to reporting on one file only

2018-04-05 Thread gjr80
Tom, Perhaps I am not understanding you correctly, but I have run into this issue a number of times with a processing intensive SLE. Whether or not any of the tags created by the SLE are used, the SLE is run in its entirety for each template listed in the skin. For example, I have a SLE that re

Re: [weewx-user] Re: adding extension which applies to reporting on one file only

2018-04-05 Thread gjr80
We first came across this issue with weeWX-WD back in 2013. We shaved a lot of time off our overall report generation time by judiciously dividing our reports between a number of skins and only including those SLE in e

Re: [weewx-user] Re: adding extension which applies to reporting on one file only

2018-04-05 Thread Thomas Keffer
I think we're all on the same page here. The Standard report typically involves 14 file generations, so the function get_extension_list() will be invoked 14 times. If that's taking a long time, I would suggest trying to restructuring the SLE so the get_extension_list() invocation is not so expensi

Re: [weewx-user] Re: adding extension which applies to reporting on one file only

2018-04-05 Thread gjr80
Agree with the last para. There is probably a lot that can be done in terms of restructuring some of my old SLEs given that some are 5 years old (I regularly cringe at some of the code I used back then). Needs a clearer head than I have just now in the wee hours. Getting back to Rich's issue,

Re: [weewx-user] Re: adding extension which applies to reporting on one file only

2018-04-05 Thread Thomas Keffer
Agreed. The SLE architecture is layered for a reason: it gives you 3 different choices of where to perform a calculation: once per report, once per template, or once per (hit) tag. I'm pretty confident we can find the right place for Rich's expensive calculation. -tk On Thu, Apr 5, 2018 at 7:38 A

Re: [weewx-user] Re: adding extension which applies to reporting on one file only

2018-04-05 Thread 'Rich Altmaier' via weewx-user
Wow, you guys are giving a lot of ideas there, thanks so much!First to supply info: -I have only one tag usage presently, in the index.html.tmpl file. -the cost comes from DB queries, for which I wanted the db_lookup class, which is passed to get_extension_list. -I am creating the Ti

[weewx-user] Re: Current wind graphic?

2018-04-05 Thread RobbH
I finally came to the realization that everything I wanted to do could be done with the Cheetah engine, and even learned a tiny bit of Python in the process. The following code, added to index,html.tmpl (or some other template) generates a crude compass rose with up to two directional vanes, on

Re: [weewx-user] Re: Current wind graphic?

2018-04-05 Thread Alec Bennett
Possible to see the generated output of that somewhere? On Thu, Apr 5, 2018 at 12:36 PM, RobbH wrote: > I finally came to the realization that everything I wanted to do could be > done with the Cheetah engine, and even learned a tiny bit of Python in the > process. The following code, added to i

Re: [weewx-user] Re: Current wind graphic?

2018-04-05 Thread RobbH
It's available (temporarily) here: http://rh3.operamail.com/windrose_testing.svg On Thursday, April 5, 2018 at 3:45:58 PM UTC-4, Alec Bennett wrote: > > Possible to see the generated output of that somewhere? > > On Thu, Apr 5, 2018 at 12:36 PM, RobbH > > wrote: > >> I finally came to the realiz

[weewx-user] IndexError: list index out of range

2018-04-05 Thread Dan'l B
Been scratching my head over this error. Can someone point me to where I should be looking? I can provide a longer log excerpt if needed. Apr 5 17:41:22 testpi weewx[9553]: cheetahgenerator: Generate failed with >> exception '' > > Apr 5 17:41:22 testpi weewx[9553]: cheetahgenerator: Igno

[weewx-user] Re: IndexError: list index out of range

2018-04-05 Thread mwall
looks like something is wrong with the forecast.html.tmpl file please post forecast.html.tmpl, your exfoliation skin.conf, and the StdReport section of your vantage.conf -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this gr

Re: [weewx-user] Re: Current wind graphic?

2018-04-05 Thread Glenn McKechnie
Interesting, Nice and simple too. Just dropped the code into the main index template here and it works well. I'm using Metric and kph ( km/h ) here and I don't see anything unusual in its scaling. http://203.213.243.61/weewx/ In fact, it's probably a keeper. Just need to find a more suitable s

Re: [weewx-user] Re: Current wind graphic?

2018-04-05 Thread RobbH
For future reference, if the graphic linked in the previous post is no longer available, just save the svg code (everything but the '#import math' line) to a file, rose.svg. Open it in a text editor, then replace the two lines of text declaration and the two "if" blocks, all following the final

Re: [weewx-user] Re: Current wind graphic?

2018-04-05 Thread Thomas Keffer
Very clever! -tk On Thu, Apr 5, 2018 at 12:36 PM, RobbH wrote: > I finally came to the realization that everything I wanted to do could be > done with the Cheetah engine, and even learned a tiny bit of Python in the > process. The following code, added to index,html.tmpl (or some other > templa

[weewx-user] extension to calculate rainstorm info: total rainfall, ending time, duration

2018-04-05 Thread 'Rich Altmaier' via weewx-user
This is my first try at an extension. This is one file to place in user (/usr/share/weewx/user), with info in the header for the skin.conf and Standard/index.html.tmpl changes to place the data into a report. Please do give feedback! Thanks, Rich -- You received this message because you are s

[weewx-user] Re: rainstorm total rainfall SQL and demonstration python script

2018-04-05 Thread 'Rich Altmaier' via weewx-user
Manuel, I just posted an extension to do a rainstorm calculation. Please give it a try! Rich On Monday, April 2, 2018 at 4:33:27 PM UTC-7, Manuel wrote: > > Hello Rich, I've been studying that tag for some time, but my Python > knowledge is not much. There is a web Spain that I have connected

[weewx-user] Re: rainstorm total rainfall SQL and demonstration python script

2018-04-05 Thread Manuel
Hi Rich I've tested the extension and it's exactly what I was looking for. Show the millimeters of the last rain or storm period and the days of this. I think it has been a hard work. Thank you very much. El viernes, 6 de abril de 2018, 1:41:13 (UTC+2), Rich Altmaier escribió: > > Manuel, I just

Re: [weewx-user] Re: Current wind graphic?

2018-04-05 Thread RobbH
Thanks, Tom! You made my day. About other measurement units, the log scale in the graphic works with values from 1 to 100, and possibly a bit beyond. I think that might work reasonably well for knots and km per hour, but probably not for meters per second. On Thursday, April 5, 2018 at 7:25:1

[weewx-user] WeatherLinkIP disconnection from WeeWX frequently

2018-04-05 Thread Kimberly Olsen
Hi everyone. I am an old hand a weather stations and typically used WeatherCat on my Mac, but in the interests of conserving energy and my love of fiddling with raspberryPis, I have moved over to WeeWX. My brand new Vantage Vue utilises WeatherlinkIP because I wanted to access the console dat