Results 1 to 3 of 3
  1. #1

    Default IP Power Switch control over ACP Web interface

    Hello to all

    i have a IP Power Switch 9258 who can switch on and off 4 AC Power plugs. Now i want to control this over the web interface. i made a tiddler


    <html>
    <head>
    <title>I/O Control</title>
    <meta HTTP-EQUIV="Pragma" CONTENT="No-cach">
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"></meta>
    </head>
    <body>
    <font FACE="Roman,Arial" COLOR="#0000FF" SIZE="+1">I/O Control</font>
    <hr WIDTH="100%">

    <form NAME="ioControl" METHOD="post" enctype="text/plain" ACTION="/tgi/iocontrol.tgi">
    <table BORDER="1">
    <tr ALIGN="center" VALIGN="middle">
    <td>Power</td>
    <td>Name</td>
    <td>Control</td>
    <tr ALIGN="center">
    <td>Power1</td>
    <td><input NAME="pw1Name" VALUE="Dome" SIZE="16" MAXLENGTH="16"></td>
    <td><input TYPE="radio" NAME="P60" VALUE="On" > On <input TYPE="radio" NAME="P60" VALUE="Off" CHECKED> Off</td>
    <tr ALIGN="center">
    <td>Power2</td>
    <td><input NAME="pw2Name" VALUE="Teleskop" SIZE="16" MAXLENGTH="16"></td>
    <td><input TYPE="radio" NAME="P61" VALUE="On" > On <input TYPE="radio" NAME="P61" VALUE="Off" CHECKED> Off</td>
    <tr ALIGN="center">
    <td>Power3</td>
    <td><input NAME="pw3Name" VALUE="Camera" SIZE="16" MAXLENGTH="16"></td>
    <td><input TYPE="radio" NAME="P62" VALUE="On" > On <input TYPE="radio" NAME="P62" VALUE="Off" CHECKED> Off</td>
    <tr ALIGN="center">
    <td>Power4</td>
    <td><input NAME="pw4Name" VALUE="frei" SIZE="16" MAXLENGTH="16"></td>
    <td><input TYPE="radio" NAME="P63" VALUE="On" > On <input TYPE="radio" NAME="P63" VALUE="Off" CHECKED> Off</td>
    <tr ALIGN="center">
    <td></td>
    <td></td>
    <td><input TYPE="submit" VALUE="Apply" NAME="Apply"></td></tr></table></form>
    <script LANGUAGE="JavaScript" TYPE="text/JavaScript">
    var num=4;
    </script>

    </body>
    </html>


    Now the problem if i start the tiddler from remote computer 50 km away then he add to my webinterface adresse this /tgi/iocontrol.tgi
    beacause if i am local logged in at the webinterface then after press the Apply button the Aktion send the button settings to the local ip adresse 192.168.1.10/tgi/iocontrol.tgi and there it works


    I read at the manual that the IP power switch also can be controlled with commands. This is also a cool method to control it, but i dont know how i can the commands with the buttons and the Apply button. Maybe i need for this functions an direct ip access from outside like dyn. At the moment the IP power is only internal network (so it is not so easy to hack it) but on the other side i can not reboot the PC who controll the ip switch if he hang. So in future the ip switch (he can also handle dyn updater) will hang in internet.

    So i only need the same cool buttons ( maybe above the buttons a field for "Loginname" and "password" ) like the tiddler above and at press Apply he should send. Maybe someone who can programm HTML or Javacript has an idea.

    Thank you

    Josef Huber


    HTTP Commands for the IP 9258 power switch
    Http commands allow you to control the device with commands. The basic
    commands are provided below.
    There are two ways to input http commands with authorization required
    *
    Password in http:

    for Browser IE 7.0 or below
    http://loginassword@ipaddrssort/set.cmd?cmd=command
    *
    Password not in http: for Browser IE 7.0 and higher
    http://ipaddrssort/set.cmd?user=login+pass=password+cmd=command
    Note: If you use the password not in http: command you will need to enter it
    when the browser asks for the password.
    a
    .)
    Set Power
    Command
    The Set Power command allows you to control the devices on/off through the http
    commands. With this command you can integrate can integrate the 9258xx

    with any other system.

    Command format:
    http://iport/set.cmd?cmd=setpower+p61=1+p62=0+p63=1+p64=1


    Outlet Power On Power Off

    Output 1 61 = 1 61 = 0

    Output 2 62= 1 62= 0

    Output 3 63= 1 63= 0

    Output 4 64= 1 64= 0


    Example

    http://192.168.1.3/set.cmd?cmd=setpower+p61=1+p62=0+p63=1+p64=1


    Output61=1 p62=0 p63=1 p64=1


    Example . For Single Port Control Off


    http://192.168.1.3/set.cmd?cmd=setpower+p61=0

    Output:
    P61=0

  2. #2
    Join Date
    Feb 2012
    Location
    Charlottesville, VA
    Posts
    885

    Default

    Hi Josef-

    I can't help with the 9258 switch, so will defer that to others. But here is an alternative where all of the code for ACP has been created, the Digital Loggers Switch for $129:

    http://www.digital-loggers.com/lpc.html

    Here is a link to a Tiddler to access the login for the switch from inside the network over the LAN and over the Internet:

    http://forums.dc3.com/showthread.php...oggers+Tiddler

    Here is a link to use the switch to ping your computer, and restart the computer if it freezes:

    http://forums.dc3.com/showthread.php...9528#post49528

    Finally, I have a startup and shutdown script to control the Digital Loggers switch. Here's a link to those scripts with instructions:

    http://forums.dc3.com/showthread.php...5971#post45971

    And to make those scripts work, you'll need a file called ECP2.exe which can be found here:

    http://forums.dc3.com/showthread.php...5542#post45542

    So that might be an alternative to the 9258 switch. I realize that it involves an additional purchase for $129. But the benefit is that a lot of people have helped to work out the code to work with ACP and Scheduler, so implementation might be easier.

    Best of luck,

    Rob
    Rob Capon
    (Self-appointed) "Executive Director"
    Stillhouse Mountain Observatory
    Charlottesville, VA
    ----------------------------------
    RCOS 12.5 with SBIG STL11000M
    Televue NP101is with SBIG ST8300
    Paramount ME with SkyX
    Techn. Innovations PD10 with Digital Domeworks
    Robofocuser
    ACP with MaximDL and FocusMax

  3. #3
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    28,257

    Default

    Thank you so much Rob.
    -- Bob

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Power control for CPS power strip?
    By Joel Hatfield in forum Hardware/Software/Driver Topics Not Directly Related to Our Software
    Replies: 2
    Last Post: Aug 16, 2010, 13:35
  2. Can ACP control power switching devices?
    By Paul Gregory in forum Pre-Sales Technical Questions and Help
    Replies: 7
    Last Post: Jul 13, 2009, 23:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •