BKeyport / homebridge-davis

My Spin on a Homebridge plugin for Davis Weatherlink Live
MIT License
0 stars 0 forks source link

API Call error #3

Open drbillz opened 1 year ago

drbillz commented 1 year ago

Unable to connect with :443 "443" added to above specified port in error logs Have used your example exactly weatherlink IP known address. Is there a WIP FW dependency: running 115 Is there a port assignment required? HB bridge connectivity established

Apologies if this is the wrong place for this

BKeyport commented 1 year ago

Port assignment isn't required. per Davis documentation, API doesn't support HTTPS, so must use port 80 directly to your Weatherlink unit.

http://your_wll_box/v1/current_conditions

For my information, which Davis model are you running?

drbillz commented 1 year ago

Was able to establish pairing w/ Homekit, only showing temp / humidity, both of which values are erroneous. There IS a ISS sending reports at this address ( 192.168.0.xx:80: as set up in the plugin) station ID 1. There IS a new Davis CONSOLE which may be using the V2 API ( 2-part with secret key) to send to Weatherlink Live. ( I do not fully understand the different API functions, only that per Davis TS, my station IS sending data to WLL via my established system, and I CAN see appropriate data on mobile devices.

ISS(Sensors Rain, T/H/W/ solar/uv) -> wireless->XX XX> Weather Envoy / I.P. data logger ->Local network-> HB->API V1->Homekit. XX-> wireless -> Davis 6313 console ( direct WiFi)->wireless-> internet->Weatherlink Live -> API V2?->...

Hopefully this is a recognizable map of my system I have an older (2012) Davis vantage Pro2+ (wireless) Do each of the sensors have to be added to the child bridge individually, or will current_ conditions pull all the data sent? Thanks. Please point me to a dummie-level resource if this is not an appropriate venue for this discussion-

BKeyport commented 1 year ago

Tradtional weatherstations should only show temp and humidity. The rest are unsupported at this time. I've not had time to dig into the Homekit API to see if anything else is compatible, and to enable it (Other than AQI for airlink systems) -- It's on the roadmap.

I would like the following: 1) Output from http://192.168.0.x/v1/current_conditions - should look something like:

{"data":{"did":"001D0A71573B","ts":1696122470,"conditions":[{"lsid":434637,"data_structure_type":1,"txid":1,"temp": 59.3,"hum":68.3,"dew_point": 48.9,"wet_bulb": 52.6,"heat_index": 58.3,"wind_chill": 59.3,"thw_index": 58.3,"thsw_index":null,"wind_speed_last":0.00,"wind_dir_last":0,"wind_speed_avg_last_1_min":0.62,"wind_dir_scalar_avg_last_1_min":323,"wind_speed_avg_last_2_min":0.43,"wind_dir_scalar_avg_last_2_min":320,"wind_speed_hi_last_2_min":2.00,"wind_dir_at_hi_speed_last_2_min":295,"wind_speed_avg_last_10_min":0.18,"wind_dir_scalar_avg_last_10_min":285,"wind_speed_hi_last_10_min":2.00,"wind_dir_at_hi_speed_last_10_min":295,"rain_size":1,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":0,"rainfall_last_24_hr":0,"rain_storm":0,"rain_storm_start_at":null,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":313,"rainfall_year":313,"rain_storm_last":278,"rain_storm_last_start_at":1695499680,"rain_storm_last_end_at":1696024860},{"lsid":434634,"data_structure_type":4,"temp_in": 79.4,"hum_in":36.2,"dew_point_in": 50.3,"heat_index_in": 78.0},{"lsid":434633,"data_structure_type":3,"bar_sea_level":30.060,"bar_trend": 0.012,"bar_absolute":29.596}]},"error":null}

2) a copy of the accessory settings from your homebridge eg:

 {
            "name": "Test Davis",
            "manufacturer": "Davis",
            "model": "Test",
            "serial": "001D0A71573B-T",
            "url": "http://14.202.65.230:1234/v1/current_conditions",
            "sensorType": 3,
            "txid": 1,
            "pollingIntervalSeconds": 60,
            "temperatureUnitOfMeasure": "F",
            "useInternal": false,
            "accessory": "davis"
        }

You can paste them encased in three backticks - ``` thusly, to keep formatting intact.