dgwete Posted February 12 Posted February 12 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....
Geddy Posted February 12 Posted February 12 @dgwete % is "%25" in HTML. %C2%B0 = degree symbol (the % are (probably) spaces) 1 hour ago, dgwete said: My current firmware is 5.4.5 and the UI is the same. Is there a reason you haven't updated the eisy in ages? 5.4.5 is from 2022 and didn't appear to have an official release notice (from the prior versions area). Step one in most support cases would be to upgrade to current firmware. Many "bugs" and issues are fixed along the way.
Solution pinlawr Posted February 12 Solution Posted February 12 Quote Source:Sun Room, Temperature:21.6%C2%B0F, Humidity:70%25, Battery Level:53%25 That is URL (not HTML) encoded. You may check your network resource and change the "mode" from URL Encode to Raw Text. Or, if that doesn't help, depending on the code on the server, you should be able to call a URL decode routine. URL decoded output would then be: Source:SunRoom,Temperature:21.6°F,Humidity:70%,BatteryLevel:53% The degree (º) and percent (%) symbols are being encoded.
dgwete Posted February 12 Author Posted February 12 As far as the hardware version, that was going to be my next question. I followed the instructions that say from admin logon, to go to Configuration->System and click on Upgrade Packages. I've done this a couple of times without the firmware updating. I've rebooted too. I also tried to start the upgrade from the Mobile App. I'm at a loss. I'll also try the different coding/decoding schemes mentioned.
Techman Posted February 12 Posted February 12 @dgwete When you run the attached url, what does it show for your UDX version View EISY config file.url
dgwete Posted February 12 Author Posted February 12 This is what I get: ./FILES/WEB/sysconfig.txt not found
Techman Posted February 12 Posted February 12 @dgwete If your using an eisy, copy this line into your browser //eisy.local:8443/WEB/sysconfig.txt
dgwete Posted February 13 Author Posted February 13 So, what is this supposed to accomplish? As you can see, nothing is happening... //eisy.local:8443/WEB/sysconfig.txt
Techman Posted February 13 Posted February 13 In the admin console under help | about, what are your firmware and UI versions Can you see your eisy in your router? Try removing power from the eisy for about 15 seconds. If that doesn't correct the issue then you should probably submit a support ticket.
DennisC Posted February 13 Posted February 13 13 hours ago, dgwete said: eisy.local:8443/WEB/sysconfig.txt Try using your IP address in place of eeisy.local 1
dgwete Posted February 13 Author Posted February 13 So, I disconnected power, waited 20sec, and powered back up as was suggested. The eisy never came back online. I waited over an hour and still nothing. So, i repeated the process and went to bed. This morning the device is still not online. I checked my router, and it is no longer showing up there either. I just disconnected the PLM and Z-Wave dongle and cycled power once again. I'm not feeling any good vibes... I'll wait and if nothing happens then maybe a factory reset is in order. A support ticket is next
Techman Posted February 13 Posted February 13 @dgwete Check your connection between the eisy and your router. Try another ethernet cable if vyou have one. Is there any led activity on the eisy network socket?
DennisC Posted February 13 Posted February 13 6 hours ago, dgwete said: So, I disconnected power, waited 20sec, and powered back up as was suggested. The eisy never came back online. I waited over an hour and still nothing. So, i repeated the process and went to bed. This morning the device is still not online. I checked my router, and it is no longer showing up there either. I just disconnected the PLM and Z-Wave dongle and cycled power once again. I'm not feeling any good vibes... I'll wait and if nothing happens then maybe a factory reset is in order. A support ticket is next Try a new power supply if you haven't already.
dgwete Posted February 13 Author Posted February 13 I created a support ticket and after connecting a monitor and keyboard, Support had me type a few commands from the terminal that restored my system. I typed these commands: sudo dhclient re0 ifconfig re0 (make sure it has an IP) sudo pkg install -f dhcpcd sudo rm /var/udx/.udx_install_cleanup sudo shutdown -r now (it reboots). So now I'm back up and running.
Techman Posted February 13 Posted February 13 @dgwete Glad you're up and running. Are you able to view your config file. It shows the current UDX and the OS versions //eisy.local:8443/WEB/sysconfig.txt
dgwete Posted February 14 Author Posted February 14 Since the system was up and running, I tried to "Upgrade Packages" again as I was still on 5.4.5. When nothing happened, again, Support dialed into my computer with GoToAssist, using Putty that I have on my desktop, to telnet into the Eisy. Support started the upgrade process from within a terminal window. Which bricked the system. It boots to the login prompt but wouldn't allow any logins. A replacement Eisy is on the way.... 1
Recommended Posts