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.

Curl to Network Resource translation

Featured Replies

Posted

Did some searching but couldn't find anything of the sort - so here we are...

Got a Digital Logger's DIN Relay 4, trying to leverage Network Resources to trigger REST API call on said DIN Relay 4.  Using Curl on test box on the same network I'm able to have a relay fire, but can't figure out how to chop up the curl command into something for Network Resources to consume...Any ideas?

Working curl:

curl --digest -u admin:admin -X PUT -H "X-CSRF: x" --data "value=true" "http://10.10.10.10/restapi/relay/outlets/2/state/"

Thanks in advanced!

 

Solved by whywork

Go to solution
  • Author

Found a work around in the mean time; Home Assitant + Wemo Relay Devices (Digital Loggers allows their relays to show up as a Wemo device).   I can setup the necessary automations in HA until i figure it out further with Network Resources.  

  • Solution

Hi

I dont have Din Relay but do have Digital loggers web powerswitch

Here is the network resource i use to turn on outlet 3

GET /outlet?3=ON HTTP/1.1
Host: 192.168.1.174:8074
User-Agent: Mozilla/4.0
Connection: Close
Content-Type: application/x-www-form-urlencoded
Authorization: Basic (password is requested, then saved when setting up network resource)
 

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.