private function GetVariableId() {
			$id = @IPS_GetObjectIDByName($this->moduleName, $this->instanceId);
			if ($id===false) {
				$position = count(IPS_GetChildrenIDs($this->instanceId)) * 10 + 10;
				$id = CreateVariable ($this->moduleName, 3 /*String*/, $this->instanceId, $position, "~String");
			}
			return $id;
		}
	$CivilDisplay      = CreateVariable("CivilDisplay",           3 /*String*/,  $categoryId_DataValues,  250, '~String', null,              '00:00 - 00:00');
	$CivilLimits       = CreateVariable("CivilLimits",            3 /*String*/,  $categoryId_DataValues,  260, '~String', $scriptId_Refresh, '05:00-07:00/19:00-21:00');

	$NauticBeg         = CreateVariable("NauticBegin",            3 /*String*/,  $categoryId_DataValues,  310, '~String', $scriptId_Refresh, '');
	$NauticEnd         = CreateVariable("NauticEnd",              3 /*String*/,  $categoryId_DataValues,  320, '~String', $scriptId_Refresh, '');
	$NauticBegLim      = CreateVariable("NauticBeginLimited",     3 /*String*/,  $categoryId_DataValues,  330, '~String', $scriptId_Refresh, '');
	$NauticEndLim      = CreateVariable("NauticEndLimited",       3 /*String*/,  $categoryId_DataValues,  340, '~String', $scriptId_Refresh, '');
	$NauticDisplay     = CreateVariable("NauticDisplay",          3 /*String*/,  $categoryId_DataValues,  350, '~String', null,              '00:00 - 00:00');
	$NauticLimits      = CreateVariable("NauticLimits",           3 /*String*/,  $categoryId_DataValues,  360, '~String', $scriptId_Refresh, '04:30-06:30/19:30-21:30');

	$AstronomicBeg     = CreateVariable("AstronomicBegin",        3 /*String*/,  $categoryId_DataValues,  410, '~String', $scriptId_Refresh, '');
	$AstronomicEnd     = CreateVariable("AstronomicEnd",          3 /*String*/,  $categoryId_DataValues,  420, '~String', $scriptId_Refresh, '');
	$AstronomicBegLim  = CreateVariable("AstronomicBeginLimited", 3 /*String*/,  $categoryId_DataValues,  430, '~String', $scriptId_Refresh, '');
	$AstronomicEndLim  = CreateVariable("AstronomicEndLimited",   3 /*String*/,  $categoryId_DataValues,  440, '~String', $scriptId_Refresh, '');
	$AstronomicDisplay = CreateVariable("AstronomicDisplay",      3 /*String*/,  $categoryId_DataValues,  450, '~String', null,              '00:00 - 00:00');
	$AstronomicLimits  = CreateVariable("AstronomicLimits",       3 /*String*/,  $categoryId_DataValues,  460, '~String', $scriptId_Refresh, '04:00-06:00/20:00-22:00');

	IPSUtils_Include ("IPSTwilight.ips.php", "IPSLibrary::app::modules::Weather::IPSTwilight");

	// ----------------------------------------------------------------------------------------------------------------------------
	// WebFront Installation
	// ----------------------------------------------------------------------------------------------------------------------------
	if ($WFC10_Enabled) {
		$categoryId_WebFront         = CreateCategoryPath($WFC10_Path);
		$categoryId_WebFrontTopLeft  = CreateCategory(  'TopLeft',  $categoryId_WebFront, 10);
		$categoryId_WebFrontTopRight = CreateCategory(  'TopRight', $categoryId_WebFront, 20);
		$categoryId_WebFrontBottom   = CreateCategory(  'Bottom',   $categoryId_WebFront, 30);
		$categoryId_WebFrontRight    = CreateCategory(  'Right',    $categoryId_WebFront, 40);

		CreateLinkByDestination('Sonnen-Aufgang/Untergang', $SunriseDisplay,    $categoryId_WebFrontTopLeft,  10);
		CreateLinkByDestination('Limits',                   $SunriseLimits,     $categoryId_WebFrontTopRight, 10);
 }
 // War nicht in Liste!
 if ($apName == "") {
     $apName = $client->ap_mac;
 }
 $ident = str_replace(":", "", $client->mac);
 $rootCatID = CreateCategory("Clients", "Clients", $parentID);
 $catID = CreateCategory($clientName, $ident . "_name", $rootCatID);
 CreateVariable("MAC", 3, $client->mac, $ident . "_mac", $catID);
 CreateVariable("IP", 3, $client->ip, $ident . "_ip", $catID);
 CreateVariable("AP Name", 3, $apName, $ident . "_apname", $catID);
 CreateVariable("Signal", 1, $client->signal, $ident . "_signal", $catID);
 CreateVariable("Radio", 3, $client->radio, $ident . "_radio", $catID);
 CreateVariable("TX Bytes", 1, $client->tx_bytes, $ident . "_txbytes", $catID);
 CreateVariable("RX Bytes", 1, $client->rx_bytes, $ident . "_rxbytes", $catID);
 CreateVariable("Uptime", 1, $client->uptime, $ident . "_uptime", $catID);
 $scriptResult .= "<td style='text-align:center'>{$apName}</td>";
 $scriptResult .= "<td style='text-align:center'>" . $client->essid . "</td>";
 $scriptResult .= "<td style='text-align:center'><div style='width:100%;height:20px;overflow:hidden;'>";
 // Pegelumwandlung - Entspricht leider nicht dem Wert in der Webconsole. Kein Plan wie die das berechnen
 /* 100% -35 / 50% -65 / 1% -95 */
 if ($client->signal <= -95) {
     $percent = 1;
 } else {
     if ($client->signal >= -35) {
         $percent = 100;
     } else {
         $percent = round(($client->signal + 95) / 0.6);
     }
 }
 if ($percent < 10) {
Exemple #4
0
<?php

include_once "../modules/KH_UniFi/UniFi/orga.php";
$parentID = IPS_GetParent($_IPS["SELF"]);
$wlanList = UniFi_GetWLANConfig($parentID);
$setWLANID = IPS_GetScriptIDByName("setWLAN", $parentID);
foreach ($wlanList->data as $wlan) {
    $ident = $wlan->_id;
    $rootCatID = CreateCategory("WLAN", "WLAN", $parentID);
    $catID = CreateCategory($wlan->name, $ident, $rootCatID);
    CreateVariable("ID", 3, $wlan->_id, $ident . "_id", $catID);
    CreateVariable("Enabled", 0, $wlan->enabled, $ident . "_enabled", $catID);
    $enabledID = IPS_GetVariableIDByName("Enabled", $catID);
    IPS_SetVariableCustomAction($enabledID, $setWLANID);
    IPS_SetVariableCustomProfile($enabledID, "~Switch");
    CreateVariable("Security", 3, $wlan->security, $ident . "_security", $catID);
}
	$powerId               = CreateVariable("Power",           0 /*Boolean*/,  $CategoryIdData, 100 , '~Switch', $actionScriptId, 0);
	$sourceId              = CreateVariable("Source",          1 /*Integer*/,  $CategoryIdData, 110 , 'NetPlayer_Source', $actionScriptId, 0 /*CD*/);
	$controlId             = CreateVariable("Control",         1 /*Integer*/,  $CategoryIdData, 120 , 'NetPlayer_Control', $actionScriptId, 2 /*Stop*/);
	$albumId               = CreateVariable("Album",           3 /*String*/,   $CategoryIdData, 130, '~String');
	$interpretId           = CreateVariable("Interpret",       3 /*String*/,   $CategoryIdData, 140, '~String');
	$categoryId            = CreateVariable("Category",        1 /*Integer*/,  $CategoryIdData, 150 , 'NetPlayer_Category', $actionScriptId, 0);
	$cdAlbumNavId          = CreateVariable("CDAlbumNav",      1 /*Integer*/,  $CategoryIdData, 160 , 'NetPlayer_CDAlbumNav', $actionScriptId, -1);
	$cdAlbumListId         = CreateVariable("CDAlbumList",     1 /*Integer*/,  $CategoryIdData, 170 , 'NetPlayer_CDAlbumList', $actionScriptId, -1);
	$cdTrackNavId          = CreateVariable("CDTrackNav",      1 /*Integer*/,  $CategoryIdData, 180 , 'NetPlayer_CDTrackNav', $actionScriptId, -1);
	$cdTrackListId         = CreateVariable("CDTrackList",     1 /*Integer*/,  $CategoryIdData, 190 , 'NetPlayer_CDTrackList', $actionScriptId, -1);
	$radioNavId            = CreateVariable("RadioNav",        1 /*Integer*/,  $CategoryIdData, 200 , 'NetPlayer_RadioNav', $actionScriptId, -1);
	$radioListId           = CreateVariable("RadioList",       1 /*Integer*/,  $CategoryIdData, 210 , 'NetPlayer_RadioList', $actionScriptId,-1);
	$controlTypeId         = CreateVariable("ControlType",     1 /*Integer*/,  $CategoryIdData, 300 , '', null, 0);
	$remoteControlId       = CreateVariable("RemoteControl",   3 /*String*/,   $CategoryIdData, 310 , '~HTMLBox', null, '<iframe frameborder="0" width="100%" src="../user/NetPlayer/NetPlayer_MP3Control.php" height=255px </iframe>');
	$mobileControlId       = CreateVariable("MobileControl",   3 /*String*/,   $CategoryIdData, 320 , '~HTMLBox', null, '<iframe frameborder="0" width="100%" src="../user/NetPlayer/NetPlayer_Mobile.php" height=1000px </iframe>');


	// Register Variable Constants
	SetVariableConstant ("NP_ID_CDCATEGORYNAME",  $cdCategoryNameId,       'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_CDDIRECTORYPATH", $cddirectoryPath,        'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_CDDIRECTORYNAME", $cddirectoryName,        'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_CDDIRECTORYIDX",  $cdIdxId,                'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_CDTRACKLISTHTML", $cdTrackListHtmlId,      'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_CDTRACKIDX",      $cdTrackIdxId,           'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');

	SetVariableConstant ("NP_ID_RADIONAME",       $radioNameId,            'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_RADIOURL",        $radioUrlId,             'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	SetVariableConstant ("NP_ID_RADIOIDX",        $radioIdxId,             'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');

	SetVariableConstant ("NP_ID_POWER",           $powerId,                'NetPlayer_IDs.inc.php', 'IPSLibrary::app::modules::NetPlayer');
	$Forecast2DayOfWeek       = CreateVariable("Tomorrow1Day",          3 /*String*/,  $categoryId_Data,  300,  '~String',  null, '');
	$Forecast2TempMin         = CreateVariable("Tomorrow1TempMin",      1 /*Integer*/, $categoryId_Data,  310,  null,       null, 0);
	$Forecast2TempMax         = CreateVariable("Tomorrow1TempMax",      1 /*Integer*/, $categoryId_Data,  320,  null,       null, 0);
	$Forecast2TextShort       = CreateVariable("Tomorrow1ForecastLong", 3 /*String*/,  $categoryId_Data,  330,  '~String',  null, '');
	$Forecast2TextLong        = CreateVariable("Tomorrow1ForecastShort",3 /*String*/,  $categoryId_Data,  340,  '~String',  null, '');
	$Forecast2Icon            = CreateVariable("Tomorrow1Icon",         3 /*String*/,  $categoryId_Data,  350,  '~String',  null, '');

	$Forecast3DayOfWeek       = CreateVariable("Tomorrow2Day",          3 /*String*/,  $categoryId_Data,  400,  '~String',  null, '');
	$Forecast3TempMin         = CreateVariable("Tomorrow2TempMin",      1 /*Integer*/, $categoryId_Data,  410,  null,       null, 0);
	$Forecast3TempMax         = CreateVariable("Tomorrow2TempMax",      1 /*Integer*/, $categoryId_Data,  420,  null,       null, 0);
	$Forecast3TextShort       = CreateVariable("Tomorrow2ForecastLong", 3 /*String*/,  $categoryId_Data,  430,  '~String',  null, '');
	$Forecast3TextLong        = CreateVariable("Tomorrow2ForecastShort",3 /*String*/,  $categoryId_Data,  440,  '~String',  null, '');
	$Forecast3Icon            = CreateVariable("Tomorrow2Icon",         3 /*String*/,  $categoryId_Data,  450,  '~String',  null, '');

	$iForecast                = CreateVariable("iForecast",             3 /*String*/,  $categoryId_Data,  1000, '~HTMLBox', null, '<iframe frameborder="0" width="100%" height="4000px" src="../user/Weather/Weather.php"</iframe>');

	// Webfront Installation
	if ($WFC10_Enabled) {
		DeleteWFCItems($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem);
		CreateWFCItemTabPane      ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent,  $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon);
		CreateWFCItemExternalPage ($WFC10_ConfigId, $WFC10_TabPaneItem.$WFC10_TabItem, $WFC10_TabPaneItem, $WFC10_TabOrder, $WFC10_TabName, $WFC10_TabIcon, "user\/IPSWeatherForcastAT\/Weather.php", 'false' /*BarBottomVisible*/);
		ReloadAllWebFronts();
	}

	// iPhone Installation
	if ($Mobile_Enabled) {
		$mobileId  = CreateCategoryPath($Mobile_Path, $Mobile_PathOrder, $Mobile_PathIcon);
		$mobileId  = CreateCategoryPath($Mobile_Path.'.'.$Mobile_Name, $Mobile_Order, $Mobile_Icon);

		CreateLink('Vorhersage',      $iForecast, $mobileId, 10);
	$ID_FileOutEnabled    = CreateVariable('FileOut_Enabled',    0 /*Boolean*/, $InstanceId, 400, '~Switch',            $ID_ScriptIPSLoggerChangeSettings, false,       'Power');
	$ID_FileOutLevel      = CreateVariable('FileOut_Level',      1 /*Integer*/, $InstanceId, 410, 'IPSLogger_Level',    $ID_ScriptIPSLoggerChangeSettings, 5 /*Debug*/, 'Intensity');
	$ID_FileOutDays       = CreateVariable('FileOut_Days',       1 /*Integer*/, $InstanceId, 420, 'IPSLogger_Days',     $ID_ScriptIPSLoggerChangeSettings, 1,           'Repeat');
	$ID_Log4IPSOutEnabled = CreateVariable('Log4IPSOut_Enabled', 0 /*Boolean*/, $InstanceId, 500, '~Switch',            $ID_ScriptIPSLoggerChangeSettings, true,        'Power');
	$ID_Log4IPSOutLevel   = CreateVariable('Log4IPSOut_Level',   1 /*Integer*/, $InstanceId, 510, 'IPSLogger_Level',    $ID_ScriptIPSLoggerChangeSettings, 5 /*Debug*/, 'Intensity');
	$ID_Log4IPSOutDays    = CreateVariable('Log4IPSOut_Days',    1 /*Integer*/, $InstanceId, 520, 'IPSLogger_Days',     $ID_ScriptIPSLoggerChangeSettings, 1,           'Repeat');
	$ID_EMailOutEnabled   = CreateVariable('EMailOut_Enabled',   0 /*Boolean*/, $InstanceId, 600, '~Switch',            $ID_ScriptIPSLoggerChangeSettings, false,       'Power');
	$ID_EMailOutLevel     = CreateVariable('EMailOut_Level',     1 /*Integer*/, $InstanceId, 610, 'IPSLogger_Level',    $ID_ScriptIPSLoggerChangeSettings, 5 /*Debug*/, 'Intensity');
	$ID_EMailOutPriority  = CreateVariable('EMailOut_Priority',  1 /*Integer*/, $InstanceId, 620, 'IPSLogger_Priority', $ID_ScriptIPSLoggerChangeSettings, 0,           'Return');
	$ID_EMailOutSendDelay = CreateVariable('EMailOut_SendDelay', 1 /*Integer*/, $InstanceId, 630, 'IPSLogger_Delay',    $ID_ScriptIPSLoggerChangeSettings, 5,           'LockClosed');
	$ID_EMailOutMsgList   = CreateVariable('EMailOut_MsgList',   3 /*String*/,  $InstanceId, 640, '~TextBox',           null, "",                                       'Mail');
	$ID_EchoOutEnabled    = CreateVariable('EchoSOut_Enabled',   0 /*Boolean*/, $InstanceId, 700, '~Switch',            $ID_ScriptIPSLoggerChangeSettings, false,       'Power');
	$ID_EchoOutLevel      = CreateVariable('EchoOut_Level',      1 /*Integer*/, $InstanceId, 710, 'IPSLogger_Level',    $ID_ScriptIPSLoggerChangeSettings, 9 /*All*/,   'Intensity');
	$ID_ProwlOutEnabled   = CreateVariable('ProwlOut_Enabled',   0 /*Boolean*/, $InstanceId, 800, '~Switch',            $ID_ScriptIPSLoggerChangeSettings, false,       'Power');
	$ID_ProwlOutLevel     = CreateVariable('ProwlOut_Level',     1 /*Integer*/, $InstanceId, 810, 'IPSLogger_Level',    $ID_ScriptIPSLoggerChangeSettings, 1 /*Error*/, 'Intensity');
	$ID_ProwlOutPriority  = CreateVariable('ProwlOut_Priority',  1 /*Integer*/, $InstanceId, 820, 'IPSLogger_Priority', $ID_ScriptIPSLoggerChangeSettings, 0,           'Return');

	SetVariableConstant ("c_ID_SingleOutEnabled",   $ID_SingleOutEnabled, 'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_SingleOutLevel",     $ID_SingleOutLevel,   'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_SingleOutMsg",       $ID_SingleOutMsg,     'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_HtmlOutEnabled",     $ID_HtmlOutEnabled,   'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_HtmlOutLevel",       $ID_HtmlOutLevel,     'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_HtmlOutMsgCount",    $ID_HtmlOutMsgCount,  'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_HtmlOutMsgId",       $ID_HtmlOutMsgId,     'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_HtmlOutMsgList",     $ID_HtmlOutMsgList,   'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_IPSOutEnabled",      $ID_IPSOutEnabled,    'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_IPSOutLevel",        $ID_IPSOutLevel,      'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_EMailOutEnabled",    $ID_EMailOutEnabled,  'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_EMailOutLevel",      $ID_EMailOutLevel,    'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_EMailOutPriority",   $ID_EMailOutPriority, 'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	SetVariableConstant ("c_ID_EMailOutDelay",      $ID_EMailOutSendDelay,'IPSLogger_IDs.inc.php', 'IPSLibrary::app::core::IPSLogger');
	$id_ScriptTimer   = IPS_GetScriptIDByName('IPSEDIP_Timer',   $CategoryIdApp);
	$id_ScriptEvent   = IPS_GetScriptIDByName('IPSEDIP_Event',   $CategoryIdApp);
	$id_ScriptReceive = IPS_GetScriptIDByName('IPSEDIP_Receive', $CategoryIdApp);


	foreach (IPSEDIP_GetConfiguration() as $configItem=>$configData) {
	   if ($configData[EDIP_CONFIG_ROOT]<>"") {
			$id_Instance   = CreateDummyInstance($configItem, $CategoryIdData, 10);
			$id_Register   = CreateVariable(EDIP_VAR_REGISTER,     1 /*Integer*/, $id_Instance,  10, '', null, 0);
			$id_Root       = CreateVariable(EDIP_VAR_ROOT,         1 /*Integer*/, $id_Instance,  20, '', null, 0);
			$id_Current    = CreateVariable(EDIP_VAR_CURRENT,      1 /*Integer*/, $id_Instance,  40, '', null, 0);
			$id_Categories = CreateVariable(EDIP_VAR_OBJECTIDS,    3 /*String*/,  $id_Instance,  50, '', null, '');
			$id_Variables  = CreateVariable(EDIP_VAR_OBJECTCMDS,   3 /*String*/,  $id_Instance,  60, '', null, '');
			$id_Variables  = CreateVariable(EDIP_VAR_OBJECTVALUES, 3 /*String*/,  $id_Instance,  60, '', null, '');
			$id_value      = CreateVariable(EDIP_VAR_OBJECTEDIT,   1 /*Integer*/, $id_Instance,  70, '', null, 0);

			// Create Serial Port
         $id_IOComPort = null;
			if ($configData[EDIP_CONFIG_COMPORT] <> '') {
				$id_IOComPort = CreateSerialPort('EDIP_'.$configData[EDIP_CONFIG_NAME], $configData[EDIP_CONFIG_COMPORT], 115200, 1, 8, 'None',0, $IgnoreIOPortInstanceError);
			}
			// Create Register Variable
			$registerIdConfig = $configData[EDIP_CONFIG_REGISTER];
			if ($registerIdConfig==null) {
			   if ($id_IOComPort==null) {
			      throw new IPSConfigHandlerException('Register Variable and ComPort not defined !!!');
			   }
				$registerIdConfig = CreateRegisterVariable($configData[EDIP_CONFIG_NAME].'_Register', $CategoryIdHW, $id_ScriptReceive, $id_IOComPort);
			}
			// Create Root Category
	$CategoryIdApp      = $moduleManager->GetModuleCategoryID('app');

	// Add Scripts
	$scriptIdSearchUpdates   = IPS_GetScriptIDByName('IPSModuleManagerGUI_SearchUpdates', $CategoryIdApp);

	// Add Update Scripts
	$timerId_SearchUpdates   = CreateTimer_OnceADay ('SearchUpdates', $scriptIdSearchUpdates, rand(0,4), rand(0,59)) ;


	// ===================================================================================================
	// Add Module Details
	// ===================================================================================================
	$variableIdStatus        = CreateVariable(IPSMMG_VAR_ACTION,      3 /*String*/,  $CategoryIdData, 10, '~String',  null,   'Overview', '');
	$variableIdModule        = CreateVariable(IPSMMG_VAR_MODULE,      3 /*String*/,  $CategoryIdData, 20, '~String',  null,   '', '');
	$variableIdInfo          = CreateVariable(IPSMMG_VAR_INFO,        3 /*String*/,  $CategoryIdData, 30, '~String',  null,   '', '');
	$variableIdHTML          = CreateVariable(IPSMMG_VAR_HTML,        3 /*String*/,  $CategoryIdData, 40, '~HTMLBox', null,   '<iframe frameborder="0" width="100%" height="600px"  src="../user/IPSModuleManagerGUI/IPSModuleManagerGUI.php"</iframe>', 'Information');

	// ----------------------------------------------------------------------------------------------------------------------------
	// Webfront Installation
	// ----------------------------------------------------------------------------------------------------------------------------
	if ($WFC10_Enabled) {
		$categoryId_WebFront         = CreateCategoryPath($WFC10_Path);
		EmptyCategory($categoryId_WebFront);
		CreateLink('IPSLibrary',  $variableIdHTML,  $categoryId_WebFront, 10);

		// System Tabpane
		CreateWFCItemTabPane   ($WFC10_ConfigId, $WFC10_TabPaneItem, $WFC10_TabPaneParent,  $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon);

		// IPSLibrary Tabpane
		$tabItem = $WFC10_TabPaneItem.$WFC10_TabItem;
		DeleteWFCItems($WFC10_ConfigId, $tabItem);
		$ControlIdStartTime    = CreateVariable(c_Control_StartTime,    3 /*String*/,  $CircleId,  30, '~String',              $ScriptIdChangeSettings, '07:00', 'Clock');
		$ControlIdDuration     = CreateVariable(c_Control_Duration,     1 /*Integer*/, $CircleId,  40, 'IPSWatering_Duration', $ScriptIdChangeSettings, 45, 'Intensity');
		$ControlIdProgram      = CreateVariable(c_Control_Program,      1 /*Integer*/, $CircleId,  50, 'IPSWatering_Program',  $ScriptIdChangeSettings, c_ProgramId_EveryDay, 'Calendar');
		$ControlIdSensor       = CreateVariable(c_Control_Sensor,       1 /*Integer*/, $CircleId,  60, 'IPSWatering_Sensor',   $ScriptIdChangeSettings, 0, 'Rainfall');
		$ControlIdLastDate     = CreateVariable(c_Control_LastDate,     3 /*String*/,  $CircleId, 100, '~String',              null, date(c_Format_LastDate));
		$ControlIdLastTime     = CreateVariable(c_Control_LastTime,     3 /*String*/,  $CircleId, 110, '~String',              null, date(c_Format_LastTime));
		$ControlIdNextDate     = CreateVariable(c_Control_NextDate,     3 /*String*/,  $CircleId, 120, '~String',              null, date(c_Format_NextDate));
		$ControlIdNextTime     = CreateVariable(c_Control_NextTime,     3 /*String*/,  $CircleId, 130, '~String',              null, date(c_Format_NextTime));
		$ControlIdNextDisplay  = CreateVariable(c_Control_NextDisplay,  3 /*String*/,  $CircleId, 140, '~String',              null, '');
		$ControlIdToBeDone     = CreateVariable(c_Control_ToBeDone,     3 /*String*/,  $CircleId, 150, '~String',              null, 'Automatik Aus');
		$Idx = $Idx  + 10;
	}
	// Logging
	$CategoryIdLog	 = CreateCategory('Log', $CategoryIdData, 30);
	$ControlIdLog   = CreateVariable('LogMessages',  3 /*String*/,  $CategoryIdLog, 40, '~HTMLBox', null, '');
	$ControlIdLogId = CreateVariable('LogId',        1 /*Integer*/, $CategoryIdLog, 50, '',         null, 0);

	// ----------------------------------------------------------------------------------------------------------------------------
	// Webfront Definition
	// ----------------------------------------------------------------------------------------------------------------------------
	if ($WFC10_Enabled) {
		$WebFrontId               = CreateCategoryPath($WFC10_Path, 10);
		EmptyCategory($WebFrontId);
		$WebFrontOverviewId       = CreateCategory(    'Overview', $WebFrontId,    0);
		$WebFrontOverviewTop1     = CreateCategory(    'Top_1',    $WebFrontOverviewId,    10);
		$WebFrontOverviewTop2     = CreateCategory(    'Top_2',    $WebFrontOverviewId,    20);
		$WebFrontOverviewBottom1  = CreateCategory(    'Bottom_1', $WebFrontOverviewId,    30);
		$WebFrontOverviewBottom2  = CreateCategory(    'Bottom_2', $WebFrontOverviewId,    40);

		DeleteWFCItems($WFC10_ConfigId, $WFC10_TabPaneItem);
		CreateWFCItemTabPane   ($WFC10_ConfigId, $WFC10_TabPaneItem,             $WFC10_TabPaneParent,           $WFC10_TabPaneOrder, $WFC10_TabPaneName, $WFC10_TabPaneIcon);