BKeyport / homebridge-davis

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

Request to Davis API failed #4

Open ddhawk27 opened 1 month ago

ddhawk27 commented 1 month ago

A recently new error showing on a Mac running Sequoia 15.0.1.

[10/25/2024, 11:23:11 AM] [Davis] Request to Davis API failed: connect EHOSTUNREACH 192.168.7.119:80 - Local (192.168.7.5:49467) (infrequent errors is normal)

This is repeated every 60s interval. This, after years of reliable operations.

Here is the response to http://192.168.7.119:80/v1/current_conditions on my browser:

{"data":{"did":"001D0A715084","ts":1729880738,"conditions":[{"lsid":424103,"data_structure_type":1,"txid":7,"temp": 45.2,"hum":88.5,"dew_point": 42.0,"wet_bulb": 43.5,"heat_index": 45.2,"wind_chill": 45.2,"thw_index": 45.2,"thsw_index":null,"wind_speed_last":2.93,"wind_dir_last":15,"wind_speed_avg_last_1_min":1.06,"wind_dir_scalar_avg_last_1_min":20,"wind_speed_avg_last_2_min":1.12,"wind_dir_scalar_avg_last_2_min":18,"wind_speed_hi_last_2_min":2.56,"wind_dir_at_hi_speed_last_2_min":9,"wind_speed_avg_last_10_min":1.43,"wind_dir_scalar_avg_last_10_min":16,"wind_speed_hi_last_10_min":3.75,"wind_dir_at_hi_speed_last_10_min":13,"rain_size":2,"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":742,"rainfall_year":742,"rain_storm_last":14,"rain_storm_last_start_at":1729769400,"rain_storm_last_end_at":1729861260},{"lsid":423460,"data_structure_type":4,"temp_in": 73.1,"hum_in":38.6,"dew_point_in": 46.4,"heat_index_in": 71.5},{"lsid":423459,"data_structure_type":3,"bar_sea_level":29.956,"bar_trend":-0.034,"bar_absolute":29.781}]},"error":null}

BKeyport commented 1 month ago

This is exactly why I have that note about "infrequent errors are normal".

Unfortunately, the Weatherlink hub is based on a weak processor (the ESP32) and stops communicating on a regular basis for a few seconds at a time on regular intervals.

What I suspect is happening is that it's processing data received from the weather cluster, and just flat out stops sending data out.

This is why I suggest having an odd timing sequence. I use 61s myself. I'll get the error once every 5-10 calls.

Unable to fix, as it's a hardware issue on the part of Davis. I get the same error pulling data from any platform on a regular cycle. Davis themselves only provides updates to external sources (through weatherlink.com) at a load no smaller than 2 minute calls.

I am studying when I can on how to update the module and re-write it to be less intensive on the Davis "infrastructure", so to further reduce the errors, but I've got limited time as I'm full time self employed.

On Fri, Oct 25, 2024 at 11:28 AM ddhawk27 @.***> wrote:

A recently new error showing on a Mac running Sequoia 15.0.1.

[10/25/2024, 11:23:11 AM] [Davis] Request to Davis API failed: connect EHOSTUNREACH 192.168.7.119:80 - Local (192.168.7.5:49467) (infrequent errors is normal)

This is repeated every 60s interval. This, after years of reliable operations.

Here is the response to http://192.168.7.119:80/v1/current_conditions on my browser:

{"data":{"did":"001D0A715084","ts":1729880738,"conditions":[{"lsid":424103,"data_structure_type":1,"txid":7,"temp": 45.2,"hum":88.5,"dew_point": 42.0,"wet_bulb": 43.5,"heat_index": 45.2,"wind_chill": 45.2,"thw_index": 45.2,"thsw_index":null,"wind_speed_last":2.93,"wind_dir_last":15,"wind_speed_avg_last_1_min":1.06,"wind_dir_scalar_avg_last_1_min":20,"wind_speed_avg_last_2_min":1.12,"wind_dir_scalar_avg_last_2_min":18,"wind_speed_hi_last_2_min":2.56,"wind_dir_at_hi_speed_last_2_min":9,"wind_speed_avg_last_10_min":1.43,"wind_dir_scalar_avg_last_10_min":16,"wind_speed_hi_last_10_min":3.75,"wind_dir_at_hi_speed_last_10_min":13,"rain_size":2,"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":742,"rainfall_year":742,"rain_storm_last":14,"rain_storm_last_start_at":1729769400,"rain_storm_last_end_at":1729861260},{"lsid":423460,"data_structure_type":4,"temp_in": 73.1,"hum_in":38.6,"dew_point_in": 46.4,"heat_index_in": 71.5},{"lsid":423459,"data_structure_type":3,"bar_sea_level":29.956,"bar_trend":-0.034,"bar_absolute":29.781}]},"error":null}

— Reply to this email directly, view it on GitHub https://github.com/BKeyport/homebridge-davis/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKVL3DCNWTGM6FKGAARE3P3Z5KEWTAVCNFSM6AAAAABQTZ5FBOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTIOBUG43DINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ddhawk27 commented 1 month ago

With respect, I am experiencing this error every interval, with no exceptions, hundreds of times in a row, after multiple restarts of Homebridge, the plug-in, and the WeatherLink Live unit - even after setting an “odd” interval of 61 seconds. I don’t think this fits the description of “infrequent”.Meanwhile, my manual browser queries to the WeatherLink Live unit are responded to properly.I suspect something else is going on.DaveOn Oct 25, 2024, at 13:33, B. Keyport @.***> wrote: This is exactly why I have that note about "infrequent errors are normal".

Unfortunately, the Weatherlink hub is based on a weak processor (the ESP32)

and stops communicating on a regular basis for a few seconds at a time on

regular intervals.

What I suspect is happening is that it's processing data received from the

weather cluster, and just flat out stops sending data out.

This is why I suggest having an odd timing sequence. I use 61s myself. I'll

get the error once every 5-10 calls.

Unable to fix, as it's a hardware issue on the part of Davis. I get the

same error pulling data from any platform on a regular cycle. Davis

themselves only provides updates to external sources (through

weatherlink.com) at a load no smaller than 2 minute calls.

I am studying when I can on how to update the module and re-write it to be

less intensive on the Davis "infrastructure", so to further reduce the

errors, but I've got limited time as I'm full time self employed.

On Fri, Oct 25, 2024 at 11:28 AM ddhawk27 @.***> wrote:

A recently new error showing on a Mac running Sequoia 15.0.1.

[10/25/2024, 11:23:11 AM] [Davis] Request to Davis API failed: connect

EHOSTUNREACH 192.168.7.119:80 - Local (192.168.7.5:49467) (infrequent

errors is normal)

This is repeated every 60s interval.

This, after years of reliable operations.

Here is the response to http://192.168.7.119:80/v1/current_conditions on

my browser:

{"data":{"did":"001D0A715084","ts":1729880738,"conditions":[{"lsid":424103,"data_structure_type":1,"txid":7,"temp":

45.2,"hum":88.5,"dew_point": 42.0,"wet_bulb": 43.5,"heat_index":

45.2,"wind_chill": 45.2,"thw_index":

45.2,"thsw_index":null,"wind_speed_last":2.93,"wind_dir_last":15,"wind_speed_avg_last_1_min":1.06,"wind_dir_scalar_avg_last_1_min":20,"wind_speed_avg_last_2_min":1.12,"wind_dir_scalar_avg_last_2_min":18,"wind_speed_hi_last_2_min":2.56,"wind_dir_at_hi_speed_last_2_min":9,"wind_speed_avg_last_10_min":1.43,"wind_dir_scalar_avg_last_10_min":16,"wind_speed_hi_last_10_min":3.75,"wind_dir_at_hi_speed_last_10_min":13,"rain_size":2,"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":742,"rainfall_year":742,"rain_storm_last":14,"rain_storm_last_start_at":1729769400,"rain_storm_last_end_at":1729861260},{"lsid":423460,"data_structure_type":4,"temp_in":

73.1,"hum_in":38.6,"dew_point_in": 46.4,"heat_index_in":

71.5},{"lsid":423459,"data_structure_type":3,"bar_sea_level":29.956,"bar_trend":-0.034,"bar_absolute":29.781}]},"error":null}

Reply to this email directly, view it on GitHub

https://github.com/BKeyport/homebridge-davis/issues/4, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AKVL3DCNWTGM6FKGAARE3P3Z5KEWTAVCNFSM6AAAAABQTZ5FBOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYTIOBUG43DINY

.

You are receiving this because you are subscribed to this thread.Message

ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

BKeyport commented 1 month ago

192.168.7.119:80 - Local (192.168.7.5:49467) -- are you running behind a firewall somewhere? Sure looks like it.