Hi all,
I started a thread last week because I could not read any signals from my homematic with pimatic but with the serial monitor I could.
Today I reinstalled from scratch: raspbian then apt-get update and upgrade.
Then I followed the guide to install pimatic.
Again, everything worked but homematic.
I then went to autostart pimatic as described in the guide and since then I get the following error (with any starting method):
pi@raspberrypi:~/pimatic-app $ sudo node_modules/pimatic/pimatic.js
14:07:37.995 2016-11-22 Tuesday
14:07:42.596 [pimatic] Starting pimatic version 0.9.37
14:07:42.768 [pimatic] settings.debug is true, showing debug output for pimatic core.
14:07:44.447 [pimatic, ppm] 2.15.11
14:07:44.486 [pimatic] Loading plugin: "pimatic-cron" (0.8.8)
14:07:44.911 [pimatic] Loading plugin: "pimatic-mobile-frontend" (0.9.11)
14:07:45.523 [pimatic] Loading plugin: "pimatic-homeduino" (0.9.11)
14:07:46.128 [pimatic-cron] the time is: Tue Nov 22 2016 14:07:46 GMT+0000 (UTC)
14:07:46.731 [pimatic] Startup error: SyntaxError: Unexpected token /
14:07:46.731 [pimatic]> at exports.runInThisContext (vm.js:53:16)
14:07:46.731 [pimatic]> at Module._compile (module.js:373:25)
14:07:46.731 [pimatic]> at Object.compile (/home/pi/pimatic-app/node_modules/pimatic/coffee-cache.js:169:17)
14:07:46.731 [pimatic]> at Module.load (/home/pi/pimatic-app/node_modules/pimatic-mobile-frontend/node_modules/nap/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
14:07:46.731 [pimatic]> at Function.Module._load (module.js:300:12)
14:07:46.731 [pimatic]> at Module.require (module.js:353:17)
14:07:46.731 [pimatic]> at require (internal/module.js:12:17)
14:07:46.731 [pimatic]> at DeviceManager.initDevices (/home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:1600:25)
14:07:46.731 [pimatic]> at /home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:921:34
14:07:46.731 [pimatic]> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
14:07:46.731 [pimatic]> at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:510:31)
14:07:46.731 [pimatic]> at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:567:18)
14:07:46.731 [pimatic]> at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:612:10)
14:07:46.731 [pimatic]> at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:691:18)
14:07:46.731 [pimatic]> at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:16)
14:07:46.731 [pimatic]> at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:148:10)
14:07:46.731 [pimatic]> at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
14:07:46.731 [pimatic]> at processImmediate [as _immediateCallback] (timers.js:383:17)
14:07:46.735 [pimatic] exiting...
I am no programmer and don’t know node.js…
Any help?
Thanks
Dom