Not directly answering your question, but:

I would look into the MQTT extension -- which publishes json to MQTT and
doesn't do at all what you want.  But it probably has some code clues.

More usefully I would look at

  https://github.com/bellrichm/WeeWX-MQTTSubscribe

which does not do the web/json fetch but does do the ingest into weewx
part, and you'd replace the mqtt code with a loop to fetch every so
often from the station's API.

A decision you'll have to make is what to use as the "archive"
interval.   It may be that you can do the fetch every 10s and call that
loop with every 300s being called archive.  The 5 minute archive notion
is useful in terms of what's in the database.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/rmih7zqmd8f.fsf%40s1.lexort.com.

Reply via email to