Im trying to setup raspberry pi with node.js as stated in the Instructables here : http://www.instructables.com/id/Blynk-JavaScript-in-20-minutes-Raspberry-Pi-Edison/
I can run blynk.js ‘auth code’ perfectly and get this response from Pi:
pi@raspberrypi ~ $ blynk.js ‘my auth code’
OnOff mode
Connecting to SSL: cloud.blynk.cc 8441
Connected
Authorized
Blynk ready.
But when I run the blynk-test.js I get this error:
pi@raspberrypi ~ $ sudo node blynk-test.js
/home/pi/blynk-test.js:1
nction (exports, require, module, __filename, __dirname) { JsOsaDAS1.001.00bpl
^^^^
SyntaxError: Unexpected number
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Im new to raspberry pi and would like to setup my 8ch relay board to control more than just the ON and OFF as with the Get Started guide (which I did manage to do)
Thanks in advance