• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 15
[RELEASE] X10 - lights (Domotica Commander)
#76
nelsonamen Wrote:can this be implemented or installed on openelec or xbmc live?

x10commander-server
melloware.com/products/x10commander/

i can make this work with windows 7 and openelec but i only want to use one pc

You can install the x10commander-server on the same computer as where you have installed XBMC.
I have a Windows 7 setup with everything on one PC

But as far as I can see, OpenELEC = Linux based so...
I do not know if X10-commander is available on Linux, check the melloware website for that
Reply
#77
I think it supports

http://melloware.com/products/x10commander/

Linux/Unix Support: Heyu server software and a X10 Shell Script installed on your Linux box.

only windows 7 (easy)
the two together windows 7 with openelec (easy)
only openelec or xbmc live (seems to be very difficult)

anyone can do it?
Reply
#78
Martin75a Wrote:Yes it looks almost the same as your example above.
Here is a guide of how the command line works in SK. (SK calls this Rest.)
Unfortunately I only found it in Swedish. Sad http://www.switchking.se/en/faq/guides/u...-addresses
The code below shows how to switch ON/OFF and dimm a device.
Code:
http://servernamn:8800/devices/{id}/turnon
http://servernamn:8800/devices/{id}/turnoff
http://servernamn:8800/devices/{id}/dim/{level}

Martin75a,

I was not able to make a HTTP commandline function yet.
However based on your information above, I have added Switch King as an application to X10-commander light.
If you configure with the pre-definde settings (ON/OFF/DIM/BRIGHT)
it will send the correct URL to switch king
You can also choose for free commands, and then you can define whatever command you want (this is now available to all application X10-Commander, Homeseer, etc...).

So if you want to create something like this
Code:
http://servernamn:8800/devices/{id}/dim/{level}
then:
Go to the event you want to configure (XBMC Events/PLAYER Events),
Enable the event you want to configure,
Select the Free definable action
Then you get 2 fields available:
-command, here you fill out: dim
-value, here you fill out the level you want to give with the command e.g.: 35

In combination with the settings under Host and Devices
a url will be created like:
Code:
http://servernamn:8800/devices/{id}/dim/{level}

IMPORTANT:
The Device ID under the device settings, does NOT have to be an X10 address like A1,
It can also be something like: Living room, wall
So you can fill out the name used in switch king.

I have made an alpha version of this, which you can download here:
V0.0.6 alpha
There is no manual available yet, it is also not tested fully yet.
Reply
#79
As of now version V0.0.6 alpha is released.

Changelog:
- Added: Enable/Disable of Events
- Added: Free or predefinded commands per Event
- Added: Switch King
- Updated: [CORE] Selection function to handle Free commands
- Updated: [CORE] Application functions to handle Free commands

(This release is Untested and Undocumented)
Reply
#80
Shoop_NL Wrote:As of now version V0.0.6 alpha is released.

Changelog:
- Added: Enable/Disable of Events
- Added: Free or predefinded commands per Event
- Added: Switch King
- Updated: [CORE] Selection function to handle Free commands
- Updated: [CORE] Application functions to handle Free commands

(This release is Untested and Undocumented)

One quick question. Did you remove the { } signs around ID ?
I did not manage it to work. The exact code should look like
Quote:http://192.168.1.135:8800/devices/35/dim/50
It was rather late yesterday when I tested so maybe I did something wrong, I will try again tonight. Thanks
Reply
#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:[email protected]:8800/devices/35/dim/100

I use wget for HTTP commandline funktionality, Is this possible for you?
http://www.gnu.org/software/wget/
Reply
#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:[email protected]: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
Reply
#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:[email protected]: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.
Reply
#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
Reply
#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.
Reply
#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:[email protected]:8800/devices/35/dim/10
And I have change the User and pass in my file. Smile
Reply
#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.
Reply
#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?
Reply
#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.
Reply
#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.
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 15

Logout Mark Read Team Forum Stats Members Help
[RELEASE] X10 - lights (Domotica Commander)4