Hello Greg,

Thanks for the suggestion on using the MQTTSubscribe driver. At this point, 
I'd rather see how far I can get writing a new driver - just trying get 
suggestions on the best one to use as a template.

I was going to stick with the default 5 minute archive interval as that 
seems very reasonable. 

Thanks,
-Bill

On Sunday, February 16, 2020 at 4:30:43 PM UTC-5, Greg Troxel wrote:
>
> 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/1ba01065-e88f-4347-ae3b-9bebdf1d6f88%40googlegroups.com.

Reply via email to