Closed GekoCH closed 2 years ago
When I lauch the programm via npm start i get this output. It has worked before but since a few days I get this error message:
npm start
[2022-05-07T11:53:17.810Z] [INFO] Loading configuration file: /root/Icantbelieveitsnotvaletudo/config.json [2022-05-07T11:53:17.869Z] [INFO] Connecting to MQTT broker... [2022-05-07T11:53:17.874Z] [INFO] Webserver running on port 3000 [2022-05-07T11:53:17.878Z] [INFO] Connected to MQTT broker. [2022-05-07T11:53:27.881Z] [INFO] Drawing map... /root/Icantbelieveitsnotvaletudo/lib/MapDrawer.js:169 drawLayer(layer.pixels[i], layer.pixels[i + 1], color.r, color.g, color.b, color.a); ^ TypeError: Cannot read property 'r' of undefined at /root/Icantbelieveitsnotvaletudo/lib/MapDrawer.js:169:75 at Array.forEach (<anonymous>) at MapDrawer.draw (/root/Icantbelieveitsnotvaletudo/lib/MapDrawer.js:153:33) at Timeout._onTimeout (/root/Icantbelieveitsnotvaletudo/lib/MqttClient.js:104:42) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! i-cant-believe-its-not-valetudo@2021.12.0 start: `node app.js` npm ERR! Exit status 1
When I lauch the programm via
npm start
i get this output. It has worked before but since a few days I get this error message: