Bind SolarEdge to aws iot
To start either:
npm install
export AWS_ACCESS_KEY_ID=xxx
export AWS_REGION=xxx
export AWS_SECRET_ACCESS_KEY=xxx
export AWS_IOT_ENDPOINT_HOST=xxx
export SOLAREDGE_ENDPOINT=xxx
export INTERVAL=30
npm start
Or to use Docker:
docker run \
--rm \
--net host \
-e AWS_ACCESS_KEY_ID=xxx \
-e AWS_REGION=xxx \
-e AWS_SECRET_ACCESS_KEY=xxx \
-e AWS_IOT_ENDPOINT_HOST=xxx \
-e SOLAREDGE_ENDPOINT=xxx \
-e INTERVAL=30 \
chrisns/iot-solaredge
Or to use Docker stack:
docker node update [NAME OF MACHINE/S WITH BLUETOOTH STICK] --label-add bluetooth=true
export AWS_ACCESS_KEY_ID=xxx
export AWS_REGION=xxx
export AWS_SECRET_ACCESS_KEY=xxx
export AWS_IOT_ENDPOINT_HOST=xxx
export SOLAREDGE_ENDPOINT=xxx
export INTERVAL=30
docker deploy --compose-file docker-compose.yml ble