Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Network Resources Variables

Featured Replies

Posted

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....
 

Solved by pinlawr

Go to solution

@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
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.

  • Author

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.

  • Author

This is what I get:

./FILES/WEB/sysconfig.txt not found

 

@dgwete

If your using an eisy, copy this line into your browser

//eisy.local:8443/WEB/sysconfig.txt

  • Author

So, what is this supposed to accomplish? As you can see, nothing is happening... 

//eisy.local:8443/WEB/sysconfig.txt

image.jpeg.307d77a7aa34151e6e297e5de0eef15a.jpeg

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.

13 hours ago, dgwete said:

eisy.local:8443/WEB/sysconfig.txt

Try using your IP address in place of eeisy.local

  • Author

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

@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?

 

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. 

  • Author

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.
 

@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

  • Author

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....

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.