[FIXED] HTTP Get Control

Forum to discuss ZWaveCommander/Lightswitch iPhone/iPod Touch application

Re: [FIXED] HTTP Get Control

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

Code: Select all
[Header]
2010-03-21 14:45:22,214 [INFO ] - Application [ZWave Commander] START
2010-03-21 14:45:22,236 [INFO ] - Initializing Preferences
2010-03-21 14:45:22,240 [INFO ] - Creating Preferences....
2010-03-21 14:45:22,264 [INFO ] - IP Address : fa80::f450:e75e:a488:eafb%11
2010-03-21 14:45:22,264 [INFO ] - IP Address : fa80::10c6:de3:b74a:3a30%13
2010-03-21 14:45:22,264 [INFO ] - IP Address : 192.168.1.103
2010-03-21 14:45:22,264 [INFO ] - IP Address : 2001:0:4137:9a74:10c6:de3:b74a:3a30
2010-03-21 14:45:22,264 [INFO ] - Creating Default Scenes...
2010-03-21 14:45:22,265 [INFO ] - Creating Default Zones...
2010-03-21 14:45:22,274 [INFO ] - Creating NotificationIcon....
2010-03-21 14:45:22,274 [INFO ] - Initializing Menu...
2010-03-21 14:45:22,322 [ERROR] - Publish Multicast DNS Service ERROR: Unable to connect to system daemon service
2010-03-21 14:45:22,322 [INFO ] - Starting HTTP Listener http://*:8084/...
2010-03-21 14:45:22,339 [INFO ] - Registering Growl Connector...
2010-03-21 14:45:22,408 [INFO ] - ControlThink.ZWave Version: 1.3.0.23
2010-03-21 14:45:22,408 [INFO ] - .NET Framework: 2.0.50727.4927
2010-03-21 14:45:22,409 [INFO ] - ZWaveCommander, Version=2.3.3706.16990, Culture=neutral, PublicKeyToken=null 2.3.3706.16990
2010-03-21 14:45:22,410 [INFO ] - ZWave: Connecting...
2010-03-21 14:45:22,683 [INFO ] - ZWave: Controller Connected! HomeId - 15142975
2010-03-21 14:45:22,776 [INFO ] - Server Start : 192.168.1.103
2010-03-21 14:45:30,609 [INFO ] - ControlThink.ZWave Version: 1.3.0.23
2010-03-21 14:45:30,609 [INFO ] - .NET Framework: 2.0.50727.4927
2010-03-21 14:53:04,232 [INFO ] - ControlThink.ZWave Version: 1.3.0.23
2010-03-21 14:53:04,232 [INFO ] - .NET Framework: 2.0.50727.4927
2010-03-21 14:53:27,693 [WARN ] - Device does not support storing name inside device
2010-03-21 16:14:06,850 [INFO ] - ControlThink.ZWave Version: 1.3.0.23
2010-03-21 16:14:06,850 [INFO ] - .NET Framework: 2.0.50727.4927
2010-03-21 16:14:24,384 [INFO ] - Sunset 1394 ....turning lights ON
2010-03-21 16:21:19,488 [WARN ] - URL not a valid Zwave Request
2010-03-21 16:21:30,135 [WARN ] - URL not a valid Zwave Request


It is weird that even a computer on the same network will not load the page correctly but the computer that has the ZWave server on it will load the page and execute the task
blaze818
 
Posts: 15
Joined: Sun Apr 05, 2009 5:48 pm

Re: [FIXED] HTTP Get Control

Postby Melloware » Sun Mar 21, 2010 9:10 pm

You are getting this errors...

Code: Select all
2010-03-21 16:21:19,488 [WARN ] - URL not a valid Zwave Request
2010-03-21 16:21:30,135 [WARN ] - URL not a valid Zwave Request


That means the URL you are sending is NOT well formed. Which means the HTTP request got to Zwave Commander but it did not like what you sent....

To get more detailed logging do this...

Edit the ZwaveCommander.log4net file and replace INFO with ALL. Then try and send your URL again it will give more details about the URL you sent. It looks like you are close. The only reason I would think that using 192.168.1.103 from another computer on your network doesn't work is...

1. You are not connected to the SAME WIFI netowkr somehow and you are accidentally connected to a neighbor's connection.
2. Your firewall or router is blocking access between the two PC's.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6549
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby blaze818 » Sun Mar 21, 2010 10:14 pm

This is my log file when i start the server and then turn the light on and then off from the machine that is running the ZWave server

I also know for a fact that i am on the correct WIFI network
and i am 99% sure that my firewalls are open and allowing connections to the ZWave server. my ipod touch will work correctly and i have it setup to connect to the Zwave server with my DNS address. the port 6004 is forwarded for the Zwave server for the ipod touch to be able to control the lights from anywhere. i have recently added 8084 and opened it up on my router. Windows 7 firewall is set to allow the Zwave server as well.

Code: Select all
[Header]
2010-03-21 19:50:12,208 [INFO ] - Application [ZWave Commander] START
2010-03-21 19:50:12,229 [INFO ] - Initializing Preferences
2010-03-21 19:50:12,233 [INFO ] - Creating Preferences....
2010-03-21 19:50:12,233 [INFO ] - Deserializing XML file: C:\zwave commander\ZWaveCommander.exe.xml
2010-03-21 19:50:12,505 [INFO ] - Creating Preferences....
2010-03-21 19:50:12,716 [INFO ] - IP Address : fa80::f450:e75e:a488:eafb%11
2010-03-21 19:50:12,716 [INFO ] - IP Address : fa80::10c6:de3:b74a:3a30%13
2010-03-21 19:50:12,716 [INFO ] - IP Address : 192.168.1.103
2010-03-21 19:50:12,716 [INFO ] - IP Address : 2201:0:4137:9e74:10c6:de3:b74a:3a30
2010-03-21 19:50:12,724 [INFO ] - Creating NotificationIcon....
2010-03-21 19:50:12,725 [INFO ] - Initializing Menu...
2010-03-21 19:50:12,740 [ERROR] - Publish Multicast DNS Service ERROR: Unable to connect to system daemon service
2010-03-21 19:50:12,740 [INFO ] - Starting HTTP Listener http://*:8084/...
2010-03-21 19:50:12,756 [INFO ] - Registering Growl Connector...
2010-03-21 19:50:12,819 [INFO ] - ControlThink.ZWave Version: 1.3.0.23
2010-03-21 19:50:12,819 [INFO ] - .NET Framework: 2.0.50727.4927
2010-03-21 19:50:12,820 [INFO ] - ZWaveCommander, Version=2.3.3706.16990, Culture=neutral, PublicKeyToken=null 2.3.3706.16990
2010-03-21 19:50:12,821 [INFO ] - ZWave: Connecting...
2010-03-21 19:50:13,090 [INFO ] - ZWave: Controller Connected! HomeId - 15142975
2010-03-21 19:50:13,091 [DEBUG] - ZWave: Loading device list...
2010-03-21 19:50:13,094 [DEBUG] - Polling all devices for levels
2010-03-21 19:50:13,186 [INFO ] - Server Start : 192.168.1.103
2010-03-21 19:50:46,227 [DEBUG] - Start: 3/21/2010 7:50:46 PM
2010-03-21 19:50:46,227 [DEBUG] - 8084: /ZwaveCommand?command=device&id=3&level=100
2010-03-21 19:50:46,228 [DEBUG] - Param: command    device
2010-03-21 19:50:46,235 [DEBUG] - Param: id         3
2010-03-21 19:50:46,235 [DEBUG] - Param: level      100
2010-03-21 19:50:46,237 [DEBUG] - Changing Device 3 Level: 100
2010-03-21 19:50:46,370 [DEBUG] - End: 3/21/2010 7:50:46 PM
2010-03-21 19:50:46,382 [DEBUG] - Start: 3/21/2010 7:50:46 PM
2010-03-21 19:50:46,382 [DEBUG] - 8084: /favicon.ico
2010-03-21 19:50:46,389 [WARN ] - URL not a valid Zwave Request
2010-03-21 19:50:46,390 [DEBUG] - End: 3/21/2010 7:50:46 PM
2010-03-21 19:50:51,602 [DEBUG] - Start: 3/21/2010 7:50:51 PM
2010-03-21 19:50:51,602 [DEBUG] - 8084: /ZwaveCommand?command=device&id=3&level=0
2010-03-21 19:50:51,602 [DEBUG] - Param: command    device
2010-03-21 19:50:51,602 [DEBUG] - Param: id         3
2010-03-21 19:50:51,602 [DEBUG] - Param: level      0
2010-03-21 19:50:51,602 [DEBUG] - Changing Device 3 Level: 0
2010-03-21 19:50:51,726 [DEBUG] - End: 3/21/2010 7:50:51 PM
2010-03-21 19:50:51,748 [DEBUG] - Start: 3/21/2010 7:50:51 PM
2010-03-21 19:50:51,748 [DEBUG] - 8084: /favicon.ico
2010-03-21 19:50:51,748 [WARN ] - URL not a valid Zwave Request
2010-03-21 19:50:51,748 [DEBUG] - End: 3/21/2010 7:50:51 PM
2010-03-21 19:51:13,188 [DEBUG] - Current Minutes After Midnight = 1191
2010-03-21 19:51:13,191 [DEBUG] - Local Sunrise = 241, Sunset = 975
2010-03-21 19:52:13,198 [DEBUG] - Current Minutes After Midnight = 1192
2010-03-21 19:52:13,198 [DEBUG] - Local Sunrise = 241, Sunset = 975


And this is what the log file looks like after i try the address on another machine connected to the same network. and also after i changed the "INFO" to "ALL". one other thing is that there was an XML file that was created after i made the change in the ZwaveCommander.log4net file from INFO to ALL (which i edited by opening with notepad then saved)

Code: Select all
[Header]
2010-03-21 20:07:17,777 [INFO ] - Application [ZWave Commander] START
2010-03-21 20:07:17,797 [INFO ] - Initializing Preferences
2010-03-21 20:07:17,801 [INFO ] - Creating Preferences....
2010-03-21 20:07:17,801 [INFO ] - Deserializing XML file: C:\zwave commander\ZWaveCommander.exe.xml
2010-03-21 20:07:18,072 [INFO ] - Creating Preferences....
2010-03-21 20:07:18,271 [INFO ] - IP Address : fa80::f450:e75e:a488:eafb%11
2010-03-21 20:07:18,271 [INFO ] - IP Address : fe80::10c6:de3:b74a:3a30%13
2010-03-21 20:07:18,272 [INFO ] - IP Address : 192.168.1.103
2010-03-21 20:07:18,272 [INFO ] - IP Address : 2201:0:4137:9e74:10c6:de3:b74a:3a30
2010-03-21 20:07:18,280 [INFO ] - Creating NotificationIcon....
2010-03-21 20:07:18,280 [INFO ] - Initializing Menu...
2010-03-21 20:07:18,295 [ERROR] - Publish Multicast DNS Service ERROR: Unable to connect to system daemon service
2010-03-21 20:07:18,295 [INFO ] - Starting HTTP Listener http://*:8084/...
2010-03-21 20:07:18,311 [INFO ] - Registering Growl Connector...
2010-03-21 20:07:18,375 [INFO ] - ControlThink.ZWave Version: 1.3.0.23
2010-03-21 20:07:18,375 [INFO ] - .NET Framework: 2.0.50727.4927
2010-03-21 20:07:18,375 [INFO ] - ZWaveCommander, Version=2.3.3706.16990, Culture=neutral, PublicKeyToken=null 2.3.3706.16990
2010-03-21 20:07:18,376 [INFO ] - ZWave: Connecting...
2010-03-21 20:07:18,642 [INFO ] - ZWave: Controller Connected! HomeId - 15142975
2010-03-21 20:07:18,644 [DEBUG] - ZWave: Loading device list...
2010-03-21 20:07:18,646 [DEBUG] - Polling all devices for levels
2010-03-21 20:07:18,773 [INFO ] - Server Start : 192.168.1.103
2010-03-21 20:08:18,787 [DEBUG] - Current Minutes After Midnight = 1208
2010-03-21 20:08:18,790 [DEBUG] - Local Sunrise = 241, Sunset = 975
2010-03-21 20:09:18,796 [DEBUG] - Current Minutes After Midnight = 1209
2010-03-21 20:09:18,796 [DEBUG] - Local Sunrise = 241, Sunset = 975
2010-03-21 20:10:18,810 [DEBUG] - Current Minutes After Midnight = 1210
2010-03-21 20:10:18,810 [DEBUG] - Local Sunrise = 241, Sunset = 975
2010-03-21 20:10:18,810 [DEBUG] - Polling all devices for levels
2010-03-21 20:11:18,822 [DEBUG] - Current Minutes After Midnight = 1211
2010-03-21 20:11:18,822 [DEBUG] - Local Sunrise = 241, Sunset = 975
2010-03-21 20:12:18,836 [DEBUG] - Current Minutes After Midnight = 1212
2010-03-21 20:12:18,836 [DEBUG] - Local Sunrise = 241, Sunset = 975


I would think that my problem may be coming from
Code: Select all
2010-03-21 20:07:18,295 [ERROR] - Publish Multicast DNS Service ERROR: Unable to connect to system daemon service
which is an error that i get in every log file

does it matter if i changed the password on the ZWave server?
Last edited by blaze818 on Mon Mar 22, 2010 10:32 am, edited 1 time in total.
blaze818
 
Posts: 15
Joined: Sun Apr 05, 2009 5:48 pm

Re: [FIXED] HTTP Get Control

Postby Melloware » Mon Mar 22, 2010 5:54 am

N o this is definitely the problem. The HTTP Request from your other machine is NOT getting to the Zwave Commander Server. On your localhost LOG you had this line...

Code: Select all
2010-03-21 19:50:46,227 [DEBUG] - 8084: /ZwaveCommand?command=device&id=3&level=100


That is GOOD and exactly what it should look like. Notice on your second log you never see anything come in! That means it is not even getting to port 8084 which means you probably being blocked by your router or firewall.

This error has nothing to do with this. This error is just because you don't have Bonjour or ITunes installed but it does not affect operation of ZC this only creates a Bonjour broadcaster.

Code: Select all
2010-03-21 19:50:12,740 [ERROR] - Publish Multicast DNS Service ERROR: Unable to connect to system daemon service
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 6549
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] HTTP Get Control

Postby blaze818 » Sun Jul 25, 2010 6:53 pm

I cannot figure out how to get the scenes working on zwave commander since i am using cheapy wyane dalton switches, but i was wondering if you could control multiple lights from the http server. for example

http://192.168.1.103:8084/ZwaveCommand? ... &level=100

and that would turn on both devices 3 and 4

just thinking out loud
blaze818
 
Posts: 15
Joined: Sun Apr 05, 2009 5:48 pm

Re: [FIXED] HTTP Get Control

Postby Melloware » Sun Jul 25, 2010 8:04 pm

Nope would need to be two separate HTTP Requests.

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


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

Re: [FIXED] HTTP Get Control

Postby stbluesrul » Mon Jul 26, 2010 5:31 pm

blaze818 wrote:I cannot figure out how to get the scenes working on zwave commander since i am using cheapy wyane dalton switches, but i was wondering if you could control multiple lights from the http server. for example

http://192.168.1.103:8084/ZwaveCommand? ... &level=100

and that would turn on both devices 3 and 4

just thinking out loud


You could also use a single zone to do this, as long as it is just ON and OFF. No dimming.

Code: Select all
// 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
stbluesrul
 
Posts: 73
Joined: Thu Dec 17, 2009 8:53 pm
Location: Las Vegas, NV

Re: [FIXED] HTTP Get Control

Postby blaze818 » Wed Jul 28, 2010 10:39 am

Thats a great work around since i cannot get my scenes to work (dont really know why). at least it cuts out one web page i need to load.

before this to get into "movie lighting" i would have to:
turn off my main light
turn on my fireplace light
turn on my small lamp

now i have to:
turn off main light
turn on zone that has lamp and fireplace light

i sure wish that there would be a z wave controller for android phones. since there is only ONE program available in the market place, and works only with micasavarde stuff. maybe someone should put up a poll and see if there is a market for your programs on android out there. i know alot of people on the forums have questions about android! i sure know i would pay for another version to get a nice front end on my EVO 4G
blaze818
 
Posts: 15
Joined: Sun Apr 05, 2009 5:48 pm

Previous

Return to ZWave Commander/Lightswitch

Who is online

Users browsing this forum: No registered users and 1 guest