Closed betz0r closed 5 years ago
I'm having the same issue since updating. Also tried a complete reinstall.
Issue is also in 0.9.13:
11:58:41.238 [pimatic] Loading plugin: "pimatic-homeduino" (0.9.13)
coffee-cache: compiling coffee-script file "homeduino.coffee"...Done
11:58:49.379 [pimatic] Unexpected token ILLEGAL
11:58:49.392 [pimatic] SyntaxError: Unexpected token ILLEGAL
Ok... travelling down the path of the error I've found something suspicious:
# hexdump -C node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/rfcontroljs/lib/protocols/switch13.js | head
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000020 00 00 00 00 00 00 00 00 72 20 62 69 6e 61 72 79 |........r binary|
00000030 54 6f 50 75 6c 73 65 2c 20 70 72 6f 74 6f 63 6f |ToPulse, protoco|
00000040 6c 49 6e 66 6f 2c 20 70 75 6c 73 65 73 54 6f 42 |lInfo, pulsesToB|
00000050 69 6e 61 72 79 4d 61 70 70 69 6e 67 3b 0a 20 20 |inaryMapping;. |
00000060 70 75 6c 73 65 73 54 6f 42 69 6e 61 72 79 4d 61 |pulsesToBinaryMa|
00000070 70 70 69 6e 67 20 3d 20 7b 0a 20 20 20 20 27 31 |pping = {. '1|
00000080 30 27 3a 20 27 31 27 2c 0a 20 20 20 20 27 30 31 |0': '1',. '01|
00000090 27 3a 20 27 30 27 2c 0a 20 20 20 20 27 32 27 3a |': '0',. '2':|
Editing pimatic-homeduino/node_modules/homeduino/node_modules/rfcontroljs/lib/controller.js
and removing switch13
from the protocols
array does make pimatic-homeduino load without the error.
Thank you, works now!
Since it's not really fixed, but just a work around. Maybe this issue should remain open until it's actually fixed...
Yes, i reopened. It was a missclick.
CLosing this now. 0.9.15 has been released
I found a problem after setting up my pimatic on RPi3 with node v4.6.2. During start of pimatic the log displays this message when the plugin is loaded. Reinstall and different location on drive doesn't make the error go away, so i guess it is in the code?
On Install:
On running pimatic normally:
Config:
EDIT: my setup is an arduino conntected to the rpi3