[FIXED] HTTP Get Control

Forum to discuss ZWaveCommander/Lightswitch iPhone/iPod Touch application

[FIXED] HTTP Get Control

Postby Melloware » Mon Jan 04, 2010 10:19 pm

As many have requested being able to control Zwave Commander using HTTP GET from say their browser or their own application here is the protocol you can use from Firefox or IE or your own custom app.

Make sure to download out latest version: http://melloware.biz/download/warez/zwave-server.zip

DON'T forget to run ZwaveCommander.exe as Administrator so it has access to the HTTP port.

Code: Select all
// Turn Device 2 ON
http://localhost:8084/ZwaveCommand?command=device&id=2&level=100

// Turn Device 4 OFF
http://localhost:8084/ZwaveCommand?command=device&id=4&level=0

// Turn Device 4 to 50% Brightness
http://localhost:8084/ZwaveCommand?command=device&id=4&level=50

// Activate Scene ID 6
http://localhost:8084/ZwaveCommand?command=scene&id=6

// Turn Zone/Area 7 ON
http://localhost:8084/ZwaveCommand?command=zone&id=7&level=100

// Turn Zone/Area 7 OFF
http://localhost:8084/ZwaveCommand?command=zone&id=7&level=0

// Turn Thermostat 8  OFF (modes listed below)
http://localhost:8084/ZwaveCommand?command=thermmode&id=7&mode=0

// thermostat mode = 0 = OFF
// thermostat mode = 1 = AUTO
// thermostat mode = 2 = HEAT
// thermostat mode = 3 = COOL
// thermostat mode = 4 = FAN LOW
// thermostat mode = 5 = FAN AUTO
// thermostat mode = 6 = ENERGY SAVING MODE
// thermostat mode = 7 = COMFORT MODE

// SetThermostat 7 Heatpoint to 70 Heat Mode
http://localhost:8084/ZwaveCommand?command=thermmode&id=7&mode=2&temp=70

// SetThermostat 7 Coolpoint to 65 Cool Mode
http://localhost:8084/ZwaveCommand?command=thermmode&id=7&mode=3&temp=65

// SetThermostat 7 Temperature to 65 Cool Mode
http://localhost:8084/ZwaveCommand?command=thermtemp&id=7&mode=1&temp=65
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby stbluesrul » Tue Jan 05, 2010 2:03 pm

I'm interested in using CommandFusion to control the ZWave Commmander server. Is it possible to query the server to get device information. (e.g. current lighting level or device state)

Thank you.
stbluesrul
 
Posts: 73
Joined: Thu Dec 17, 2009 8:53 pm
Location: Las Vegas, NV

Re: [FIXED] HTTP Get Control

Postby Melloware » Tue Jan 05, 2010 3:36 pm

No command fusion support yet. That is an entirely different protocol.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby stbluesrul » Fri Jan 08, 2010 2:47 pm

Are you planning on this by any chance? :mrgreen:
stbluesrul
 
Posts: 73
Joined: Thu Dec 17, 2009 8:53 pm
Location: Las Vegas, NV

Re: [FIXED] HTTP Get Control

Postby Melloware » Fri Jan 08, 2010 6:04 pm

stbluesrul wrote:Are you planning on this by any chance? :mrgreen:


I was not actually planning on it.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby stbluesrul » Mon Jan 11, 2010 3:10 am

I was able to get commandfusion to send commands to the zwave commander server.

http://groups.google.com/group/commandf ... 98a96dbf7#
stbluesrul
 
Posts: 73
Joined: Thu Dec 17, 2009 8:53 pm
Location: Las Vegas, NV

Re: [FIXED] HTTP Get Control

Postby Melloware » Mon Jan 11, 2010 6:52 am

stbluesrul wrote:I was able to get commandfusion to send commands to the zwave commander server.

http://groups.google.com/group/commandf ... 98a96dbf7#


Hey sweet and that worked? Good stuff!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby stbluesrul » Tue Jan 12, 2010 11:49 am

Yes, it works very well actually. Just no two way feedback.

Good for when watching a movie or something. Press pause and the lights come up, play and the lights go back down.
stbluesrul
 
Posts: 73
Joined: Thu Dec 17, 2009 8:53 pm
Location: Las Vegas, NV

Re: [FIXED] HTTP Get Control

Postby Wayne1 » Thu Jan 14, 2010 11:39 pm

Perhaps I'm not doing this right, but when I place

"http://192.168.1.7:6004/ZwaveCommand?command=device&id=9&level=0"

into the address bar of firefox, I receive

6004 ZWaveCommander Server (Connections 2)
ERR~Terminating Due To Unknown Socket Command

I've updated to the latest version of ZWave Commander, 2.2.3614.23384 and the iPhone app works fine (has been for years). I've tried it from the host box, other computers, IE, FireFox, Safari, HyperTerminal, and even wrote a small Delphi app to post the HTTPGet command to no avail. All get the same error. What did I miss?

-Wayne
Wayne1
 
Posts: 6
Joined: Sun Nov 23, 2008 1:42 am

Re: [FIXED] HTTP Get Control

Postby Melloware » Fri Jan 15, 2010 8:17 am

Yep you are doing it wrong. HTTP traffic is on port 8084.

So instead of...

Code: Select all
http://192.168.1.7:6004/ZwaveCommand?command=device&id=9&level=0


You want...

Code: Select all
http://192.168.1.7:8084/ZwaveCommand?command=device&id=9&level=0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby Wayne1 » Sat Jan 16, 2010 1:16 am

Aww... <Doink> palm slaps forehead. Thanks! Had to be something that simple, I spent over an hour trying to get it to work. The inverse law of problem solving - the longer you spend trying to solve a problem, the simpler the problem really is.
Wayne1
 
Posts: 6
Joined: Sun Nov 23, 2008 1:42 am

Re: [FIXED] HTTP Get Control

Postby blaze818 » Sun Mar 21, 2010 4:09 pm

so i am still having some problems. I am running the program as administrator and i have all of my ports forwarded correctly.

i should be able to just paste
Code: Select all
http://localmachine:8084/ZwaveCommand?command=device&id=3&level=100

into my browser and then the light should come on correct?

on the zwave commander server screen it says that the type is a multilevel switch and then i am guessing that the device id is 3 since the server screen says "NodeId: 3" but once i try to input the above address in a browser the IE screen says it cannot display the page. as for local machine i have tried my local ip address and my DNS server addy, still nothing.

using the server on the local machine will turn the light on and off
and using the zwave controller program on my ipod touch works correctly as well.

all i want to be able to do is control my lights from my palm pre. Ive heard that porting iphone apps to the pre is really easy, might be a good idea to bring in a little more revenue without much more work. too bad i have no programming experience

I hope that i am missing something stupid
blaze818
 
Posts: 15
Joined: Sun Apr 05, 2009 5:48 pm

Re: [FIXED] HTTP Get Control

Postby Melloware » Sun Mar 21, 2010 5:15 pm

That is incorrect! It is "localhost" not "localmachione".

You had...

Code: Select all
http://localmachine:8084/ZwaveCommand?command=device&id=3&level=100


The correct one is...

Code: Select all
http://localhost:8084/ZwaveCommand?command=device&id=3&level=100


localhost ONLY works on the same PC Zwave Commander is running on. TO connect to it from your Palm Pre you need to use the IP Address of the PC so for example...


Code: Select all
http://192.168.1.101:8084/ZwaveCommand?command=device&id=3&level=100
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby blaze818 » Sun Mar 21, 2010 6:17 pm

i guess that i just typed it incorrectly in my previous post, i have been pasting this exact code into my browser

Code: Select all
http://192.168.1.103:8084/ZwaveCommand?command=device&id=3&level=100


where 192.168.1.103 designates the computer that is running ZWave Commander. even the ZWave Commander program shows that the computers IP is 192.168.1.103.

my software is the latest release that you have available (Version 2.3.3706.16990)

and im still having the same problem (page not found)

but if i do type the above code into a browser on the computer that is running ZWave Commander it will all work correctly. but i cannot get that HTTP link to turn anything on or off from any other computer
Last edited by blaze818 on Sun Mar 21, 2010 6:21 pm, edited 1 time in total.
blaze818
 
Posts: 15
Joined: Sun Apr 05, 2009 5:48 pm

Re: [FIXED] HTTP Get Control

Postby Melloware » Sun Mar 21, 2010 6:21 pm

Post your zwave.log file for me to see. It is located next to the EXE. It will help me figure out why it is not working for you.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6565
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Next

Return to ZWave Commander/Lightswitch

Who is online

Users browsing this forum: No registered users and 0 guests

cron