Relationship between archive_interval and post_interval (for PWSweather.com)

52 views
Skip to first unread message

wandern

unread,
Oct 20, 2020, 8:34:59 PM10/20/20
to weewx-user
It's not clear whether post_interval must be a multiple of archive_interval when sending data to PWSweather.com.

Since wunderground support RapidFire updates, weewx is obviously aware of the current conditions more frequently than what's set in the station archive interval (I have my Davis Vantage Pro 2 set to 5 minutes currently), but changing post_interval to less than 300 seconds in the [[PWSweather]] section has no effect.

If I want to update PWSweather e.g. every 1 or 2 minutes, does that mean I must set the archive interval on my PWS to 1 minute?


Thanks...

John Kline

unread,
Oct 20, 2020, 8:50:21 PM10/20/20
to weewx...@googlegroups.com
FYI


Why aren't my observations updating more frequently?

We utilize a Content Delivery Network for performance purposes across all pages. This ensures fast load times, resulting in a better experience for our users. New observation data is retrieved every 5 minutes regardless of station update intervals.


On Oct 20, 2020, at 5:35 PM, wandern <wan...@gmail.com> wrote:


--
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/82cb0614-09f6-4480-8e34-7f07775e0c1co%40googlegroups.com.

wan...@gmail.com

unread,
Oct 20, 2020, 9:40:42 PM10/20/20
to weewx-user
That doesn't really answer the question though:

1. weewx is only publishing records every 300 seconds (not every 60 seconds as specified in post_interval)
2. There are many stations on PWSweather.com (mostly Ambient Weather stations) that show 60 second interval updates.

gjr80

unread,
Oct 20, 2020, 10:19:22 PM10/20/20
to weewx-user
Hi,

There are two key events that happen in WeeWX that trigger other events such as reporting, uploading and archiving etc. These events are the arrival of loop packets and arrival/creation of archive records. You can read about them here in the Customization Guide. In general, loop packets arrive more frequently than archive records. For your VP2 system they arrive every 2.5 odd seconds. Without going into a whole pile of detail generation of reports, standard uploads to services such as PWS Weather, WOW and WU (non-rapid fire) occur once an archive record is received/generated. In your case that will be every five minutes. If you change your archive interval to say 10 minute these things will then occur every 10 minutes. You cannot have report, standard uploads (except rapid fire) occur more often then the archive interval, though some things you can set to happen less often (say every 30 minutes).

WU rapid fire is tied to the arrival of loop packets, that is how WU rapid fire uploads more frequently than say PWS. How frequently loop packets arrive depends on your system, Davis systems are 2.5 odd second, others are 48 seconds other are dependent on how often you poll a server/interface etc. So WU rapid fire for you will involve regular 2.5 second updates, but your neighbour with a different station may have 60 second updates or updates at irregular intervals. Some (WeeWX) services may let you do things less frequently than every loop packet (say every 2nd loop packet or on arrival of the next loop packet once 30 seconds have elapsed) but in general WeeWX will not do anything more frequently than on arrival of a loop packet.

Getting back to your specific questions:
1. Uploading records via RESTful services happens every archive interval, you can extend this but you cannot shorten it (WU rapid fire aside)
2. If they use WeeWX perhaps they run a 60 second archive interval or perhaps they use other software or publish direct.

Hope that helps.

Gary

wandern

unread,
Oct 20, 2020, 10:26:17 PM10/20/20
to weewx...@googlegroups.com
Thank you, Gary. That was extremely helpful.  

That was also my impression from reading about loop packets in the customization guide.  I just didn’t want to have to dig into the code to verify if it was not necessary.  :-)  I think a little note on this would be great to add to the documentation.  



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/9Bnmi9TYZNo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/99a60317-19b4-4120-873b-49dbab7353bbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages