Thanks Thomas, I will let you know how I get on
Mike Revitt Global Database Cloud Migration Specialist e: [email protected] | p: +44.7825.063.466 > On 22 Apr 2018, at 15:32, Thomas Keffer <[email protected]> wrote: > > Hi, Mike > > You will need a search list extension, which requires writing a function > get_extension_list() (see section Extending the list > <http://weewx.com/docs/customizing.htm#extending_the_list> in the > Customization Guide). That function has signature: > > def get_extension_list(self, timespan, db_lookup) > > Now if you look in the skin configuration file, skin.conf, you'll see that > there are three different subsections: > > [[SummaryByMonth]] > > [[SummaryByYear]] > > [[ToDate]] > > The parameter 'timespan' of get_extension_list() will hold different values > depending on in which section the template appeared. For SummaryByMonth, > timespan will hold the start and end of the month, for SummaryByYear, it > holds the start and end of the year, and for ToDate, it holds the first and > last timestamp of the database. > > So, if you want to generate a NOAA style report that covers all years, you'll > actually want a "ToDate" type report. The parameter 'timespan' will hold the > first and last timestamps in the database and you should be all set. > > -tk > > > On Sun, Apr 22, 2018 at 6:00 AM, Mike Revitt <[email protected] > <mailto:[email protected]>> wrote: > I have been playing with my Weewx setup again recently and am now running a > successful sync to AWS S3 buckets for the display of toy website, I will > shortly write up how I did this. > > But for now I am trying to extend the NOAA reports so that as well as showing > reports on a per year basis I can include a all records to date report, which > for me is from Jan 2014 - Now. This should be easy but I can’t find how the > year is being passed into the the NOAA_year report. > > Anyone got any ideas on how to achieve this > > Mike > > -- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/eW8k_FOmOK0/unsubscribe > <https://groups.google.com/d/topic/weewx-user/eW8k_FOmOK0/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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]. For more options, visit https://groups.google.com/d/optout.
