Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Curl to Network Resource translation

Featured Replies

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

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

Navigation

Search

Search

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.