Docker container for DCH-S200-web-control
- Install npm modules:
cd webcontrol; npm i
- Build docker image:
docker build -t dcg-s200-web-control .
docker run \
-p 9867:5000 \
-e SIREN_PASSWORD=123456 \
-e SIREN_IP_ADDRESS=siren.local \
-e WEBHOOK_USERNAME=admin \
-e WEBHOOK_PASSWORD=pass \
-e WEBHOOK_PORT=5000 \
dcg-s200-web-control
This command
curl \
-u admin:pass \
"http://127.0.0.1:9867/?type=status"
Should return:
{"status":"OK","message":"Successfully processed","isPlaying":false}