Hi there
I tried to configure Pimatic with https support.
But each time I start Pimatic, it only starts http and in config it’s deleting https section…
Here the config:
{
"settings": {
"httpServer": {
"enabled": true,
"port": 81
},
"httpsServer": {
"enabled": true,
"port": 8080,
"hostname": "",
"keyFile": "ca/pimatic-ssl/private/privkey.pem",
"certFile": "ca/pimatic-ssl/public/cert.pem"
},
...
Here the output when I start Pimatic:
23:09:47.830 [pimatic] Loading plugin: "pimatic-cron" (0.8.8)
23:09:48.271 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.12)
23:09:48.965 [pimatic] Loading plugin: "pimatic-dht-sensors" (0.9.3)
23:09:48.994 [pimatic] Loading plugin: "pimatic-dewpoint" (0.9.0)
23:09:49.019 [pimatic] Loading plugin: "pimatic-sysinfo" (0.9.4)
23:09:49.169 [pimatic] Loading plugin: "pimatic-node-red" (1.0.7)
23:09:50.515 [pimatic] Loading plugin: "pimatic-hue-zll" (0.3.1)
23:09:51.017 [pimatic-cron] the time is: Wed Jan 17 2018 23:09:51 GMT+0100 (CET)
23:09:51.661 [pimatic-hue-zll] (Re)Initializing Hue API using host 192.168.0.104
23:09:51.741 [pimatic-hue-zll] Requesting status of lights, light groups and scenes from the Hue API
23:09:53.890 [pimatic] New device "DHT1"...
23:09:57.644 [pimatic] New device "DHT2"...
23:10:01.352 [pimatic] New device "DHT3"...
23:10:01.384 [pimatic] New device "DP1"...
23:10:01.412 [pimatic] New device "DP2"...
23:10:01.435 [pimatic] New device "DP3"...
23:10:01.466 [pimatic] New device "sysinfo"...
23:10:01.543 [pimatic] New device "testswitch"...
23:10:01.686 [pimatic-hue-zll] Error during bridge version Hue API request (attempt 1/3): timeout of 5000ms exceeded
23:10:02.029 [pimatic-mobile-frontend] packing static assets
23:10:03.916 [pimatic-mobile-frontend] packing static assets finished
23:10:03.923 [pimatic-mobile-frontend] rendering html
23:10:11.877 [pimatic-mobile-frontend] rendering html finished
23:10:12.046 [pimatic] Listening for HTTP-request on port 81...
23:10:21.498 [pimatic-hue-zll] Error during bridge version Hue API request (attempt 2/3): timeout of 5000ms exceeded
17 Jan 23:10:22 - [info]
Welcome to Node-RED
===================
17 Jan 23:10:22 - [info] Node-RED version: v0.17.5
17 Jan 23:10:22 - [info] Node.js version: v4.6.2
17 Jan 23:10:22 - [info] Linux 4.9.35-v7+ arm LE
17 Jan 23:10:23 - [info] Loading palette nodes
17 Jan 23:10:28 - [info] User directory : /home/swissresl/pimatic-app/node_modules/pimatic-node-red/../../
17 Jan 23:10:28 - [info] Flows file : /home/swissresl/pimatic-app/flows_swissraspi.json
23:10:28.212 [pimatic-hue-zll] Connected to bridge Philips hue, API version 1.22.0, software 1711151408
17 Jan 23:10:28 - [info] Starting flows
17 Jan 23:10:28 - [info] Started flows
After Pimatic is stopped or restarted, config looks following:
{
"settings": {
"httpServer": {
"enabled": true,
"port": 81
},
"httpsServer": {},
...
Does anyone know, where the issue is?
Thanks in advance for hints.