Hello, I'm a new Hubitat user. I currently use Insteon switches, outlets and leak detectors on an ISY994, Schlage Z-Wave locks, Ecobee thermostat and Honeywell Vista alarm panel on an Envisalink 3.
I'd appreciate some help as I've spent a few nights pulling out my hair following various tutorials to install nodejs, npm and smartthings-nodeproxy. With CLI apt install node and npm, I can never get it running to check version with node -v or npm -v. But I've successfully installed it via GUI.
The error thrown at me is in my config.json at position 9 ... which, is a space!? Thanks for any guidance!
My config: Raspberry Pi 3 B+, Rapsbian Buster Desktop on 32GB Sandisk Ultra
My most recent attempt and getting the furthest is this:
- Installed node.js 10.14.2 via GUI (Preferences>Add/Remove Software)
- Installed npm 5.8.0 via GUI (Preferences>Add/Remove Software)
- Then as far as step 8 in this tutorial (https://github.com/redloro/smartthings) as linked to in step 2 of @brianwilson Envisalink Vista smartthings-nodeproxy
pi@raspberrypi:~/smartthings-nodeproxy $ npm run start
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/smartthings-nodeproxy@1.0.0 start /home/pi/smartthings-nodeproxy
node server.js/home/pi/smartthings-nodeproxy/node_modules/nconf/lib/nconf/stores/file.js:160
throw new Error("Error parsing your configuration file: [" + this.file + ']: ' + ex.message);
^Error: Error parsing your configuration file: [./config.json]: Unexpected token : in JSON at position 9
at exports.File.File.loadSync (/home/pi/smartthings-nodeproxy/node_modules/nconf/lib/nconf/stores/file.js:160:11)
at exports.Provider.Provider.add (/home/pi/smartthings-nodeproxy/node_modules/nconf/lib/nconf/provider.js:137:23)
at exports.Provider.Provider.file (/home/pi/smartthings-nodeproxy/node_modules/nconf/lib/nconf/provider.js:63:15)
at Object. (/home/pi/smartthings-nodeproxy/server.js:23:7)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! smartthings-nodeproxy@1.0.0 start:node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the smartthings-nodeproxy@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-07-10T21_25_24_422Z-debug.log
This is my config.json:
"port" : 8080 ,
"authCode" : "secret-key" ,
"envisalink" : {
"address" : "192.168.1.56" ,
"port" : "4025" ,
"password" : "user" ,
"securityCode" : "1234" ,
"dumpZoneTimer" : "0" ,
"panelConfig" : {
"type" : "discover" ,
"partitions" : [
{ "partition" : 1 , "name" : "Home" }
] ,
"zones" : [
{ "zone" : 1 , "type" : "contact" , "name" : "Front & Side Door" },
--------- cut ----------
{ "zone" : 6 , "type" : "motion" , "name" : "Rear Motion" }
]
}
},
"dash" : {
"buttons" : [ "aa : bb : cc : dd : ee : f1" , "aa : bb : cc : dd : ee : f2" ]
}
}