Some comments below. Gary
On Friday, 17 January 2020 08:47:45 UTC+10, Ian Boag wrote: > > I know how to make a file something like > > Windspeed=$tag for wind speed > Wind Dir = $tag for wind dir > Wind Gust = $tag for wind gust > > Sounds fine, you might do something like: Windspeed = $current.windSpeed Wind Dir = $current.windDir Wind Gust = $current.windGust which would give something like: Windspeed = 4.8km/hr Wind Dir = 335° Wind Gust = 9.6km/hr If I read the weewx docs properly - > f I put this in skins/Standard and call it textstuff.tmpl then wee_reports > should make a file textstuff and put it ..../weewx/index.html? > Not quite. You need to put textstuff.tmpl it in skins/Standard but also add it to the [CheetahGenerator] stanza in skins/Standard/skin.conf (refer the Cheetah generator <http://weewx.com/docs/customizing.htm#customizing_templates> section of the Customization Guide). This will see your file generated and saved in the same location as index.html not as part of it, index.html will not be changed in any way. > > I want to read the data to make some changes to index.html before I upload > it. That bit I can manage - just parsing this stuff out of index,html is a > pain > If you want to make chnages to index.hrml with data from tags in another file why not just make the changes directly in index.html.tmpl ? Sounds like I am misundestanding what you are trying to do. Or is ther another index.html involved other than that generated by WeeWX? -- 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/73f7bffa-555d-42fd-9ab8-149e8d437f2f%40googlegroups.com.
