Hi
I’m trying to write a plugin for Luxtrinic heatpumps by usind this library.
https://github.com/coolchip/luxtronik2
My plugin code can be found in this repository here: https://github.com/bakito/pimatic-luxtronik2
In my development environment with Ubuntu the plugin works fine. But when I install it on the raspberry pi I get an error while loading my plugin.
pimatic version: 0.9.39
node version: v4.6.2
npm version: 2.15.11
Can anyone help me finding the problem?
00:09:46.544 [pimatic] info: Loading plugin: "pimatic-luxtronik2" (0.0.1)
coffee-cache: compiling coffee-script file "luxtronik2-plugin.coffee"...Done
00:09:48.013 [pimatic] error: Unexpected token =
00:09:48.068 [pimatic] debug: SyntaxError: Unexpected token =
00:09:48.068 [pimatic] debug:> at exports.runInThisContext (vm.js:53:16)
00:09:48.068 [pimatic] debug:> at Module._compile (module.js:373:25)
00:09:48.068 [pimatic] debug:> at Object.Module._extensions..js (module.js:416:10)
00:09:48.068 [pimatic] debug:> 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)
00:09:48.068 [pimatic] debug:> at Function.Module._load (module.js:300:12)
00:09:48.068 [pimatic] debug:> at Module.require (module.js:353:17)
00:09:48.068 [pimatic] debug:> at require (internal/module.js:12:17)
00:09:48.068 [pimatic] debug:> at module.exports (/home/pi/pimatic-app/node_modules/pimatic-luxtronik2/luxtronik2-plugin.coffee:17:15)
00:09:48.068 [pimatic] debug:> at PluginManager.loadPlugin (/home/pi/pimatic-app/node_modules/pimatic/lib/plugins.coffee:83:16)
00:09:48.068 [pimatic] debug:> at /home/pi/pimatic-app/node_modules/pimatic/lib/plugins.coffee:485:25
00:09:48.068 [pimatic] debug:> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
00:09:48.068 [pimatic] debug:> at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
00:09:48.068 [pimatic] debug:> at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
00:09:48.068 [pimatic] debug:> at Promise._settlePromiseCtx (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:606:10)
00:09:48.068 [pimatic] debug:> at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:12)
00:09:48.068 [pimatic] debug:> at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
00:09:48.068 [pimatic] debug:> at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
00:09:48.068 [pimatic] debug:> at processImmediate [as _immediateCallback] (timers.js:383:17)