1.0.5 • Published 2 years ago

intercom-server v1.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

smartthings intercom-server

Before Install Server

Server setup using Docker

  • Docker Installation:
docker run -d --name=smartthings-intercom --cap-add NET_ADMIN --net=host -p 8099:8099 -p 8098:8098 --restart=always vassio/smartthings-intercom:latest
  • Docker Installation with configuration out:
echo "{}"> /opt/config/intercom/intercomConfig.json
docker run -d --name=smartthings-intercom --cap-add NET_ADMIN --net=host -p 8099:8099 -p 8098:8098 -v /opt/config/intercom/intercomConfig.json:/opt/config/intercom/intercomConfig.json --restart=always vassio/smartthings-intercom:latest

Manual Server setup

  • required Node 12.x or upper
sudo npm i pm2 -g
sudo env PATH=$PATH:/usr/bin pm2 startup systemd -u ${currentUser} --hp ${HOME}
sudo npm i intercom-server -g
sudo pm2 start `npm root -g`/ intercom-server/index.js
sudo pm2 save

Server Configuration

{
 "server": {
  "port": 8099
 },
 "smartapp": [
  "https://graph.api.smartthings.com",
  "https://graph-na02-useast1.api.smartthings.com",
  "https://graph-na04-useast2.api.smartthings.com",
  "https://graph-eu01-euwest1.api.smartthings.com",
  "https://graph-ap02-apnortheast2.api.smartthings.com"
 ],
 "smartthings": {
  "port": 8098,
  "appId": "<APPLICATION_ID>",
  "secret": "<APPLICATION_SECRET>",
  "label": "intercom",
  "deviceIp": "<DEVICE_IP>",
  "shard": "https://graph-eu01-euwest1.api.smartthings.com",
  "timeout": 1200000
 }
}

where