In the skins folder (something like /etc/weewx/skins), you’ll find a number of files called <xxxx>.html.tmpl. These are template files for the html pages that weewx generates. Edit the file for the page where you want to place the 24h rain figure. You’ll need to understand its structure to decide where you need to add some lines. My site uses the Bootstrap skin, which uses a file gauges.html.tmpl to create a page containing some gauges and some text, including a table of values where I’ve put the 24h rain figure. The relevant section of the file looks like this: <!-- Station info --> <div class="row"> <table class="table table-hover"> <tbody> <tr> <td>$Labels.Generic.rainRate</td> <td>$current.rainRate</td> </tr> <tr> <td>24h Max Rate </td> <td>$span($day_delta=1).rainRate.max</td> </tr> <tr> <td>$Labels.Generic.dayrain</td> <td>$span($day_delta=1).rain.sum</td> </tr> <tr> <td>$Labels.Generic.windchill</td> <td>$current.windchill</td> </tr> </tbody> </table> </div> Take a look at weather.cusick.org.uk to see how it looks in practice. Hth Geoff Web: http://www.cusick.org.uk On 18 Sep 2023, at 16:40, kufuu <toefu...@gmail.com> wrote:
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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9437D71C-3E77-4090-9CB5-E93BE3E95540%40gmail.com. |
- [weewx-user] Weewx-rain24h addon kufuu
- [weewx-user] Re: Weewx-rain24h addon gjr80
- [weewx-user] Re: Weewx-rain24h addon geoff...@gmail.com
- [weewx-user] Re: Weewx-rain24h ad... kufuu
- Re: [weewx-user] Re: Weewx-ra... Geoff Cusick
- Re: [weewx-user] Re: Wee... kufuu
- Re: [weewx-user] Re:... Geoff Cusick
- Re: [weewx-user]... kufuu
- Re: [weewx-user]... kufuu
- Re: [weewx-user]... kufuu
- [weewx-user] Re: Weewx-rain24h addon kufuu
- Re: [weewx-user] Re: Weewx-rain24... Geoff Cusick
- Re: [weewx-user] Re: Weewx-ra... 'John Kline' via weewx-user
- Re: [weewx-user] Re: Wee... Geoff Cusick
- Re: [weewx-user] Re:... kufuu