Folgendes hab ich eingegeben:
homegear -e rc '$hg->setSystemVariable("testvar1", false);'
homegear -e rc '$hg->addVariableToRoom(0, -1, "testvar1", 1);'
homegear -e rc '$hg->addRoleToVariable(0, -1, "testvar1", 100001);'
homegear -e rc '$hg->addUiElement(0, -1, "testvar1", "TextFuerTestvar1");'
so sieht die Visualisierung aus:
das Command:
homegear -e rc 'print_v($hg->getVariablesInRole(100001));'
(Struct length=9)
{
[0] (Struct length=1)
{
[-1] (Struct length=1)
{
[testvar1] (Struct length=1)
{
[direction] (Integer) -1
}
}
}
[11] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[12] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[14] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[2] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[3] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[4] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[5] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
[6] (Struct length=1)
{
[1] (Struct length=1)
{
[STATE] (Struct length=2)
{
[direction] (Integer) 2
[level] (Integer) 2
}
}
}
}