KNX home automation project via knx.js
- Install Docker and Docker-Compose.
- Access to DNS settings for the domain.
Use sample.env file as a template and create .env file or set environment variables accordingly.
- KNX_ENV - development or production
- KNX_CONN - knxConnection or mockConnection
- KNX_ADMIN - username of the admin user
- KNX_PWD - password of the admin user
- KNX_HTTP_PORT - http port of node.js app, leave it as 8787
- KNX_IP_ADDR - LAN IP address of the KNX interface device, for example 192.168.0.99
- KNX_IP_PORT - KNX port, usually 3671
- TWILIO_SID - Twilio SID
- TWILIO_KEY - Twilio Auth Key
- TWILIO_FROM - Twilio FROM phone number
- TWILIO_TO - Twilio TO phone number
- Use user_conf.d/nginx.conf file to configure NGINX reverse proxy settings. server_name for SSL needs to be set properly.
- Configure A record on the DNS and point it the required machine. If machine is hidden behind NAT, then proper port forwarding must be configured.
In the root directory execute docker-compose up. This should set up an nginx reverse proxy and an underlying node.js server and configure LetsEncrypt SSL certificates with autorenewal on the given machine. If clean-up is needed, then executed docker-compose down and docker image rm didoknx_node.