naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
311 stars 61 forks source link

weewx problem #257

Open msman0 opened 1 year ago

msman0 commented 1 year ago

Hi, I have tried to activate it with my weewx station. After starting homebridge I get these error message:

[WeatherPlus] Error parsing weather report for Weewx [WeatherPlus] Error Message: TypeError: Cannot read properties of undefined (reading '0')

my configuration:

{ "units": "metric", "interval": 5, "stations": [ { "nameNow": "F", "service": "weewx", "key": "http://192.168.99.5/weewx/weewx.json", "locationCity": "V.4.9.1", "language": "de", "compatibility": "home", "conditionCategory": "simple", "now": true, "extraHumidity": false } ], "platform": "WeatherPlus" }

The JSON file is displayed correct when I open the URL.

With weather underground it work.

Where is the error that it don't work wie weewx?

Thank you. Regards.

sinabuddy commented 4 months ago

Hi msman0

I solved / found today a problem or error in my installation. My homebridge protocol showed everytime a "SyntaxError in Json at position 302" > no values were displayed.

In my "weewx.json" i found this entry: "uv": 0,0,

My json file makes with this uv value the problem. So i change "uv": 0,0, (with comma between 0,0 !!) to "uv: 0.0" (with dot between 0.0)

And now it's running. For the automatic creation in weewx, i remove the lines with uv in the "simple_weewx.json.tmpl" (my workaround, not the solutions)

maybe it will help you...