naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
315 stars 63 forks source link

Error retrieving weather from OpenWeatherMap after upgrade #254

Closed thefern69 closed 1 year ago

thefern69 commented 1 year ago

I just updated the plug in from the previous version and get this error on startup:

[12/29/2022, 3:55:52 PM] [WeatherPlus] Could not retreive weather report with API 3.0, trying API 2.5 now ...
[12/29/2022, 3:55:53 PM] [WeatherPlus] [
  [
    {
      dt: 1672336800,
      main: [Object],
      weather: [Array],
      clouds: [Object],
      wind: [Object],
      visibility: 10000,
      pop: 0,
      sys: [Object],
      dt_txt: '2022-12-29 18:00:00'
    },
    {
      dt: 1672347600,
      main: [Object],
      weather: [Array],
      clouds: [Object],
      wind: [Object],
      visibility: 10000,
      pop: 0,
      sys: [Object],
      dt_txt: '2022-12-29 21:00:00'
    },
    {
      dt: 1672358400,
      main: [Object],
      weather: [Array],
...

it goes on for multiple lines. I haven't changed anything else. I did recheck my API key which is fine.

naofireblade commented 1 year ago

Is this an error (red)? Or debug information? Does your weather shows correct in HomeKit?

thefern69 commented 1 year ago

Yea, what looks like JSON is in red and erroring.

It is in HomeKit but cannot tell if it is correct.

naofireblade commented 1 year ago

First line should be white (info) and json should be yellow/orange (warn). That warn log shouldn't have been in the code, my bad. Will update later today.