Skip to content

Commit 7dec603

Browse files
committed
Let weewx.restx.StdWOW use post_interval=900
The WOW API documentation says " Frequency of submitting observations It is recommended that the interval between automatic observations from your AWS is at least 15 minutes. " Respect this by using a post_interval of 900. Without the post_interval, we get a HTTP status 429: Too frequent observations. And the log gets the following entries Dec 15 18:54:25 weather1 weewx[2400]: restx: WOW: Failed upload attempt 1: HTTP Error 429: Too frequent observations. Dec 15 18:54:30 weather1 weewx[2400]: restx: WOW: Failed upload attempt 2: HTTP Error 429: Too frequent observations. Dec 15 18:54:35 weather1 weewx[2400]: restx: WOW: Failed upload attempt 3: HTTP Error 429: Too frequent observations.
1 parent efc7dea commit 7dec603

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/weewx/restx.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,8 @@ def __init__(self, engine, config_dict):
683683
_ambient_dict.setdefault('server_url', StdWOW.archive_url)
684684
self.archive_queue = Queue.Queue()
685685
self.archive_thread = WOWThread(self.archive_queue, _manager_dict,
686-
protocol_name="WOW",
686+
protocol_name="WOW",
687+
post_interval=900,
687688
**_ambient_dict)
688689
self.archive_thread.start()
689690
self.bind(weewx.NEW_ARCHIVE_RECORD, self.new_archive_record)

0 commit comments

Comments
 (0)