$WFC10_TabOrder = $moduleManager->GetConfigValueInt('TabOrder', 'WFC10'); $Mobile_Enabled = $moduleManager->GetConfigValue('Enabled', 'Mobile'); $Mobile_Path = $moduleManager->GetConfigValue('Path', 'Mobile'); $Mobile_PathOrder = $moduleManager->GetConfigValueInt('PathOrder', 'Mobile'); $Mobile_PathIcon = $moduleManager->GetConfigValue('PathOrder', 'Mobile'); $Mobile_Name = $moduleManager->GetConfigValue('Name', 'Mobile'); $Mobile_Order = $moduleManager->GetConfigValueInt('Order', 'Mobile'); $Mobile_Icon = $moduleManager->GetConfigValue('Icon', 'Mobile'); // ---------------------------------------------------------------------------------------------------------------------------- // Program Installation // ---------------------------------------------------------------------------------------------------------------------------- $Location = IPSTWILIGHT_LOCATION; $categoryId_Data = $moduleManager->GetModuleCategoryID('data'); $categoryId_App = $moduleManager->GetModuleCategoryID('app'); $categoryId_DataGraphics = CreateCategory('Graphics', $categoryId_Data, 10); $categoryId_DataValues = CreateCategory('Values', $categoryId_Data, 20); // Scripts $scriptId_Refresh = IPS_GetScriptIDByName('IPSTwilight', $categoryId_App); $timerId_Refresh = CreateTimer_OnceADay ('Refresh', $scriptId_Refresh, 0, 15) ; // Graphics $YearMediaId = CreateMedia ('IPSTwilight_Year', $categoryId_DataGraphics, IPS_GetKernelDir().'media\\IPSTwilight_Year.gif', false,1,'Sun'); $YearLimitedMediaId = CreateMedia ('IPSTwilight_YearLimited', $categoryId_DataGraphics, IPS_GetKernelDir().'media\\IPSTwilight_YearLimited.gif', false,1,'Sun'); $YearUnlimitedMediaId = CreateMedia ('IPSTwilight_YearUnlimited', $categoryId_DataGraphics, IPS_GetKernelDir().'media\\IPSTwilight_YearUnlimited.gif', false,1,'Sun'); $DayMediaId = CreateMedia ('IPSTwilight_Day', $categoryId_DataGraphics, IPS_GetKernelDir().'media\\IPSTwilight_Day.gif', false,1,'Sun'); $DayLimitedMediaId = CreateMedia ('IPSTwilight_DayLimited', $categoryId_DataGraphics, IPS_GetKernelDir().'media\\IPSTwilight_DayLimited.gif', false,1,'Sun'); $DayUnlimitedMediaId = CreateMedia ('IPSTwilight_DayUnlimited', $categoryId_DataGraphics, IPS_GetKernelDir().'media\\IPSTwilight_DayUnlimited.gif', false,1,'Sun');
$moduleManager->VersionHandler()->CheckModuleVersion('IPS','2.50'); $moduleManager->VersionHandler()->CheckModuleVersion('IPSLogger','2.50.1'); $moduleManager->VersionHandler()->CheckModuleVersion('IPSModuleManager','2.50.1'); IPSUtils_Include ("IPSInstaller.inc.php", "IPSLibrary::install::IPSInstaller"); IPSUtils_Include ("IPSMessageHandler.class.php", "IPSLibrary::app::core::IPSMessageHandler"); IPSUtils_Include ("NetPlayer_Constants.inc.php", "IPSLibrary::app::modules::NetPlayer"); IPSUtils_Include ("NetPlayer_Configuration.inc.php", "IPSLibrary::config::modules::NetPlayer"); // ---------------------------------------------------------------------------------------------------------------------------- // Program Installation // ---------------------------------------------------------------------------------------------------------------------------- echo "--- Create NetPlayer -------------------------------------------------------------------\n"; $CategoryIdData = $moduleManager->GetModuleCategoryID('data'); $CategoryIdApp = $moduleManager->GetModuleCategoryID('app'); $CategoryIdHw = CreateCategoryPath('Hardware.NetPlayer'); // Scripts $actionScriptId = IPS_GetScriptIDByName('NetPlayer_ActionScript', $CategoryIdApp); $eventScriptId = IPS_GetScriptIDByName('NetPlayer_EventScript', $CategoryIdApp); // Controls CreateProfile_Associations ('NetPlayer_Category', array('Root')); CreateProfile_Associations ('NetPlayer_CDAlbumList', array('...')); CreateProfile_Associations ('NetPlayer_CDAlbumNav', array('<<','>>')); CreateProfile_Associations ('NetPlayer_CDTrackList', array('...')); CreateProfile_Associations ('NetPlayer_CDTrackList2', array('xx', 'yyy')); CreateProfile_Associations ('NetPlayer_CDTrackNav', array('<<','>>')); CreateProfile_Associations ('NetPlayer_RadioList', array('...'));