LinHES Forums
http://forum.linhes.org/

BWS Sytems Ha-Bridge - X10 Intergration
http://forum.linhes.org/viewtopic.php?f=5&t=25324
Page 1 of 1

Author:  tscholl [ Thu Oct 31, 2019 2:47 pm ]
Post subject:  BWS Sytems Ha-Bridge - X10 Intergration

I've managed to get BWS Sytems Ha-Bridge running on my LinHES system however for it to work correctly and be recognized by Google Home or Alexa it "HAS" to be running on port 80

Unfortunately by default lighttpd also runs on port 80. I did find this.
Code:
In my situation, I wanted to keep a web interface running on port 80, but also allow Alexa to operate the ha-bridge enabled devices. I accomplished this via a simple proxy configuration. These examples assume you are running ha-bridge http on port 8080.

Example lighttpd config:

server.modules   += ( "mod_proxy" )
proxy.server = (
   "/api" =>
        (
                ( "host" => "127.0.0.1",
                  "port" => "8080"
                )
        )
)

I modified the proxy.server portion of the lighttpd config as shown, stopped and restarted lighttpd and everything worked!!!

Ha-bridge-5.3.0 does require jre1.8.0_60, you can download it by running this command
Code:
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=109700 -O Java-latest


Now I just have to figure out how to get the ha-bridge-5.3.0.jar to start during startup I'll be all set.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/