Before going too far down that path, I was wondering if there a generic 'query a URL that returns JSON' driver to start with ?
Secondly, if I take the PA extension, which is an extension (not a driver), is it a big deal to convert that to a driver instead ? Any guidance/examples there ?
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.
I'm working with a user who is looking to get weewx running vs. his Davis WeatherLink IP device. There's no driver for that currently, although there's an issue open on it in the weewx repo.
--
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 weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/4e002188-0c64-4d3a-b3df-35fa122a466f%40googlegroups.com.
https://github.com/gjr80/weewx-bloomsky
Code should be python 2/3 compatible but have not yet checked against WeeWX v4.
Gary