I know what my current archive interval is (Davis's default of 5 minutes) and I don't have any plans to change it, but, in writing user services/extensions, which others may conceivably use in the future, I don't like to hard-code a value which may be different in a different setup. I am sure that the current value of the parameter is accessible to code running 'within' weewx (but not within an archive record handler), but I couldn't find how to access it.
On Thursday, June 9, 2022 at 4:55:36 PM UTC-4 lang....@googlemail.com wrote: > Not sure what you are exactly looking for, > but you can see your current archive interval in the syslog (usually in > /var/log/syslog - just see two subsequent archiving log items) > > or > > in your weewx.conf (/etc/weewx/weewx.conf or /home/weewx/weewx.conf) > > [StdArchive] > > # If the station hardware supports data logging then the archive > interval > # will be downloaded from the station. Otherwise, specify it (in > seconds). > archive_interval = 300 #example > > Am 09.06.2022 um 21:40 schrieb 'Peter Fletcher' via weewx-user: > > This may seem like a very stupid question, but I have not been able to > google an answer. Is there a method or parameter that is accessible from > within (e.g.) a user extension which gives the current archive interval? > > -- > 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 weewx-user+...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/7ac93a73-ba27-4599-b30b-ff20d26e6970n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/7ac93a73-ba27-4599-b30b-ff20d26e6970n%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/52fcc7c6-c222-4dbc-8f2a-aa7443910c48n%40googlegroups.com.