TridentTD/TridentTD_OpenWeather

Humidity read Issue

Closed this issue · 1 comments

The Humidity reading is always: 0.00%

Fix:

-Open File: TridentTD_OpenWeather.cpp
replace Line: _humidity = payload.substring( 10+payload.indexOf("humidity")....

with:

_humidity = payload.substring( 10+payload.indexOf("humidity"),payload.indexOf("visibility")-3).toFloat();

TridentTD_OpenWeather.zip