Indeed Gary was right. for example checked my last record was 1588808400 report wanted to show 1588808700 so over the last record on a record the indeed does not exists. Will fix that thanks again gentlemens for your input.
On Wednesday, May 6, 2020 at 3:09:05 PM UTC-4, Hyrules wrote: > > Interesting Gary. Makes a lot of sense. I will try that and let you know > what happens. Thanks for your input > > -----Original Message----- > From: [email protected] <[email protected]> On Behalf > Of gjr80 > Sent: May 6, 2020 14:48 > To: weewx-user <[email protected]> > Subject: Re: [weewx-user] Issue with a report last values are Zero > > Hi, > > I would hazard a guess and say your issue is using datetime.datetime.now() > in your search list extension. That time is being used as your stop/end > time for the report and is (roughly) the time the report is run. This will > be after the current (and last) record in the archive. So when the report > is run anything in the last row that relies on the last record will be 0 or > None. > > I would try using timespan.stop instead. This will give you the actual > timestamp if the last/current archive record as the end point. > > I am always wary of using the current system time in a SLE. > > But I could be wrong... > > Gary > > -- > 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/MFnpwI8sGNQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/5c3a1c36-479e-4cb6-94eb-f8f0bf533e98%40googlegroups.com. > > > > -- 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/e303639f-a16c-4204-b63e-4f41d825682c%40googlegroups.com.
