Argh! I KNOW I'm doing something wrong...

Post your HTML code (as attachments) here and a description of what that scene does.
User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Argh! I KNOW I'm doing something wrong...

Postby gregoryx » Sat Mar 31, 2007 8:39 pm

I can get my web code to work as expected at the 6245 port except for the variables.

I'm guessing I need to be running through the other port number (default 80) to get the pre-processor working on variables. True?

If so, what do I need to do to get this going?

There is NO FIREWALL enabled here, BTW.

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

Postby DavidL » Sat Mar 31, 2007 9:00 pm

You don't want to use 6245 as that is reserved for images for Cinemar products. Use the port you configure on the other webserver.

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sat Mar 31, 2007 9:30 pm

Hmm... okay, looks like it requires a restart after changing it... works now. :)

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sat Mar 31, 2007 9:58 pm

now I have the variables working but the commands do not... is there a difference in format? I'm trying to figure it out from the samples, but they're javascript and confuse me versus the plain html.

I'm sending http://MLserver:666/command?MLLighting... etc.

Is this wrong?

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sat Mar 31, 2007 10:08 pm

Short of it right now is that variables work on port 666 (80 is already "taken" on that machine) and commands work on 6246. Why can't I get commands to work on 6246? shouldn't it be the exact same command to the other port?

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sun Apr 01, 2007 9:32 pm

BUMP.

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Mon Apr 02, 2007 8:17 pm

Folks, do other people have MLServe commands working through port 80? or only through port 6246 on the commands?

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sun Apr 08, 2007 12:22 am

Hello?

User avatar
albright_family
Intermediate
Intermediate
Posts: 456
Joined: Sat Oct 22, 2005 9:41 pm
Location: Lakewood, WA
Contact:

Postby albright_family » Sun Apr 08, 2007 1:28 am

I have been able to get commands to execute by typing them into the address bar. Here is an example of a command I am sending on a consistent basis, that is working:
http://192.168.2.9:6246/command?MLServe ... g_Light~25

One big note, just make sure that the port is 'open' on your firewall on that computer. I figured this out after several minutes of frustration, I then realizied that the port wasn't open on that computer. Once I got the port opened, I also set up port forwarding for 6246 on my router to route that port correctly, and to not bounce it back.

Hopes this helps you out Gregory. However as far as I can tell so far this doesn't work for the variables. Maybe a little more tinkering, and the problem will 'reveal' itself to me. *crosses fingers*

Have Fun
Russell

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Sun Apr 08, 2007 11:00 pm

Perhaps I can help you a bit on this: the 6246 commands you're using work completely differently than the port 80 (default) web server.I suspect the port 80 sewer is the ASP one if at all.

I got variables to work on the port 80 server but not commands. It just doesn't seem right. Note in the below that labels of devices are from variables, making it easier to build the pages.

I have all the lights working for a PDA:

The outer page:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="EXPIRES" CONTENT="0" />
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
<title>Lighting and Home Automation Control</title>
</head>
<FRAMESET>
<FRAMESET ROWS="50,99.99%,.01%">
<FRAME NAME="top" SRC="topbar.html" frameborder="0" noresize scrolling="no">
<FRAME NAME="main" SRC="lightingmainfloor.html" frameborder="0" noresize>
<FRAME NAME="rspFRM" SRC="blank.html" frameborder="0" noresize scrolling="no">
</FRAMESET>
<body>

Lighting and Home Automation Control
</body>
</html>


The top menu:

Code: Select all

<html>
<body>
Lighting and Home Automation Control<br>
| <a href="lightingmainfloor.html" target="main">Main</a> |
<a href="lightingupperfloor.html" target="main">Upper</a> |
<a href="lightingmaster.html" target="main">Master</a> |
<a href="lightinglowerfloor.html" target="main">Lower</a> |

<a href="lightingoutside.html" target="main">Outside</a> |
</body>
</html>


A sample page:

Code: Select all

<html>
<body>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~161" target="rspFRM"><b>UpstairsLandingOverhead</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~161" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~161" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~161~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~161~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~161~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~161~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~161" target="rspFRM">UP</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|ON~161" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~162" target="rspFRM"><b>UpstairsLandingUpperSlave</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~162" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~162" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~162~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~162~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~162~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~162~80" target="rspFRM">80</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|BRIGHT~162" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~162" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~164" target="rspFRM"><b>UpstairsLandingHeart</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~164" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~164" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~164~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~164~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~164~60" target="rspFRM">60</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|ON~164~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~164" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~164" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~11" target="rspFRM"><b>BoysBathroomOverhead</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~11" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~11" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~11~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~11~40" target="rspFRM">40</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|ON~11~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~11~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~11" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~11" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~012" target="rspFRM"><b>BoysBathroomSinks</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~012" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~012" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~012~20" target="rspFRM">20</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|ON~012~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~012~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~012~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~012" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~012" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~13" target="rspFRM"><b>BoysBathroomSpots</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~13" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~13" target="rspFRM">DIM</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|ON~13~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~13~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~13~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~13~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~13" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~13" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~021" target="rspFRM"><b>BoysBedroom</b></a><br>|
<a href="http://MLServer:6246/command?MLLighting|OFF~021" target="rspFRM">OFF</a>&nbsp|

<a href="http://MLServer:6246/command?MLLighting|DIM~021" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~021~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~021~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~021~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~021~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~021" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~021" target="rspFRM">ON</a>&nbsp|
<br>
<a href="http://MLServer:6246/command?MLLighting|TOGGLE~031" target="rspFRM"><b>BoysPlayroom</b></a><br>|

<a href="http://MLServer:6246/command?MLLighting|OFF~031" target="rspFRM">OFF</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|DIM~031" target="rspFRM">DIM</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~031~20" target="rspFRM">20</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~031~40" target="rspFRM">40</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~031~60" target="rspFRM">60</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~031~80" target="rspFRM">80</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|BRIGHT~031" target="rspFRM">UP</a>&nbsp|
<a href="http://MLServer:6246/command?MLLighting|ON~031" target="rspFRM">ON</a>&nbsp|
</body>

</html>

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

Postby DavidL » Sun Apr 08, 2007 11:53 pm

In general, you should be using the non 6246 webserver for your custom webpages (the "port 80" one). The 6246 should be restricted for use by the Cinemar applications like XMLobby / DVDLobby / MusicLobby.

If the "Port80" webserver isnt' working right, Dave will have to address when he can get to it.

User avatar
albright_family
Intermediate
Intermediate
Posts: 456
Joined: Sat Oct 22, 2005 9:41 pm
Location: Lakewood, WA
Contact:

Postby albright_family » Mon Apr 09, 2007 12:42 am

smoothtlk wrote:In general, you should be using the non 6246 webserver for your custom webpages (the "port 80" one). The 6246 should be restricted for use by the Cinemar applications like XMLobby / DVDLobby / MusicLobby.

If the "Port80" webserver isnt' working right, Dave will have to address when he can get to it.


I have been trying to set this up for several days, (Yes I did enable the user web server), and even after unblocking port 80 I get no response. Changed the port to 666, and unblocked that port, nothing changed.

However when I try using port 6426, the web server responds with the appropriate page (mind you I have to type in, http://192.168.2.9:6426/html/index.html and I see something. Just typing in the ip address and port number produces 404 errors).

Also in an effort to completely port over to MLServer's webserver, the webserver will need to not only read ASP files (this it is doing now), but also process ASP commands (not doing right now). That would be a burden off a lot of peoples shoulders.

Keep at it, thanks
Russell

User avatar
gregoryx
Simply Incredible
Simply Incredible
Posts: 6599
Joined: Tue Sep 30, 2003 10:15 pm
Location: Newport Beach, CA
Contact:

Postby gregoryx » Mon Apr 09, 2007 1:32 am

I found that the variables didn't show when I was using 6246 but when I moved to the new server (port 80 by default, but 666 for my testing since 80 is in use) and got it working (after a restart) then variables work. I bet that's where the ASP might work.

Okay, Dave... where you at?

User avatar
albright_family
Intermediate
Intermediate
Posts: 456
Joined: Sat Oct 22, 2005 9:41 pm
Location: Lakewood, WA
Contact:

Postby albright_family » Mon Apr 09, 2007 10:37 am

gregoryx wrote:I found that the variables didn't show when I was using 6246 but when I moved to the new server (port 80 by default, but 666 for my testing since 80 is in use) and got it working (after a restart) then variables work. I bet that's where the ASP might work.

Okay, Dave... where you at?


Okay, I did what gregory did, however I am using port 80. And I got the webserver to respond. I got variables to respond correctly, however commands are not functioning over port 80.
Also ASP is still not being processed correctly.
Oh Dave, where are you?????????

Russell

User avatar
mcascio
Founder
Founder
Posts: 8270
Joined: Tue Jan 28, 2003 4:03 pm
Location: Kenosha, Wi
Contact:

Postby mcascio » Mon Apr 09, 2007 11:31 am

Guys,

Dave is currently traveling and won't be available for another week yet. Sorry.
Mario Cascio
Cinemar, Inc.
http://www.cinemaronline.com


Return to “MLServer HTML Sharing”

Who is online

Users browsing this forum: No registered users and 1 guest