Just a simle URL should work ??????

Post your HTML code (as attachments) here and a description of what that scene does.
User avatar
GregJPowers
New Member
New Member
Posts: 31
Joined: Thu Jan 22, 2004 3:49 pm
Location: Southern California
Contact:

Just a simle URL should work ??????

Postby GregJPowers » Sat Jan 05, 2008 7:58 pm

Ok to test HTML in it's sipmlest form you should be able to just type a comman in the URL/addrss line of a browser. Right?

So typing URL like:

http://192.168.1.202:6246/MLCMD?Macro|EZButton.HDMovie

and the Command Map should execute the Macro, Right?

Or this URL:

http://192.168.1.202:6246/MLCMD?MLSlink|X10:on[j16]

Then this URL should turn on the light attached to X10 module J16

I can not get thses simple commands to work.

Still not sure of the IP port. Is MLServer looking for HTML command on port 6246 or 80 ??? I have tried both and 5004.

I can get the samples, in the HTML folder, to display a Server variables like my name using server variables like:

OwnerInfo_FirstName
OwnerInfo_LastName

but when i try to get the time by using then same varaible from a scene

Time.HoursMinutes

I get nothing??

The end goal is to get a web page to display on my iPod Touch. But as you can see I can not even get a HTMP page, on the Local host, to work???

Thanks for you hepl in advance.

Greg

User avatar
DavidL
Simply Incredible
Simply Incredible
Posts: 11071
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact:

Postby DavidL » Sat Jan 05, 2008 8:26 pm

Greg,
port 5004 is reserved for MainLobby client connections.
Port 6264 is reserved for image transfer for things like DVDLobby
Port 80 is the common port for webservers on the Internet.

Port 80 is the easiest port to configure for external access to a webserver (like MLServer3). But, it is also the port that is hacked the most fequently, because it is by far the most commonly used external access port.

Port 81 is used by many to provide public access, but more discretely as it's not quite as common usage as 80. That doesn't make it more secure though.

You can set a port in MLServer (like port 81) and restart MLServer for the settings to take effect.

You can follow the instruction in the HTML folder of MLServer3 in the ReadMe.txt file. This will provide you setup instruction on how to use the example scenes that ship with MLServer3 (already).

Simple form:

http://mlserver:81/home.html

If you had an HTML page in the MLServer\HTML directory called home.html, and you had Port 81 turned on in MLServer's webserver (and restarted MLServer on a PC named "mlserver", then, your local PC browser should see this webpage.

If not, you might have firewalls / antivirus on your LAN preventing you from viewing port 81. Open the firewall and antivirus to allow this data traffic to your internal PCs.

To access this same webpage via the Internet, you have to do some networking magic on your Internet Router to open port 81 to the outside world. There are a lot of security measures that you should take if you decide to do this, but that is outside of the scope of a post.

More info
http://www.cinemaronlineforums.com/wiki ... rking_Tips

http://www.cinemaronlineforums.com/wiki ... Web_Server

Your posts weren't really a test of "html", but of the webserver's ability to also process MLServeCmds. Not sure if you found this:

http://www.cinemaronlineforums.com/wiki ... E_COMMANDS

User avatar
GregJPowers
New Member
New Member
Posts: 31
Joined: Thu Jan 22, 2004 3:49 pm
Location: Southern California
Contact:

Postby GregJPowers » Sun Jan 06, 2008 12:52 am

Finaly zeroed in on what would work by watching the MLServer event log. This helped to see when a URL was hitting MLServer. Then it just came down to syntax (Getting all the . | in the right place) and spelling the commands correctly (MLSlink vs. MLSlinke).

These URLs worked both as URL and in the samle HTML:

http://192.168.1.202/MLcmd?Macro|EZ.Button.HDMovie
http://192.168.1.202/MLcmd?Macro|EZ.But ... DownSystem
http://192.168.1.202/MLcmd?MLSlinke|X10:on[j16]
http://192.168.1.202/MLcmd?MLSlinke|X10:off[j16]

The big help was seeing the URL hit the MLServer log.

Thanks again
Greg

User avatar
GregJPowers
New Member
New Member
Posts: 31
Joined: Thu Jan 22, 2004 3:49 pm
Location: Southern California
Contact:

Postby GregJPowers » Sun Jan 06, 2008 1:20 am

Got these URL to work on a simple Proof of Concept Text based HTML page using My iPod touch. Very Cooooooooooooooooool and Fast. Much faster then using my windows ce based Viewsonic airpanel. And there is not problem with Microsoft licenses like there is using the airpanel. XP pro only allows the desktop or the Airpanel to be loged in.

Now it is time to get some fancy and more functional screens done.

Greg


Return to “MLServer HTML Sharing”

Who is online

Users browsing this forum: No registered users and 1 guest