MainLobby Designer for Touch Devices

Topics related to the new MainLobby Web Designer software for Android and iOS devices.
User avatar
DaveB
Simply Incredible
Simply Incredible
Posts: 3143
Joined: Sun May 30, 2004 10:57 pm
Location: Mays Landing, NJ
Contact:

Re: MainLobby Designer for Touch Devices

Postby DaveB » Sat Oct 04, 2014 9:41 am

Dave- WIth the iPhone 5 sample interface, Is the Now Playing track list implemented in the music scenes? Having a hard time figuring out what is queued up.
Thanks!

Dave Bruner
:shock:

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Sat Oct 04, 2014 1:18 pm

There is no overlay for the now playing tracks. I can add it to the next update.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Sun Nov 16, 2014 5:30 pm

Version 4.0.5433.26405 Released 11/16/2014

Today's Update

1) Updates the scripts.js file to fix a condition where the DoStartup function would be called twice when the app was launched and the Remember Last Page option is enabled.

2) Adds a new Server Objects form to the main designer. This floating form when opened will provide a display of all the current Server Variables, Command Macros and Family Manager items. You can even edit and create Server Variables and Command Macros from within the designer. You'll see a new button on the Main Menu called "Server Objects". You can right-click on the variable name and copy and paste it into your scenes. See the following image.

You also need to make sure to install the new MLServer version which was also released today as the Designer needs this version for the new Server Objects form to work properly.
You do not have the required permissions to view the files attached to this post.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Wed Dec 10, 2014 3:36 pm

Version 4.0.5455.31550 Released 12/08/2014

Today's update of the Designer

1) Adds a new "Text Transform" feature for Button and Label objects. See the 1st image below. The Transform function will allow you to automatically set the case of the displayed text to either
"Original" - leave it untouched
"UPPERCASE" - make all the text UPPERCASE
"lowercase" - makes all the text lowercase
"Capitalize" - Capitalizes The First Letter Of All Words

2) Adds new "Click On" and "Click Off" logic to Button and Image objects. See the 2nd image below. You can now specify if one of these objects will be clickable when On or Off when they are under the control of a state variable.

You do not have to make any changes to your scenes as the logic assumes some default conditions. Please read the following closely and if the default logic does not work for you then you will have to make some edits to your scenes.

If "Click-On" is not defined then it will default to TRUE.
If "Click-Off" is not defined then it will default to FALSE.

If you have some scenes hanging around from the RC1 days then there is the possibility that both Click-On and Click-Off will be defined but both set to FALSE. So if

Click-On IS defined AND is FALSE
AND
Click-Off IS defined AND is FALSE
THEN
Click-On will default to TRUE.

The last default check will eventually be eliminated because there are times that you want to use a Button as a label that is only visible under conditions and that button should not be clickable. We'll give you some time to flush out the scenes before taking this test away.

Look closely at scenes like Thermostat controls that show the HVAC state by coloring a button. These buttons should be clickable in both on and off states. These scenes will have to be edited to make those buttons work properly. Security and Lighting scenes would have similar button objects.


3) Fixes an issue in the Infinite scroller logic where if the first page of items contained fewer that "Items Per Page" objects you might end up with duplicate objects being added to the end of the list if the scroller was scrolled to the bottom. You'll need to refresh the support files.

4) Fixes the Playsound Web client command. Now all Mobile clients should be capable of sound file playback.
Webcmd|{{clientname}}~PlaySound|<<Full URL Path to the sound file>>

Images...
You do not have the required permissions to view the files attached to this post.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Mon Feb 23, 2015 6:12 pm

Version 4.0.5532.23838 released 02/23/2015

Today's update:
1) Adds a brand new Toggle switch that replaces the older toggle switch that never worked that well. Scenes using the old toggle switch objects will no longer function. If you have scenes using the old toggle switch object you will have to edit the HTML to remove the old toggle switch objects before using the new toggle switch. If you are not comfortable editing the HTML just email me the affected files and I'll remove the objects for you.

2) Updates the sample project to include the most current JavaScript / CSS files.

3) Gives you the option to make minor edits to the JavaScript and CSS files from within the designer. Clicking on a .js or .css file will now bring up a simple text editor that will allow you to change the contents of the files. Please use with caution!

4) Updates the Custom.js file. Since the installer for the Designer will not overwrite an Custom.js file please have a look at the following code and compare it to your Custom.js file. Anything you see in this example that is missing in your file should be copied into your file.

Code: Select all

// These variables can be used to customize the behavior of your Apps. Please DO NOT change the names of
// the varaibles that are in UPPERCASE. You can modifiy their values.

var REMEMBER_LAST_PAGE=1;      // 1=Remember 0=Forget
var ENABLE_APP_SWITCHING=0;      // 1=Enabled 0=Disabled. When Enabled App will automatically switch between Portrait and Landscape mode
var ENABLE_APP_SCALING=0;      // 1=Enabled 0=Disabled. When Enabled App will automatically scale the window to fit the device
var PORTRAIT_APP="";      // Name of the project used when in Portrait mode
var LANDSCAPE_APP="";      // Name of the project used when in Landscape mode
var HOME_PAGE="index.html";      // Name of the starting page for the app
var TARGET_WIDTH=768;         // This is the designed width of the screen in pixels. Used for scaling on different sized devices
var TARGET_HEIGHT=1024;         // This is the designed height of the screen in pixels. Used for scaling on different sized devices

// If you use different file names for any of these pages please change the variables to the new file names here
var MOVIES_PAGE="movies.html";
var MOVIES_DETAILS_PAGE="movies.html";
var NETFLIX_PAGE="netflix.html";
var NETFLIX_DETAILS_PAGE="netflix.html";
var AMAZON_PAGE="amazon.html";
var AMAZON_DETAILS_PAGE="amazon.html";
var MUSIC_DETAILS_PAGE="music.html";
var PHOTOS_PREVIEW_PAGE="photos-preview.html";
var INTERNETRADIO_PAGE="internetradio.html";
var RECIPES_DETAILS_PAGE="recipes-details.html";
var RECIPES_PAGE="recipes.html";
var SPEECH_RATE=0.5;
var SPEECH_PITCH =1;

// If your project uses any custom JavaScript you can add it in below.

Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Re: MainLobby Designer for Touch Devices

Postby Art Dustman » Fri Feb 27, 2015 12:34 pm

Webcmd|{{clientname}}~PlaySound|<<Full URL Path to the sound file>>

I haven't been able to get this to work and I'm sure I missing a simple thing. Are there any restrictions on where the file needs to be and type (in the HTML folder, .wav .mp3 etc?)

I have tried variations of this so far to no avail:

file://localhost/c|/explode.wav
file:///c|/explode.wav
file://localhost/c:/explode.wav
file:///c:/explode.wav

Note, I moved the file for simplicity to the c root after having it here wasn't working:
C:\Program Files (x86)\Cinemar\MLServer\Sounds\explode.wav which I assume may have had to do with the space in program files (x86)
I put that in as this: //alpha/Program%Files%(x86)/Cinemar/MLServer/Sounds/explode.wav and no luck.

attempted on iphone IOS 7.1.2
Thanks

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Fri Feb 27, 2015 2:11 pm

The sound files have to be in the path relative to the web app's root or a full URL.

For files local to the web app. For example create a folder called MLServer\HTML\Ipad\Sounds then use

WebCmd|{{clientname}}~Playsound|sounds/test.mp3

If the sound files are in the MLServer\Sounds folder then you need to use the following full URL and grab the sound via the system web server.

WebCmd|{{clientname}}~Playsound|http://<<mlserver ip addess>>:6246/sounds/test.mp3

Synergy_Tech
Senior Member
Senior Member
Posts: 101
Joined: Wed Sep 26, 2012 8:36 pm
Contact:

Re: MainLobby Designer for Touch Devices

Postby Synergy_Tech » Fri Feb 27, 2015 2:15 pm

The sound file needs to be somewhere inside the "V4mlserver" network share in order for the client to be able to play it. On my system I created a "sounds" subfolder inside the "HTML" folder. If you do the same, then try this:

WebCmd|{{clientname}}~PlaySound|/sounds/explode.wav

I'm pretty sure some clients can't play .wav sounds so you might want to convert it to an mp3. Then use this command:

WebCmd|{{clientname}}~PlaySound|/sounds/explode.mp3

Synergy_Tech
Senior Member
Senior Member
Posts: 101
Joined: Wed Sep 26, 2012 8:36 pm
Contact:

Re: MainLobby Designer for Touch Devices

Postby Synergy_Tech » Fri Feb 27, 2015 2:17 pm

Dave beat me to it

Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Re: MainLobby Designer for Touch Devices

Postby Art Dustman » Fri Feb 27, 2015 10:30 pm

ok. that makes sense.Thanks

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Mon Mar 09, 2015 2:32 pm

Version 4.0.5546.22209 Released 03/09/2015

Minor update to the sample app to update to the latest scripts.js file. This version of the scripts.js fixes fixes a bug that prevented a new client from fully initializing the very first time it connected to the server. Everyone should refresh the support files or at least copy the sample scripts.js file into your production app.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: MainLobby Designer for Touch Devices

Postby CinemarDave » Fri Mar 27, 2015 4:16 pm

Web Designer Version 4.0.5564.24217 Released 03/27/2015

Today's Update
1) Restores the missing css styles needed to create Toggle Switches. Must refresh your support files.

2) Fixes an issue where the down-arrow on the selector object could disappear after updating the object.


Return to “MainLobby Web Designer (V5)”

Who is online

Users browsing this forum: No registered users and 1 guest