Whilst it is true that the report_timing option <http://weewx.com/docs/customizing.htm#_____________The_report_timing_option_> only works down to the report level (ie it cannot discriminate between templates) this is easily overcome with a little lateral thinking. Duplicate the skin (with a unique name of course) containing the template concerned and then disable/remove all other reports from the duplicated skin. Add a new entry under [StdReport] in weewx.conf for the duplicate skin with the desired report_timing option.
Gary On Friday, 11 October 2019 08:23:43 UTC+10, Pila wrote: > > Yup. An extremely ugly fix to a problem for which I claim should not have > existed. Works. I just hope it is not doing to a database something. > > > Na 10. listopada 2019. 15:47:53 CEST, Andrew Milner <[email protected] > <javascript:>> wrote: >> >> I think you can run wee_reports manually or via cron with a different >> .conf (and therefore different skin(s)) specified. this would permit just >> doing the report(s) you wanted, at time you desire. >> >> >> >> On Thursday, 10 October 2019 14:45:53 UTC+3, Pila wrote: >>> >>> Yes, using span delta means I am using now as the starting point. That >>> was I wanted to acheve. >>> >>> minmax: $span(day_delta=7).outTemp.minmax >>> maxmin: $span(day_delta=7).outTemp.maxmin >>> >>> I tried running a report with a midnight time, and it creates desired >>> minmax spans, as you correctly stated. Any other time, it skips generating >>> the page with no interactive display of the fault, only in the log. >>> >>> But now, my problem is how to create minmax lines on the midnight and >>> reuse them entire day? report_timing option in weewx.conf is for enitre >>> reports. That does not fit the bill. >>> >>> I need a weekly and monthtly minmax / maxmin lines under the week and >>> month OutTemp graphs. Closest to the usable idea I have: >>> >>> 1) in skin.conf, create two templates (for the two maxmin+minmax lines, >>> one for week one for month) >>> >>> 2) include them to temp.html.tmpl >>> >>> But, I am unable to find a solution to create these two files at >>> midnight only and reuse them the rest of the day? Can I, in a skin.conf, do >>> somethng like: >>> >>> [ $(date +"%H:%M") == "00:00" ] && create_templates || skip >>> >>> I could try initially generating them manually at midnight, and then use >>> stale_age in skin.conf to keep them for 24 hours. Not elegant and touchy, >>> but it may work. I am open to any better suggestions. >>> >>> -- 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/66bc2e44-c1be-460a-b4cc-7aecad5cadf9%40googlegroups.com.
