Hi,
I am using Openhabian based on Openhab3. To periodically display a temperature value I set up a schedule that sends a json structure every minute:
val String URL = "http://openhab:7000/api/v3/notify"
var String contenttype = "application/json"
var String jsondata = '{"force":true,"text":"'+egTemperaturVorgarten.state+'°C","icon":234,"color":[0,255,255],"repeat":1}'
sendHttpPostRequest(URL, contenttype, jsondata)
The script works as expected. But after about a day of operation Openhab gets instable. I already had to reboot the system several times. On 2 days Openhab lost its configuration and i needed to restore all items.
The log showed an error message related to Java stack overflow, but forgot to copy. It looks to me as if the huge amount of http requests fill up the stack.
Am I doing something wrong in the way I use the http request?
Thanks for your support.
Thomas