naofireblade / homebridge-weather-plus

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

Error when installed the plugin for homebridge #123

Closed mimes123 closed 4 years ago

mimes123 commented 4 years ago

Hi my homebridge can't reboot after i installed the plugin. so i have to uninstall it again. what can i do ?

here is a picture of the log

mimes123 commented 4 years ago
Skærmbillede 2020-05-15 kl  14 32 07
Naqsaq commented 4 years ago

I have the same issue but with:

TypeError: Cannot read property 'pressure' of undefined
    at OpenWeatherMapAPI.parseWeather (/usr/local/lib/node_modules/homebridge-weather-plus/apis/openweathermap.js:156:40)
    at OpenWeatherMapAPI.parseReport (/usr/local/lib/node_modules/homebridge-weather-plus/apis/openweathermap.js:111:8)
    at /usr/local/lib/node_modules/homebridge-weather-plus/apis/openweathermap.js:95:11
    at Request._callback (/usr/local/lib/node_modules/homebridge-weather-plus/apis/openweathermap.js:250:5)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-weather-plus/node_modules/request/request.js:185:22)
    at Request.emit (events.js:310:20)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-weather-plus/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:310:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-weather-plus/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:416:28)
    at IncomingMessage.emit (events.js:322:22)
    at endReadableNT (_stream_readable.js:1187:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

What's going on?

naofireblade commented 4 years ago

@mimes123 your config is missing a weather service. Please use the config-ui-x editor or the example config in the readme.

naofireblade commented 4 years ago

@Naqsaq looks like your weather response contains no weather data. Can you share your config (without apikey)?

Naqsaq commented 4 years ago

@Naqsaq looks like your weather response contains no weather data. Can you share your config (without apikey)?

I used the config-ui-x editor for the config. Didn't do any manual edits. I did use the "both" compatibility option. Seems to be working fine when switching to "home" after reinstalling now. Will report back later if the problem comes back with the "both".

mimes123 commented 4 years ago

I tried with the example in readme with my own api did not change anything was still crashing

mimes123 commented 4 years ago

it is working now thanks. one more question is it possible to see the min and max temp of the day and the windspeed in the Homekit app on every forecast and now ?