The 9.8 is the value it should send, and using curl it does it correct, but I cant get the agent to do the same, any suggestions?
local headers = {"Content-Type": "text/plain"}; local csv = xivelyData.temperature/xivelyData.samples; local request = http.put("https://user:pass@home.myopenhab.org/rest/items/garageTemp/state", headers, csv); local response = request.sendsync();
As far as I can see, curl only sends the value, nothing else. Failing to get the agent to do that too without giving me an error.
It updates the value on my local openhab server. And it works if I put “” + in front of the value, but it looks strange having that in front, but it actually works.
That’s sort-of a bug, then. Really it should either be coercing the integer, or throwing an error. Might be a bit awkward to change it now, though, without changing the meaning of existing code.