I have a TcpListener Web Server I've written to store temperature values into a SQL Server database. I've been using this web server for a couple of years receiving data from an ESP32 and a few 1-Wire temperature sensors and it has worked great. Now, however, as I've been using Z-Wave temperature/humidity sensors with eisy, I would like to save this data to my SQL database a well.
My current firmware is 5.4.5 and the UI is the same. I've created a Network Resource that sends the data from a program that saves the values as Integer Variables. The resource looks like this:
PUT /eISYFiles HTTP/1.1
Host: 192.168.1.142:667
User-Agent: Mozilla/4.0
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 82
Source:Sun Room,Temperature:${var.1.1},Humidity:${var.1.2},BatteryLevel:${var.1.3}
This works and the data as seen on my web server looks like this:
Source:Sun Room,Temperature:21,Humidity:70,BatteryLevel:53
The only problem is that the integer value truncates the decimal portion.
So I created another network resource that sends the actual sensor values with something like this (just the body information for brevity):
Source:Sun Room, Temperature:${sys.node.ZW011_118.CLITEMP}, Humidity:${sys.node.ZW011_118.CLIHUM}, Battery Level:${sys.node.ZW011_1.BATLVL}
And the result as seen on my web server is:
Source:Sun Room, Temperature:21.6%C2%B0F, Humidity:70%25, Battery Level:53%25
The values are correct but what is the additional information starting with the "%"?? I can always parse out the unwanted part on my web server but can anyone tell what is going on??
Thanks in advance....