Hallo zusammen,
hab in der Doku folgendes gefunden um Variablen zu kopieren: Wie kann ich ? ganz unten.
Folgende Probleme hab ich bei der Umsetzung:
- Der 2. Eintrag -2 wird komplett verschluckt. (nicht wichtig für mich)
- Wenn ich die ermittelten Zeilen in ein neues Script kopiere im dann die neue Variable anlegen zu lassen bekomm ich Fehler.
Die Doku hat mich nicht weiter gebracht. Hoffe dass mit jemand kurz helfen kann.
Script:
<?
IPS_CreateVariableProfile("HC_Zeitr_a-r", 1);
IPS_SetVariableProfileText("HC_Zeitr_a-r", "", "");
IPS_SetVariableProfileValues("HC_Zeitr_a-r", 0, 0, 0);
IPS_SetVariableProfileDigits("HC_Zeitr_a-r", 0);
IPS_SetVariableProfileIcon("HC_Zeitr_a-r", "");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", -3, "<", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", -2, ">", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", -1, "Jetzt", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", 7, "Woche", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", 30, "Monat", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", 90, "Quartal", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", 180, "Halbjahr", "", "-1");
IPS_SetVariableProfileAssociation("HC_Zeitr_a-r", 366, "Jahr", "", "-1");
?>
Scriptausgabe:
IPS-Err-PHP 2014-01-11 13:20:43.261 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 8 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 8 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 8
IPS-Err-PHP 2014-01-11 13:20:43.266 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 9 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 9 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 9
IPS-Err-PHP 2014-01-11 13:20:43.270 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 10 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 10 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 10
IPS-Err-PHP 2014-01-11 13:20:43.274 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 11 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 11 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 11
IPS-Err-PHP 2014-01-11 13:20:43.279 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 12 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 12 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 12
IPS-Err-PHP 2014-01-11 13:20:43.284 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 13 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 13 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 13
IPS-Err-PHP 2014-01-11 13:20:43.288 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 14 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 14 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 14
IPS-Err-PHP 2014-01-11 13:20:43.293 Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() Error in Script D:\IPS\scripts\23379.ips.php on Line 15 133 in IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 37 in IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) in IPSLogger_PhpErrorHandler 15 in 23379.ips.php (call IPS_SetVariableProfileAssociation)
Warning: Wrong parameter type for IPS_SetVariableProfileAssociation() in D:\IPS\scripts\23379.ips.php on line 15