If you're serious, start a branch off of V5, then work on the file weewx/tags.py. Look at function TimeBinder.month(). Add an appropriate argument. Perhaps structure it as a 2-way tuple (year, month). Use your experience from writing a historical data template to decide what would be convenient and general. Choose a good name for it. Then implement, then create a Pull Request and I'll take a look.
If it all looks good, documentation and tests would have to follow. Way too late for V5, but there will inevitably be a V5.1! On Fri, Dec 1, 2023 at 1:45 PM jschoonh <[email protected]> wrote: > Too bad, but thanks for your answer. > Then I have a challenge, which is also fun > > Op vrijdag 1 december 2023 om 22:39:25 UTC+1 schreef Tom Keffer: > >> Sorry, there is no way to do that. But, it would be a good addition. >> >> On Fri, Dec 1, 2023 at 9:19 AM jschoonh <[email protected]> wrote: >> >>> a question about the cheetah generator >>> currently I display historical data per month in a thermometer form. >>> To get the data i use i line in the the cheetah generator (as an >>> example) “$month($months_ago=11).outTemp.max.format(add_label=False,” >>> but is it possible to give an absolute date for example, the 12th month >>> in 2022, something like $month(12,2022). I know this is wrong, but is there >>> something I can use like this? >>> >>> Here a example for the current year >>> https://schooot.nl/php/maande.php >>> Displayed in the page https://schooot.nl/weereng.php >>> >>> -- >>> 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/00c6ad98-2a53-4ec6-a06e-85f3e412b2bbn%40googlegroups.com >>> <https://groups.google.com/d/msgid/weewx-user/00c6ad98-2a53-4ec6-a06e-85f3e412b2bbn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/9d4abf50-3142-44d9-9a9f-6874779cbd98n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/9d4abf50-3142-44d9-9a9f-6874779cbd98n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEA0XML5Xrq4vFtg95kEiudp6PPNP30vx2JnZOP6wehm7g%40mail.gmail.com.
