Your Universal Remote Control Center
RemoteCentral.com
Custom Installers' Lounge Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 12 made on Friday November 3, 2017 at 00:52
crosen
Senior Member
Joined:
Posts:
April 2009
1,262
The Web API for WattBox is on the SnapAV Web site. This is from that document:

Control Outlet Command
Your complete packet request consists of the request as shown:

"GET control.cgi?outlet=<#>&command=<#> HTTP/1.1"CRLF
"Host:" CRLF
"Keep-Alive: 300"CRLF
"Connection: keep-alive"CRLF
"Authorization: Basic" CRLF
"User-Agent: APP"CRLFCRLF

The variable characters are described below.

Outlet Number:
• When entering an outlet number, 0 selects all outlets, and only supports the reset command.
• Otherwise select the numeral that matches the outlet number desired.
• WB-300-IP-3 therefore supports outlet numbers 0–3.
• WB-700-IPV-12 supports outlet numbers 0–12.

Command Number:
• 0: power off
• 1: power on
• 3: power reset (available only when outlet is already on)
• 4: auto reboot on
• 5: auto reboot off

Example, to reset outlet 1, use the command:
control.cgi?outlet=1&command=3

To create the authorization code, concatenate the account name, a colon, and the account password, then use base64 encoding
to create a string. For example, if the account is admin and the password is 1234, then take the string admin:1234 and encode
it with base64. This gets you the string YWRtaW46MTIzNA==, which is your authorization.
If it's not simple, it's not sufficiently advanced.


Hosting Services by ipHouse