On Tuesday, February 25, 2020 at 12:38:57 PM UTC-8, mwall wrote:
>
>
>
> On Tuesday, February 25, 2020 at 3:23:58 PM UTC-5, Vince Skahan wrote:
>>
>> Before going too far down that path, I was wondering if there a generic 
>> '*query 
>> a URL that returns JSON*' driver to start with ?
>>
>
> someone should implement that :)
>
> in fact, it would be nice if that were a base class in weewx core that 
> other drivers could use.  when i started weewx-interceptor i thought it 
> would be that easy.  but it turns out that each hardware vendor does things 
> just a little bit different than any other.
>
> doing the http GET, receiving JSON data, parsing JSON data, and even doing 
> it on a separate thread so you don't block the weewx engine - those are all 
> pretty easy with python.
>
> mapping the JSON fields to database fields, and sorting out the units - 
> those are still squarely in the land of weewx.  the sensor_map and 
> sensor_map_extensions patterns seem to work fairly well.
>
>

ok - let me fiddle on it a bit.  You guys are having far too much fun with 
4.0 packaging :-)


-- 
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/f4a04ede-775a-49e8-bbc8-7ee78435a5a0%40googlegroups.com.

Reply via email to