First, a note on how weewxd works: the driver blocks, waiting for data to
come in. The program cannot do anything while it is blocked. Once data
comes in, then it can proceed, emit a LOOP packet, then the rest of the
program can process it.

Your fileparse polling interval is 60 seconds. This means that it will
sleep for 60 seconds before reading new data from the file. Nothing will
happen until it wakes up.

Meanwhile, your archive interval is 60 seconds. This means weewxd will take
whatever data has accumulated over the previous 60 seconds and use it to
create an archive record.

With such a short archive interval and long LOOP polling interval, you can
see how it's easy for the program to be sleeping, or have nothing available
at the one minute mark.

Solution: if you can, have data available more frequently than once every
60 seconds. This would allow you to shorten the fileparse polling interval.
If that's not possible, lengthen the archive interval to at least 5 minutes.

Best yet, do both.

As for the "429" error, this is happening because your system is trying to
register too frequently. Almost all weewx stations do this because the
default registration interval does not work well with the station
registration. You can ignore it, or tell weewx to do the station
registration less frequently. In weewx.conf:

[StdRESTful]
    [[StationRegistry]]
        register_this_station = false
        post_interval = 86400



Station registration is working fine.

-tk

On Sat, Sep 30, 2023 at 8:57 PM Craig Young <[email protected]>
wrote:

> After writing a new driver for my station and configuring weewx to support
> its  data stream I was able to run weewx live for a few minutes, then shut
> it down to check SYSLOG (debug=2).
> There appears to be two problems (see attached syslog excerpt):
>
> a) The database and reports are updating on two minutes intervals.  The
> config file has this set for 1 minute intervals:
> "INFO weewx.engine: Using archive interval of 60 seconds (software record
> generation)"
>
>  Maybe there is some other setting required?
>
> b) There are several HTTP ERROR 429: TOO MANY REQUESTS messages.  Not sure
> why this is happening.
>
> I think I am close to a fully operational system, just need to clean up a
> few things.
>
> Craig
>
> --
> 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/b8903053-6813-45e1-a804-aa5b566d7bdan%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/b8903053-6813-45e1-a804-aa5b566d7bdan%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/CAPq0zECD4k69SRaqQok7MhQC6OtMF0SQEBw7%2B5pAJzm6HGXfGQ%40mail.gmail.com.

Reply via email to