Originally posted by Michael McSharry
View Post
Announcement
Collapse
No announcement yet.
8 Channel Relay Network IP 8 Relay and 8 Inputs
Collapse
X
-
based on the indigo script, try the following in your browser first. Ensure you've changed the ip to the correct ip, an user (admin) and password (12345678)..
Code:http://admin:12345678@192.168.1.167/relay_en.cgi?saida=1&relayCommand=on
Code:http://admin:12345678@192.168.1.167/relay_en.cgi?saida1relayCommand=on
Code:&hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida=1&relayCommand=on",TRUE,80)
Code:&hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida1relayCommand=on",TRUE,80)
Comment
-
Originally posted by lveatch View Postbased on the indigo script, try the following in your browser first. Ensure you've changed the ip to the correct ip, an user (admin) and password (12345678)..
Code:http://admin:12345678@192.168.1.167/relay_en.cgi?saida=1&relayCommand=on
Code:http://admin:12345678@192.168.1.167/relay_en.cgi?saida1relayCommand=on
Code:&hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida=1&relayCommand=on",TRUE,80)
Code:&hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida1relayCommand=on",TRUE,80)
Sorry, dont work coming to the side where the buttons is but no cange of relay
Comment
-
There was another thread recently where http basic authorization was discussed and eventually reached a successful conclusion. Here is a script that you might want to try that builds on those lessons learned.
Code:Sub Main(param As String) Const Debug As Boolean = False Const logName As String = "relay" '=== adjust as required ==== Const addr = "192.168.1.167" Const user As String = "admin" Const pass As String = "12345678" '==== ' default action is "on" - enter value in 'Parameters' field to override this Dim action As String = "on" If param <> "" Then action = param Dim auth As String = user & ":" & pass Dim autha As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(auth) Dim headers As String = "Authorization: Basic " & System.Convert.ToBase64String(autha) Dim url As String = "http://" & addr & "/relay_en.cgi?relay1" & action & "=" & action Dim s = hs.URLAction(url, "GET", "", headers) If Debug Then hs.WriteLog(logName, s) End Sub
- Likes 1
Comment
-
Originally posted by Baxe View Post
Sorry, dont work coming to the side where the buttons is but no cange of relay
Furthermore, can you right-click in the page empty space and "view page source" and send that back as well. You may need to attach it in a text file and upload it.
Comment
-
Found this on their web site.. http://www.iotzone.cn/upload/file/1530409837.pdf (had to register)
Try this in your web browser.
http://admin:12345678@192.168.1.166/state.cgi
http://admin:12345678@192.168.1.166/...gi?relayon1=on
http://admin:12345678@192.168.1.166/...i?relayon1=off
http://admin:12345678@192.168.1.166/...i?pulse1=pulse
Comment
-
Originally posted by lveatch View PostFound this on their web site.. http://www.iotzone.cn/upload/file/1530409837.pdf (had to register)
Try this in your web browser.
http://admin:12345678@192.168.1.166/state.cgi
http://admin:12345678@192.168.1.166/...gi?relayon1=on
http://admin:12345678@192.168.1.166/...i?relayon1=off
http://admin:12345678@192.168.1.166/...i?pulse1=pulse
//jens
Skickat från min iPhone med Tapatalk Pro
Comment
-
Find this any one Does anyone understand
Create a Virtual Output with address
tcp://192.168.1.166:1234
Create a Virtual Output Command with
Command for ON:
L1\r\n
Command for OFF:
D1\r\n
Use as digital output: YES
That's it.
You have to send an ON state (for example from a switch block), not an impuls.
From this page https://www.loxforum.com/forum/faqs-...-working/page2
Comment
-
Originally posted by Baxe View PostFind this any one Does anyone understand
Homeseer as similar communicaiton options. You'll hear that the HTTP method is the JSON interface, and the TCP method is the ASCII interface.
In reading the forum url you just posted and re-looking at the indigo posting / code, I have another test for you. Copy and paste into your browser and report back.
Code:http://admin:12345678@192.168.1.167/relay_en.cgi?saida1on=on
Code:http://admin:12345678@192.168.1.167/relay_en.cgi?saida1on=1
Code:telnet 192.168.1.167 1234
Comment
Comment