[RELEASE] X10 - lights (Domotica Commander)

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Martin75a Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Location: Sweden
Post: #81
OK I've tested a bit more now and could not get it to work.
Either it is the { } character or maybe that SK seems to require a username and password to connect through http
This works in a web browser.
Code:
http://User:Pass@192.168.1.135:8800/devices/35/dim/100

I use wget for HTTP commandline funktionality, Is this possible for you?
http://www.gnu.org/software/wget/
find quote
Shoop_NL Offline
Member
Posts: 66
Joined: Dec 2009
Reputation: 0
Location: NL
Post: #82
Martin75a Wrote:OK I've tested a bit more now and could not get it to work.
Either it is the { } character or maybe that SK seems to require a username and password to connect through http
This works in a web browser.
Code:
http://User:Pass@192.168.1.135:8800/devices/35/dim/100

I use wget for HTTP commandline funktionality, Is this possible for you?
http://www.gnu.org/software/wget/

I can build up a URL as you request.
The { } sign are NOT in the URL.
I will update and send an updated release
find quote
Shoop_NL Offline
Member
Posts: 66
Joined: Dec 2009
Reputation: 0
Location: NL
Post: #83
Martin75a Wrote:OK I've tested a bit more now and could not get it to work.
Either it is the { } character or maybe that SK seems to require a username and password to connect through http
This works in a web browser.
Code:
http://User:Pass@192.168.1.135:8800/devices/35/dim/100

I use wget for HTTP commandline funktionality, Is this possible for you?
http://www.gnu.org/software/wget/

I have added a security option with user and password.
You can find it under Configure -> Host
There you can enable application security.
two new fields will become available, Username and Password.

Furthermore I have added the URL to the logging.
This way you can see what URL will be send to Switch King.
You can find the entries it in the XBMC.log file

V0.0.6 alpha updated.
find quote
Martin75a Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Location: Sweden
Post: #84
Thanks, I tested the new version and still have problems. I can't find the URL in the XBMC.log file. Maybe I missed something.
Any idea or is there more info you need?
This is from the XBMC.log file.

Quote:16:39:09 T:6584 NOTICE: X10-Light: ******************* X10-Light *******************
16:39:09 T:6584 NOTICE: X10-Light: Import of libraries is done
16:39:09 T:6584 NOTICE: X10-Light: *************************************************
16:39:09 T:6584 NOTICE: X10-Light: *************** Addon information ***************
16:39:09 T:6584 NOTICE: X10-Light: Addon info name : X10 Commander Lights
16:39:09 T:6584 NOTICE: X10-Light: Addon info path : C:\Program Files (x86)\XBMC\addons\service.X10-lights
16:39:09 T:6584 NOTICE: X10-Light: Addon info author : Majestic Soft
16:39:09 T:6584 NOTICE: X10-Light: Addon info version : 0.0.6
16:39:09 T:6584 NOTICE: X10-Light: *************************************************
16:39:09 T:6584 NOTICE: X10-Light: Addon information is read and shown in log file
16:39:09 T:6584 NOTICE: X10-Light: StartEventEnable: true
16:39:09 T:6584 NOTICE: X10-Light: StartFree: true
16:39:09 T:6584 NOTICE: X10-Light: *************** Addon Host settings *************
16:39:09 T:6584 NOTICE: X10-Light: IP number : 192.168.1.135
16:39:09 T:6584 NOTICE: X10-Light: PORT number : 8800
16:39:09 T:6584 NOTICE: X10-Light: ************ Addon X10 Device settings **********
16:39:09 T:6584 NOTICE: X10-Light: Device ID : 35
16:39:09 T:6584 NOTICE: X10-Light: Device Application : SWITCHKING
16:39:09 T:6584 NOTICE: X10-Light: ************ Addon XBMC event settings **********
16:39:09 T:6584 NOTICE: X10-Light: Start Action : DIM
16:39:09 T:6584 NOTICE: X10-Light: Start Action (%) : 10
16:39:09 T:6584 NOTICE: X10-Light: Stop Action : CMD
16:39:09 T:6584 NOTICE: X10-Light: *********** Addon player event settings *********
16:39:09 T:6584 NOTICE: X10-Light: Start Action : DIM
16:39:09 T:6584 NOTICE: X10-Light: Start Action (%) : 10
16:39:09 T:6584 NOTICE: X10-Light: Stop Action : CMD
16:39:09 T:6584 NOTICE: X10-Light: Pause Action : CMD
16:39:09 T:6584 NOTICE: X10-Light: Resume Action : CMD
16:39:09 T:6584 NOTICE: X10-Light: End Action : CMD
16:39:09 T:6584 NOTICE: X10-Light: *************************************************
16:39:09 T:6584 NOTICE: X10-Light: Addon settings are read and shown in log file
16:39:09 T:6584 NOTICE: X10-Light: ******************** STARTUP ********************
16:39:09 T:6584 NOTICE: X10-Light: **************** INITIALIZATION******************
16:39:09 T:6584 NOTICE: X10-Light: Switch King, Action: ON, with value: 0.
16:39:09 T:6584 NOTICE: X10-Light: Switch King, The ON Event Failed
16:39:09 T:6584 NOTICE: X10-Light: Switch King, Action: BRIGHT, with value: 100.
16:39:10 T:6584 NOTICE: X10-Light: Switch King, The BRIGHT Event Failed
16:39:10 T:6584 NOTICE: X10-Light: *************************************************
16:39:10 T:6584 NOTICE: X10-Light: ****************** START EVENT ******************
16:39:10 T:6584 NOTICE: X10-Light: Switch King, Action: DIM, with value: 10.
16:39:10 T:6584 NOTICE: X10-Light: Switch King, The DIM Event Failed
16:39:10 T:6584 NOTICE: X10-Light: *************************************************
16:39:10 T:6584 NOTICE: X10-Light: ****************** CLASS PLAYER *****************
16:39:10 T:6584 NOTICE: X10-Light: Class player is opened
16:39:10 T:6584 NOTICE: X10-Light: Class player is initialized
(This post was last modified: 2012-03-08 17:57 by Martin75a.)
find quote
Shoop_NL Offline
Member
Posts: 66
Joined: Dec 2009
Reputation: 0
Location: NL
Post: #85
Martin75a Wrote:Thanks, I tested the new version and still have problems. I can't find the URL in the XBMC.log file. Maybe I missed something.
Any idea or is there more info you need?
This is from the XBMC.log file.

Yes the URL will be logged.
However you have a fail, if the Fail routine is called the URL will not be writtenin the log file.
Can you Ping the IP adres: 192.168.1.135
from the machine where XBMC is running on/
it looks like this server cannot be reached.
find quote
Martin75a Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Location: Sweden
Post: #86
Shoop_NL Wrote:Yes the URL will be logged.
However you have a fail, if the Fail routine is called the URL will not be writtenin the log file.
Can you Ping the IP adres: 192.168.1.135
from the machine where XBMC is running on/
it looks like this server cannot be reached.

Yes I can ping and get answer from 192.168.1.135. I can also send the command from a web browser and wget and it works.
Is it possible to log the exactly command line that is sent from X10-Light (XBMC) to switch king? I mean to be sure that it really becomes
Quote:http://User:Pass@192.168.1.135:8800/devices/35/dim/10
And I have change the User and pass in my file. Smile
find quote
Shoop_NL Offline
Member
Posts: 66
Joined: Dec 2009
Reputation: 0
Location: NL
Post: #87
Martin75a Wrote:Yes I can ping and get answer from 192.168.1.135. I can also send the command from a web browser and wget and it works.
Is it possible to log the exactly command line that is sent from X10-Light (XBMC) to switch king? I mean to be sure that it really becomes

And I have change the User and pass in my file. Smile

OK, I have update the V0.0.6 Alpha now it will always log the URL
before it is send.

V0.0.6 alpha updated.
(This post was last modified: 2012-03-08 23:24 by Shoop_NL.)
find quote
Martin75a Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Location: Sweden
Post: #88
Shoop_NL Wrote:OK, I have update the V0.0.6 Alpha now it will always log the URL
before it is send.

V0.0.6 alpha updated.

Thank you. It is exactly the right command sent from X10-Light when it fails.
If i copy it from the log file and paste it in the web browser it works and return.
Quote:<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">OK</string>
Any idea?
find quote
Shoop_NL Offline
Member
Posts: 66
Joined: Dec 2009
Reputation: 0
Location: NL
Post: #89
Martin75a Wrote:Thank you. It is exactly the right command sent from X10-Light when it fails.
If i copy it from the log file and paste it in the web browser it works and return.

Any idea?

No, not yet.
I will try to setup Switchking with teldus
And see if I can find some answer.

However for my work, I wil be away for the next 6 weeks.
So it can take a while before I find something.
find quote
Martin75a Offline
Junior Member
Posts: 14
Joined: Nov 2011
Reputation: 0
Location: Sweden
Post: #90
Shoop_NL Wrote:No, not yet.
I will try to setup Switchking with teldus
And see if I can find some answer.

However for my work, I wil be away for the next 6 weeks.
So it can take a while before I find something.

Thanks a lot.
find quote
Post Reply