I have a rule to disable THINGS when my Internet connection drops. The only THING I can not disable is the native weather binding because there is NO things - just items. Does anybody know the syntax to do this?
Syntax of other THINGS getting disabled:
sendHttpPutRequest("http://192.168.0.230:8080/rest/things/airquality:aqi:local/enable", "application/json", 'false') // Disable AirQuality Default Thread::sleep(2000) // 2 second wait
Error Message I get when Internet drops:
2019-07-27 14:26:09.810 [ERROR] [nal.provider.AbstractWeatherProvider] - FORECASTIO[homeFIO]: Can't retrieve weather data: Error: response is empty!
My weather binding uses the weather.cfg file:
weather:apikey.ForecastIo=xxxxxxxxxxxxxxxxxxxxx weather:location.homeFIO.name=home weather:location.homeFIO.latitude=xx.0543559 weather:location.homeFIO.longitude=-xx.2390055 weather:location.homeFIO.provider=ForecastIo weather:location.homeFIO.language=en weather:location.homeFIO.updateInterval=30 weather:location.homeFIO.units=us
Can I disable the scheduler that polls the weather binding vs a THING as an option? Which is the best way to handle this?