@bertreb said in [solved] not able to do a simple pimatic installation on raspi 3B+:
I’m using on one of my pi’s a 3B+ with stretch, node 4.6.2, npm 2.15.12 and mqtt 0.9.13, without install or restart errors. So what else could be different?
Hi, I did a fresh pimatic and mqtt install on the same setup i’ve already running.
Now i’m getting an errror like @simonbove
pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js
10:17:52.040 2019-12-31 Tuesday
10:17:56.743 [pimatic] Starting pimatic version 0.9.54
10:17:56.753 [pimatic] Node.js version 4.6.2
10:17:56.755 [pimatic] OpenSSL version 1.0.2j
10:17:58.544 [pimatic, ppm] 2.15.12
10:17:58.584 [pimatic] Loading plugin: "pimatic-cron" (0.8.8)
10:17:58.974 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16)
10:17:59.601 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13)
10:17:59.841 [pimatic] Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
10:17:59.877 [pimatic-cron] the time is: Tue Dec 31 2019 10:17:59 GMT+0100 (CET)
10:18:00.267 [pimatic-mobile-frontend] packing static assets
10:18:00.580 [pimatic-mobile-frontend] packing static assets finished
10:18:00.589 [pimatic-mobile-frontend] rendering html
10:18:07.035 [pimatic-mobile-frontend] rendering html finished
10:18:07.084 [pimatic] Listening for HTTP-request on port 80...
Next test is fresh install on node 4.9.1
There is the error again, but now after the first device was installed.
pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js
10:49:27.057 2019-12-31 Tuesday
10:49:31.680 [pimatic] Starting pimatic version 0.9.54
10:49:31.690 [pimatic] Node.js version 4.9.1
10:49:31.692 [pimatic] OpenSSL version 1.0.2o
10:49:33.655 [pimatic, ppm] 2.15.12
10:49:33.697 [pimatic] Loading plugin: "pimatic-cron" (0.8.8)
10:49:34.077 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16)
10:49:34.697 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13)
coffee-cache: compiling coffee-script file "mqtt.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-switch.coffee"...Done
10:49:36.131 [pimatic] Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
10:49:36.166 [pimatic-cron] the time is: Tue Dec 31 2019 10:49:36 GMT+0100 (CET)
10:49:36.579 [pimatic-mobile-frontend] packing static assets
10:49:36.886 [pimatic-mobile-frontend] packing static assets finished
10:49:36.894 [pimatic-mobile-frontend] rendering html
10:49:43.487 [pimatic-mobile-frontend] rendering html finished
10:49:43.540 [pimatic] Listening for HTTP-request on port 80...
Now i will do the fresh test node 10.16.3 (according the pimatic Wiki)
The installation went without any problems.
pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js
11:21:59.534 2019-12-31 Tuesday
11:22:02.750 [pimatic] Starting pimatic version 0.9.54
11:22:02.757 [pimatic] Node.js version 10.16.3
11:22:02.758 [pimatic] OpenSSL version 1.1.1c
11:22:04.217 [pimatic, ppm] 2.15.12
11:22:04.245 [pimatic] Loading plugin: "pimatic-cron" (0.8.8)
11:22:04.640 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.16)
11:22:05.132 [pimatic] Loading plugin: "pimatic-mqtt" (0.9.13)
coffee-cache: compiling coffee-script file "mqtt.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-switch.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-dimmer.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-sensor.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-presence-sensor.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-contact-sensor.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-buttons.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-shutter.coffee"...Done
coffee-cache: compiling coffee-script file "devices/mqtt-input.coffee"...Done
coffee-cache: compiling coffee-script file "predicates_and_actions/mqtt_action.coffee"...Done
coffee-cache: compiling coffee-script file "predicates_and_actions/mqtt_predicate.coffee"...Done
11:22:07.136 [pimatic-cron] the time is: Tue Dec 31 2019 11:22:07 GMT+0100 (Central European Standard Time)
coffee-cache: compiling coffee-script file "device-config-schema.coffee"...Done
11:22:07.823 [pimatic-mobile-frontend] packing static assets
11:22:08.169 [pimatic-mobile-frontend] packing static assets finished
11:22:08.174 [pimatic-mobile-frontend] rendering html
11:22:12.390 [pimatic-mobile-frontend] rendering html finished
11:22:12.418 [pimatic] Listening for HTTP-request on port 80...
So node 10.16.3 works if you do a fresh install!
Why my node 4.6.2 works with mqtt 0.9.13 is probably because it was upgraded and not a fresh install (i’m not going to prove that )