diff --git a/web/drupal/modules/logger/logger.module b/web/drupal/modules/logger/logger.module index ee979ef..f9f9219 100644 --- a/web/drupal/modules/logger/logger.module +++ b/web/drupal/modules/logger/logger.module @@ -149,9 +149,35 @@ function logger_menu() { 'type' => MENU_LOCAL_TASK, 'weight' => 4, ); + $items['installation'] = array( + 'title' => '', + 'description' => 'Howto install a Fluksometer', + 'page callback' => '_logger_installation', + 'access callback' => TRUE, + 'type' => MENU_CALLBACK, + ); + return $items; } + +function _logger_installation(){ + $output = '
'; + $output .= "step 1"; + $output .= "

STEP 1: CONFIGURING WIFI
Power up the Fluksometer. Connect your computer to the Fluksometer's ethernet port. Surf to http://192.168.255.1. Configure the wireless interface with the proper name and security key.

"; + $output .= "step 2"; + $output .= "

STEP 2: SECURING THE FLUKSOMETER
Disconnect all cables from the Fluksometer. Find a suitable location near the fuse box to install the Fluksometer. Secure the Fluksometer with the plastic cable tie.

"; + $output .= "step 3"; + $output .= "

STEP 3: ATTACHING THE CURRENT CLAMP
For safety reasons, switch off the main electricity supply. For a single phase supply, attach the current clamp to one of the two cables running from the electricity meter to the fuse box. Close the clamp firmly.

"; + $output .= "step 4"; + $output .= "

STEP 4: CONNECTING THE CLAMP'S SENSOR CABLE
Connect the cable from the current clamp to the Fluksometer's input port. Take care of connecting the black and red cable as shown in the drawing on the right. Only apply gentle force when fastening the two screws.

"; + $output .= "step 4"; + $output .= "

STEP 5: POWERING UP
Switch the main electricity supply back on. Activate the Fluksometer by connecting the power plug.

"; + $output .= "
"; + + return $output; +} + /** * Callback functions registered in the logger_menu section */ diff --git a/web/drupal/modules/logger/xmlrpc1.inc b/web/drupal/modules/logger/xmlrpc1.inc index ee03d21..80296a9 100644 --- a/web/drupal/modules/logger/xmlrpc1.inc +++ b/web/drupal/modules/logger/xmlrpc1.inc @@ -101,6 +101,8 @@ function _logger_measurement_add($auth, $logs) { } system($command, $return); + // watchdog_xmlrpc('logger.measurementAdd', '%command', array('%command' => $command), WATCHDOG_NOTICE); //debugging + if ($return == 0) { // update the night rrd every day at 6AM local time