I don't need to store anything in the database. It's just a "now" site for 
an airfield using data from a FO station. So the index.html is pretty 
simple. 

After wee_reports, I pick the wind/gust speed/direction out of the 
generated html.  Then I combine that with runway (direction) info to figure 
which runway to use and what the crosswind is. I make up an html line for 
that and insert it into the previously generated one.

Picking values out of the html file i a bit of a pain ..... so .....
I made up a template Wind Speed!$wind speed tag,Wind Gust!$wind gust tag 
etc so the output is a CSV of <Tag!value> pairs. Easy to read

I put this template (called 'sparse') into /home/weewx/skins/Standard  
(which is where my index.html.tmpl lives)

Copy sparse to index.html.tmpl and run wee_reports. Change name of 
generated (CSV) index.html to 'sparse'
Copy index.master (master copy of real template) to index.html.tmpl and run 
wee_reports

OK OK - it's a kludge .....
There's a bit of shifting files beween folders of course

On Friday, January 17, 2020 at 11:22:56 AM UTC+13, vince wrote:
>
> On Thursday, January 16, 2020 at 1:23:45 PM UTC-8, Ian Boag wrote:
>>
>> Is there something I have missed? The reason I want to do this is I am 
>> running an airfield weather station and I want to do a preferred 
>> runway/crosswind calculation then insert it into the index.html file. See 
>> nzdv.avmet.nz. I do it at present py parsing the index.html file but 
>> that's ugly too.
>>
>
> It sounds like perhaps you want to do a calculation based on some 
> parameters and display a couple resulting items in the index.html (and 
> maybe save your calculated parameters in the database).  Is that close ?
>
> If so, it would mean writing a small extension to do so.  Assuming you 
> just want to pull data off your station's observations, this shouldn't be a 
> big deal to cook up.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2fa83774-b299-446c-a076-85b823a5d338%40googlegroups.com.

Reply via email to