[SOLVED] X10 Commander + Heyu on OpenWRT

Forum to discuss X10 Commander iPhone/iPod/iPad/Android client for X10 Devices

[SOLVED] X10 Commander + Heyu on OpenWRT

Postby dony71 » Wed Dec 31, 2014 3:33 am

i try x10 commander and openwrt linux with the script
since this linux in embedded platform, storage is limited so i cannot install bash, instead i modify the code slightly to use sh linux shell
the code is here
https://www.mediafire.com/?9sr32a01d2r2kpm

the script can be executed successfully and i can see also heyu server on my iphone 5s ios8.1.1
however device shows wrong and command control on iphone doesn't issue any command on heyu
check screen below
http://imgur.com/5hBzPTx
http://imgur.com/ibY8U0U

my x10.conf alias like below
# Associated a label with an X10 device
ALIAS entertainment C1 AMS
ALIAS livingroom2 C2 LM
ALIAS livingroom3 C3 LM
ALIAS bedroom2 E2 WS

i think something wrong with the shell script, but i'm not expert in this
anybody can help?
dony71
 
Posts: 5
Joined: Wed Dec 31, 2014 2:58 am

Re: x10 commander and linux heyu command not working

Postby Melloware » Wed Dec 31, 2014 8:17 am

OK I did not write the unix script but here is what looks wrong to me...

Yours:
Code: Select all
UPDATE~ualias~livingroom~


Correct:
Code: Select all
UPDATE~livingroom~A1~100


The Update statement contains 3 parts. A name, a House Code, and a percentage brightness. So in the above statement a device named "livingroom" which is on X10 House code A1 is currently set to full on or 100% brightness.

Your script looks like it is not sending house codes or formatted properly. Does that help?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11031
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: x10 commander and linux heyu command not working

Postby dony71 » Wed Dec 31, 2014 2:23 pm

yeah i know something wrong with this linux script
i need brandt for help on this
dony71
 
Posts: 5
Joined: Wed Dec 31, 2014 2:58 am

Re: x10 commander and linux heyu command not working

Postby dony71 » Wed Dec 31, 2014 3:15 pm

I search this forum and find out somebody has same issue at link below
viewtopic.php?uid=15335&f=13&t=9039&start=0
Now I need to know from simonsez, which compile option that he applied
Waiting for his reply PM
dony71
 
Posts: 5
Joined: Wed Dec 31, 2014 2:58 am

Re: x10 commander and linux heyu command not working

Postby dony71 » Wed Dec 31, 2014 6:03 pm

After understanding further of brandt shell script, I tweak a bit the script and manage to get it work now.
Modified script including How-To-Install guideline is in this share link below

Feel free to distribute
http://melloware.biz/download/warez/x10cmdr-openwrt.zip
dony71
 
Posts: 5
Joined: Wed Dec 31, 2014 2:58 am

Re: X10 Commander + Heyu on OpenWRT

Postby Melloware » Thu Jan 01, 2015 9:40 am

Nice work! OK I have done a few things. I updated your link to be a perma-link to our website.

I added your script to our instructions page and gave you credit. https://www.assembla.com/spaces/melloware/wiki/Linux_HEYU_Guide

And I updated out forum post link to include your info. http://forum.melloware.com/viewtopic.php?f=13&t=8768
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11031
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [SOLVED] X10 Commander + Heyu on OpenWRT

Postby X10_FunTime » Mon Feb 16, 2015 1:49 pm

Mellowware suggested that I post here.

I have the X10Commander android mobile app working with the HEYU on RAspberry Pi.

Lights turn and off just fine. However, each time I enter the X10 Commander app on mobile, it shows all devices as off, when some are really on.

Any advice?

Thank you.
X10_FunTime
 
Posts: 5
Joined: Mon Feb 16, 2015 12:17 pm

Re: [SOLVED] X10 Commander + Heyu on OpenWRT

Postby dony71 » Mon Feb 16, 2015 4:49 pm

dony71
 
Posts: 5
Joined: Wed Dec 31, 2014 2:58 am

Re: [SOLVED] X10 Commander + Heyu on OpenWRT

Postby X10_FunTime » Mon Feb 16, 2015 7:04 pm

I believe I'm using that script. I think I have found the issue. HEYU is not starting on reboot. I have to manually start it. After starting HEYU, I also have to issue an /etc/init.d/xinetd restart command.Otherwise mobile client will connect to server, but no devices are listed.

Any help on getting this worked out so that no manual intervention is needed after reboot would be greatly appreciated. :)

Thanks!

Problem solved:
This is what I did to get it working, perhaps there are other solutions as well.
1. Add a startup script to start HEYU. (search for examples) The script needs execute permission.
2. Add a reference to the startup script above in /etc/rc.local with: sudo /etc/init.d/your_script_name start
3. Add a line to restart xinetd: sudo /etc/init.d/xinetd restart

I'm not exactly sure why xinetd needs to be restarted, but this is what worked for me.
X10_FunTime
 
Posts: 5
Joined: Mon Feb 16, 2015 12:17 pm


Return to X10 Commander

Who is online

Users browsing this forum: No registered users and 2 guests