New Iphone - Easy help with Lighting?

Forum for discussing building user interfaces for controlling MLServer using the iPhone or iPod Touch.
antem
New Member
New Member
Posts: 25
Joined: Fri Dec 14, 2007 9:05 pm
Contact:

New Iphone - Easy help with Lighting?

Postby antem » Tue Dec 29, 2009 7:38 pm

New IPhone and have started trying to get lighting to work...

I have changed the easy stuff -> room names in the index and LightingRoom# files but cannot finish the job after trying many things. Do I change the iRemote macros to get the proper variables named or do I cange the LightingRoom# html files?

Example: I have the following similar N=5 toggle switches in LightingRoom1:

<label>Coach Lights</label> <span class="flushright"> <img id="__room{{lighting_activeroom}}_load5_state" onclick="Lighting('{{Lighting_ActiveRoom}}','5','Toggle');" src="images/SwitchOn.png" hspace=37 width="100" height="32" border=0> <span id="lighting_room{{lighting_activeroom}}_load5_state" style="visibility:hidden">{{lighting_room{{lighting_activeroom}}_load5_state}}</span> </span> </div> </fieldset> </div>

and, the following code in the iRemote.Lighting.1.1.Toggle Macro:

MLConditional|IsEqual##{{Lighting_Room_1_Load1_State}}##1##SetVariable|Lighting_Room1_Load1_State~0##SetVariable|Lighting_Room1_Load1_State~1

Can you tell me where to put "CoachLights" (the switch name)? Or do I need to make a Server Rule to set the variable? Running MLInsteonPLM with no ISY (yet). Thanks - Nate

antem
New Member
New Member
Posts: 25
Joined: Fri Dec 14, 2007 9:05 pm
Contact:

Re: New Iphone - Easy help with Lighting?

Postby antem » Mon Jan 04, 2010 1:46 pm

Any help? I assume I can just change the macro and put a conditional; if it's on, turn it off, if off -> on?

Thanks

Clever1
Senior Member
Senior Member
Posts: 220
Joined: Mon Jan 14, 2008 10:31 am
Location: Huntsville, AL.
Contact:

Re: New Iphone - Easy help with Lighting?

Postby Clever1 » Mon Aug 16, 2010 4:08 pm

Did you get it figured out???

antem
New Member
New Member
Posts: 25
Joined: Fri Dec 14, 2007 9:05 pm
Contact:

Re: New Iphone - Easy help with Lighting?

Postby antem » Sun Aug 29, 2010 9:47 pm

Never did and haven't messed with it since...

Clever1
Senior Member
Senior Member
Posts: 220
Joined: Mon Jan 14, 2008 10:31 am
Location: Huntsville, AL.
Contact:

Re: New Iphone - Easy help with Lighting?

Postby Clever1 » Tue Oct 12, 2010 1:08 pm

Ok... I have been working on getting two different lighting control systems to work and have got a pretty good understanding if you get back to tackling it again let me know....


Return to “iPhone / iPod Touch Beta”

Who is online

Users browsing this forum: No registered users and 1 guest