Hallo zusammen,
mein Astro-Script läuft nicht mehr seit dem Update auf 2.5. Es ist das Script hier aus dem Forum. Es bricht ab mit:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in [Allgemein\Tag / Nacht\GetTimes] on line 109
Hier mal die entsprechende Stelle im Script:
function CreateVariableByName($id, $name, $type, $profile = "")
{
global $_IPS['SELF'];
$vid = @IPS_GetVariableIDByName($name, $id);
if($vid === false)
{
$vid = IPS_CreateVariable($type);
IPS_SetParent($vid, $id);
IPS_SetName($vid, $name);
//IPS_SetInfo($vid, "this variable was created by script #$_IPS['SELF']");
if($profile !== "") { IPS_SetVariableCustomProfile($vid, $profile); }
}
return $vid;
}
Zeile 109 ist hier die erste Zeile der Funktion. Ich habe im Script die Variable von $IPS_SELF auf $_IPS[‚SELF‘] umgestellt. Anscheinend liegt aber irgendwo noch ein Fehler.
Bin dankbar für Hilfe …
Danke und Gruß,
Christoph