In website templates you can use $current.interval to access or display the interval.
Peter Fletcher schrieb am Freitag, 10. Juni 2022 um 15:52:46 UTC+2: > Thanks to all! Granted that you are most likely to need to know the > archive interval in the context of an archive interrupt service, where it > is easily available and the returned value is reliable, it would be nice if > the actual working value (rather than just the value from weewx.conf) were > readily available in other contexts. > > On Friday, June 10, 2022 at 9:04:06 AM UTC-4 [email protected] wrote: > >> "Using the interval field from the current archive record should always >> give the correct value.". >> >> I use it in my extension and it works very well: >> *event.record['interval'] * >> >> Le vendredi 10 juin 2022 à 05:04:45 UTC+2, gjr80 a écrit : >> >>> Whilst in almost all cases the archive interval used by WeeWX will match >>> the archive_interval config option in weewx.conf [StdArchive] this is >>> not always the case. Installs that use software record generation always >>> use an archive interval that matches the archive_interval config >>> option; however, when using hardware record generation if the archive >>> interval set in the station hardware is different to the >>> archive_interval config option the archive_interval config option is >>> ignored and the station hardware archive interval is used instead. This is >>> most commonly seen with Davis stations used with a default WeeWX install. >>> The Davis station uses an out-of-the-box 30 minute archive interval and >>> that value overrides the default WeeWX archive interval of five minutes. >>> >>> Using the interval field from the current archive record should always >>> give the correct value. >>> >>> Gary >>> >> -- 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/80966769-5730-4202-b592-58723a75c1fan%40googlegroups.com.
