Added password authentication (needed if not logged in via browser from the same ip address) and status (which ports are on/off).

This commit is contained in:
Florian Arndt
2013-08-10 16:41:06 +02:00
parent 2ff1f7f0bb
commit 253c30e0a9
2 changed files with 57 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
<?php
require_once dirname(__FILE__) . '/class.EnerGenieSwitcher.php';
$egs = new EnerGenieSwitcher('10.49.0.103', true);
$egs = new EnerGenieSwitcher('1.2.3.4', 'my-password');
$egs->doSwitch(array(
1 => EnerGenieSwitcher::ON,
2 => EnerGenieSwitcher::OFF,