chasenicholl / homebridge-weatherflow-tempest

WeatherFlow Tempest Homebridge Plugin
Apache License 2.0
15 stars 2 forks source link

Repeating "[WeatherFlow] AxiosError: Request failed with status code 404" Notification in the Homebridge Log #23

Closed maximumcollins closed 1 month ago

maximumcollins commented 4 months ago

Describe The Bug: Plugin giving a repeating "[WeatherFlow] AxiosError: Request failed with status code 404" Notification in the Homebridge Log

To Reproduce: Not Sure!

Expected behavior: Didn't used to happen - started happening a few months ago - reinstalled the app - regenerated station token - still throws the same error - plugin works and gets values to homekit, just keep getting this repeating log over and over.

Logs:

[30/07/2024, 13:08:56] [Harris Hill Weather Station] [WeatherFlow] AxiosError: Request failed with status code 404 [30/07/2024, 13:09:06] [Harris Hill Weather Station] [WeatherFlow] AxiosError: Request failed with status code 404 [30/07/2024, 13:09:16] [Harris Hill Weather Station] [WeatherFlow] AxiosError: Request failed with status code 404 [30/07/2024, 13:09:26] [Harris Hill Weather Station] [WeatherFlow] AxiosError: Request failed with status code 404 [30/07/2024, 13:09:36] [Harris Hill Weather Station] [WeatherFlow] AxiosError: Request failed with status code 404

Plugin Config: { "name": "Harris Hill Weather Station", "local_api": false, "token": "REDACTED", "station_id": 142328, "interval": 10, "units": "Standard", "sensors": [ { "name": "Outside Temperature", "sensor_type": "Temperature Sensor", "temperature_properties": { "value_key": "air_temperature" } }, { "name": "Outside Humidity", "sensor_type": "Humidity Sensor", "humidity_properties": { "value_key": "relative_humidity" } } ], "platform": "WeatherFlowTempest" }

Screenshots:

Screenshot 2024-07-30 at 1 23 35 PM

Environment:

DMBlakeley commented 4 months ago

Your plugin config looks correct. I am running the same environment versions except on a Mac rather than a Raspberry Pi but do not think this is the issue. Also, make sure you are running Axios v1.6.2 as the plug-in was verified with this version.

I would suggest running the plugin in a Child Bridge. I recently moved all my Homebridge plugins, including this one, to Child Bridges and have noticed improved stability. You will have to re-add to HomeKit but a small inconvenience.

maximumcollins commented 4 months ago

could you point me in the right direction on how to find what version of Axios im running and how to update/roll back to 1.6.2?

DMBlakeley commented 4 months ago

I can tell you how to confirm on a Mac but less familiar with RPi access. If you installed the Tempest plug-in using the Homebridge interface, then I am pretty sure you are OK and this is not an issue.

If you go to Homebridge settings, there is an option to turn on "Homebridge Debug Mode". You will have to restart Homebridge after selecting. This may provide some additional information to point to the issue.

chasenicholl commented 3 months ago

Given the HTTP status code of 404, or "Not Found" this would indicate a problem reaching the URL https://swd.weatherflow.com/swd/rest/observations/station/<your_station_id>. This could be either an issue with your home network, or the WeatherFlow API itself, but I don't think this is an issue with this plugin 🤔.

You could circumvent needing to use the internet to reach your stations information and instead start using the local API? No internet connection of DNS is required.

DMBlakeley commented 3 months ago

I don't believe that there is a problem with the plugin. I have used plugin with the WeatherFlow API as well as the local API for extended periods and it has worked consistently.

I would recommend running each of your plugins in its own Child Bridge. Homebridge just seems to be more stable with this approach.