mikakoivisto / controlmyspa-ha-mqtt

GNU General Public License v3.0
13 stars 5 forks source link

Docker application on my Synology NAS #13

Closed nuiler closed 8 months ago

nuiler commented 8 months ago

I would like to run controlmyspa-ha-mqtt as a Docker application on my Synology NAS. Unfortunately, it terminates unexpectedly after starting.

Do I have to create a config in advance. Can I point this to a folder

mikakoivisto commented 8 months ago

You configure it through environment variables. See README.md

nuiler commented 8 months ago

mikakoivisto-controlmyspa-ha-mqtt-1 date,stream,content 2024/03/18 11:27:18,stdout,Node.js v18.16.1

2024/03/18 11:27:18,stdout,

2024/03/18 11:27:18,stdout, at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

2024/03/18 11:27:18,stdout, at /usr/src/app/lib/spa.js:24:12

2024/03/18 11:27:18,stdout, at Spa.emit (node:events:525:35)

2024/03/18 11:27:18,stdout, at Spa. (/usr/src/app/lib/spa.js:34:33)

2024/03/18 11:27:18,stdout,TypeError: Cannot read properties of null (reading 'expires_in')

2024/03/18 11:27:18,stdout,

2024/03/18 11:27:18,stdout, ^

2024/03/18 11:27:18,stdout," }, (self.client.tokenData.expires_in - 60) * 1000); " 2024/03/18 11:27:18,stdout,/usr/src/app/lib/spa.js:34

2024/03/18 11:27:16,stdout,failed to login

2024/03/18 11:27:14,stdout, app:info MQTT connection established +0ms

2024/03/18 11:22:21,stdout,Node.js v18.16.1

2024/03/18 11:22:21,stdout,

2024/03/18 11:22:21,stdout, at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

2024/03/18 11:22:21,stdout, at /usr/src/app/lib/spa.js:24:12

2024/03/18 11:22:21,stdout, at Spa.emit (node:events:525:35)

2024/03/18 11:22:21,stdout, at Spa. (/usr/src/app/lib/spa.js:34:33)

2024/03/18 11:22:21,stdout,TypeError: Cannot read properties of null (reading 'expires_in')

2024/03/18 11:22:21,stdout,

2024/03/18 11:22:21,stdout, ^

2024/03/18 11:22:21,stdout," }, (self.client.tokenData.expires_in - 60) * 1000); " 2024/03/18 11:22:21,stdout,/usr/src/app/lib/spa.js:34

2024/03/18 11:22:21,stdout,failed to login

2024/03/18 11:22:20,stdout, app:info MQTT connection established +0ms