wolf12
31. Januar 2012 um 14:59
1
Hallo
bin IP-Symcon Anfänger habe auf version 2.5 aktualisiert nun funk das Script
für doppelte kanalzahl nicht mehr .Es schaltet zwar die Lampe ein ,aber nicht aus
bei 2.4 ging das,
<?
$Variable = ("21714");
if ($Variable == true)
{
FS20_SwitchMode(41047 /*[Wohnbereich-OG\Licht-Fernseher]*/, true);
}
else
{
FS20_SwitchMode(41047 /*[Wohnbereich-OG\Licht-Fernseher]*/, false);
}
?>
Attain
31. Januar 2012 um 15:29
2
Hallo,
das kann nie so funktioniert haben:
$Variable = GetValue(21714);
wolf12
31. Januar 2012 um 15:45
3
Hallo
Danke schonmal aber mit GetValue habe ich schon gehabt unter v2.4 dann kommt
Warning: Wrong parameter type for getvalue() in [Wohnbereich-OG\Script-Licht-Küche] on line 2
Attain
31. Januar 2012 um 15:47
4
die „“ dürfen da nicht sein
wolf12
31. Januar 2012 um 15:56
5
Vielen Dank Attain jetzt funkts wieder.
wolf12
1. Februar 2012 um 16:15
6
Hallo
Heute habe ich ein neues problem beim E-Mail zählen,wie muss ich statt den Namen der Variable die ID 19870 eintragen?
SetValueInteger(„Anzahl_Neue_Mails“,(integer)$articles[„count“]);
Warning: Wrong parameter type for setvalueinteger() in [E-Mail\E-Mail empfangen (POP3)\anzahl_neu_emails] on line 96
es sind 400 Nachrichten auf dem Server
so müsste es gehen:
SetValueInteger(19870 ,(integer)$articles["count"]);
wolf12
1. Februar 2012 um 16:28
8
Vielendank hätte es nicht alleine nicht hinbekommen
SetValueInteger(19870 ,(integer)$articles['count']);
Index immer mit Hochkommas.
wolf12
4. Februar 2012 um 19:56
10
Heute wollte ich mein mp 3 orndner neu einlesen, da kam der Fehler
Warning: Wrong parameter count for ips_setvariableprofileassociation() in D:\IP-Symcon\scripts\36053.ips.php on line 16
IPS_SetVariableProfileAssociation($profil,$j,$verzeichniss,"");
Was muss geändert werden ?
bengie
4. Februar 2012 um 20:16
11
wolf12:
Heute wollte ich mein mp 3 orndner neu einlesen, da kam der Fehler
Warning: Wrong parameter count for ips_setvariableprofileassociation() in D:\IP-Symcon\scripts\36053.ips.php on line 16
IPS_SetVariableProfileAssociation($profil,$j,$verzeichniss,"");
Was muss geändert werden ?
Ein weiter Parameter Farbe (2.4 -> 2.5) könnte das Prob. sein.
Vergl. IPS_SetVariableProfileAssociation: IP-Symcon :: Automatisierungssoftware
wolf12
4. Februar 2012 um 20:43
12
Hallo habe es so geändert ,
IPS_SetVariableProfileAssociation("$profil,$j,$verzeichniss", 1, „“, „“, 0xFFFFFF);
und nun kommt
Warning: Variableprofile ‚Musikordner,0,Music VOL. 320_kbps mp3 by‘ does not exist in D:\IP-Symcon\scripts\36053.ips.php on line 16
bengie
4. Februar 2012 um 21:17
13
Die Anführungszeichen sind nicht notwendig und führten hier ggf. zu einem Fehler, ansonsten sind das auch zuviele Parameter!
Hier mal ein funktionierendes Beispiel aus br_sonos:
echo ("- creating VariableProfile ". $VarProfileName ." for setup or update!
");
IPS_CreateVariableProfile($VarProfileName,1);
IPS_SetVariableProfileAssociation($VarProfileName, 0, "|<","",-1);
IPS_SetVariableProfileAssociation($VarProfileName, 1, "Play","",-1);
IPS_SetVariableProfileAssociation($VarProfileName, 2, "Pause","",-1);
IPS_SetVariableProfileAssociation($VarProfileName, 3, "Stop","",-1);
IPS_SetVariableProfileAssociation($VarProfileName, 4, "|>","",-1);
Vergl. die Online-Doku
Gerne PM / DM.
Grüße, Benjamin
bengie
5. Februar 2012 um 19:39
14
Für die Nachwelt (wir hatten per PM Kontakt), die Lösung ist die Anpassung zu:
IPS_SetVariableProfileAssociation($profil,$j,$verzeichniss, "",-1);