pmoon00 / homebridge-davisweatherlinklive

Homebridge plugin for the Davis WeatherLink Live API
MIT License
1 stars 2 forks source link

212° #2

Open skosow opened 2 years ago

skosow commented 2 years ago

HomeKit shows the temp of my weather station 212° all the time. The weather station is reporting the correct temp in the data feed.

pmoon00 commented 2 years ago

Are you able to supply an example JSON payload that you get back when you hit your Davis Weather Station endpoint? The more information the easier it will be to help.

skosow commented 2 years ago

The endpoint:

http://192.168.1.244/v1/current_conditions

The results

{"data":{"did":"001D0A717D64","ts":1659098255,"conditions":[{"lsid":532743,"data_structure_type":1,"txid":1,"temp": 64.9,"hum":59.9,"dew_point": 50.6,"wet_bulb": 54.7,"heat_index": 63.9,"wind_chill": 64.9,"thw_index": 63.9,"thsw_index": 61.9,"wind_speed_last":0.00,"wind_dir_last":0,"wind_speed_avg_last_1_min":0.00,"wind_dir_scalar_avg_last_1_min":0,"wind_speed_avg_last_2_min":0.00,"wind_dir_scalar_avg_last_2_min":0,"wind_speed_hi_last_2_min":0.00,"wind_dir_at_hi_speed_last_2_min":0,"wind_speed_avg_last_10_min":0.00,"wind_dir_scalar_avg_last_10_min":0,"wind_speed_hi_last_10_min":0.00,"wind_dir_at_hi_speed_last_10_min":0,"rain_size":1,"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":7,"uv_index":0.0,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":0,"rainfall_monthly":8,"rainfall_year":20,"rain_storm_last":2,"rain_storm_last_start_at":1658197260,"rain_storm_last_end_at":1658286061},{"lsid":532742,"data_structure_type":4,"temp_in": 73.9,"hum_in":34.9,"dew_point_in": 44.5,"heat_index_in": 72.3},{"lsid":532741,"data_structure_type":3,"bar_sea_level":30.130,"bar_trend": 0.029,"bar_absolute":25.499}]},"error":null}

pmoon00 commented 2 years ago

The data looks fine. Are you seeing any errors in the Homebridge logs? Without seeing your config it's hard to confirm but maybe the URL is malformed in the config.

skosow commented 1 year ago

I use Fahrenheit and had the plugin configured for "temperatureUnitOfMeasure": "F"

when I changed "temperatureUnitOfMeasure": "C" then the temperature show the correct Fahrenheit temperature.

pmoon00 commented 1 year ago

That's strange. Are you able to post your config without any sensitive data in here?