An extremely basic implementation to control a Heyu interface through web requests. This is absolutely overkill (Could've been written without Expressjs), but it made for rapid development so ¯\(ツ)/¯.
- A working Node installation
- A properly configured Heyu installation
- Clone this repository
npm install
- Copy
config.example.json
toconfig.json
- Put some string into
authenticationCode
npm start
- Default port is 3100 (Changeable in bin/www file)
authenticationCode
is a static string for extremely basic authentication- Requests take the format:
GET http://IPADDRESS:3100?authentication=SAME_AS_authenticationCode&light=X10_ADDRESS&action=ON/OFF
- Implement more secure authentication
- Optimization