Guten Abend
Ich versuche mittels eines Mehrfachschalters meine Jalousien zu steuern. Nun habe ich mit der pdisplay Funktion so meine Probleme. Ich versuche die Auswahltext zu ändern. Irgendwie weiss ich nicht so recht was ich mit den Argumenten anfangen soll.
>> if change(choiceText) then pdisplay(BlindsID,choiceText,TestPage)endif
Gruss,
Martin
[EibPC]
TestPage=2
BlindsID=1
blind1=1
blind2_4=2
blindAll=3
mChoice=1
choiceText=$Dining Room$
if mpbutton(BlindsID,blind1,TestPage)==255 then {
mChoice=1
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==255 then {
mChoice=2
} endif
if mpbutton(BlindsID,blindAll,TestPage)==255 then {
mChoice=3
} endif
if mChoice==blind1 then choiceText=$Dining Room$ endif
if mChoice==blind2_4 then choiceText=$Living Room$ endif
if mChoice==blindAll then choiceText=$All$ endif
>>if change(choiceText) then pdisplay(BlindsID,choiceText,TestPage) endif
if mpbutton(BlindsID,blind2_4,TestPage)==1 then {
write("Wohnzimmer Jalousie (2,3,4)-2/1/5",0b01)
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==2 then {
write("Wohnzimmer Jalousie (2,3,4)-2/1/5",1b01)
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==3 then {
write("Wohnzimmer Jalousie (2,3,4)-2/2/5",1b01)
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==4 then {
write("Wohnzimmer Jalousie (2,3,4)-2/2/5",0b01)
} endif
[WebServer]
page(1)[$General$,$overview$]
line $Testlinie$
page(TestPage)[$General$,$weather$]
picture(3)[DOUBLE,CENTERGRAF]($Sattelite$,$http://uk.weather.yahoo.com/images/eur_satintl_440_dmy_y.jpg$)
line $blinds$
mpshifter(BlindsID)[$Dining Room$,$Living Room$,$All$ [UP,DOWN,PLUS,MINUS]$blinds$
Ich versuche mittels eines Mehrfachschalters meine Jalousien zu steuern. Nun habe ich mit der pdisplay Funktion so meine Probleme. Ich versuche die Auswahltext zu ändern. Irgendwie weiss ich nicht so recht was ich mit den Argumenten anfangen soll.
>> if change(choiceText) then pdisplay(BlindsID,choiceText,TestPage)endif
Gruss,
Martin
[EibPC]
TestPage=2
BlindsID=1
blind1=1
blind2_4=2
blindAll=3
mChoice=1
choiceText=$Dining Room$
if mpbutton(BlindsID,blind1,TestPage)==255 then {
mChoice=1
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==255 then {
mChoice=2
} endif
if mpbutton(BlindsID,blindAll,TestPage)==255 then {
mChoice=3
} endif
if mChoice==blind1 then choiceText=$Dining Room$ endif
if mChoice==blind2_4 then choiceText=$Living Room$ endif
if mChoice==blindAll then choiceText=$All$ endif
>>if change(choiceText) then pdisplay(BlindsID,choiceText,TestPage) endif
if mpbutton(BlindsID,blind2_4,TestPage)==1 then {
write("Wohnzimmer Jalousie (2,3,4)-2/1/5",0b01)
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==2 then {
write("Wohnzimmer Jalousie (2,3,4)-2/1/5",1b01)
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==3 then {
write("Wohnzimmer Jalousie (2,3,4)-2/2/5",1b01)
} endif
if mpbutton(BlindsID,blind2_4,TestPage)==4 then {
write("Wohnzimmer Jalousie (2,3,4)-2/2/5",0b01)
} endif
[WebServer]
page(1)[$General$,$overview$]
line $Testlinie$
page(TestPage)[$General$,$weather$]
picture(3)[DOUBLE,CENTERGRAF]($Sattelite$,$http://uk.weather.yahoo.com/images/eur_satintl_440_dmy_y.jpg$)
line $blinds$
mpshifter(BlindsID)[$Dining Room$,$Living Room$,$All$ [UP,DOWN,PLUS,MINUS]$blinds$
Kommentar