VM201 dll

I want to control the VM201 from another site. (more Users)

I found the following CGI command:

User:Password@192.168.0.99 (Autologin)
192.168.0.99/cgi/leds.cgi?led=0 (Send click for switch 0)
192.168.0.99/cgi/timers.cgi?timer=0 (Send click for Timer 0)
192.168.0.99/cgi/status.cgi (XML File with Status all switch and Timers)
192.168.0.99/cgi/input.cgi?input=0 (Send click for Input switch)

Are there any other commands that can be accessed directly via a URL?
Seeking a command of Switchs for 5 seconds opens
Like: 192.168.0.99/cgi/leds.cgi?led=1&time=5

thx m4tnix

These are undocumented features of the VM201 that are solely meant to be used by the javascript in the web interface, you will need to experiment with them if you really want to use them.

M4tnix,

I use perl with the following code to latch mine. The code below will latch the first input for 5s.

#!/usr/bin/perl
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
use Data::Dumper;

$ua = LWP::UserAgent->new(keep_alive=>1);
my $req = POST “http://192.168.0.99/cgi/leds.cgi?led=0”;
my $res = $ua->request($req);
print(“sleeping\n”);
sleep(5);
$ua = LWP::UserAgent->new(keep_alive=>1);
my $req = POST “http://192.168.0.99/cgi/leds.cgi?led=0”;
my $res = $ua->request($req);

That is a good example, you could even parse the statuses in Perl.

Hi Guys!

Great equipment this one from velleman! Anyway, i don’t know if you guys are familiar with iRule but its an iOs app that allows to link http commands to a button on this application.

I can get the first relay to change it’s status, for example: through this command:

(VM201ip/cgi/leds.cgi?led=0

but I need to create a button (and for that I need a http command) to turn off ALL relays.

I can attached multiple commands to a button so, using this command I can change the status of all the relays. But I’ll not be sure that all of them are OFF. Is there a command for that?
a http line that makes sure the one’s that are OFF remains OFF and the other one’s change it’s status?

Thanks in advance,
Joao