Hello; i'm trying to do a plugin for amazon dash button.
I'm not able to launch a node script; i'm getting this error
Error: This command is denied by policy
at Error (native)
at DashButton.init (automation/userModules/DashButton/index.js:39:126)
I have updated .syscommand file
20:06 pi@raspberrypi /opt/z-way-server/automation % cat .syscommands
/usr/bin/raspistill
/bin/ping
/bin/sh
/usr/bin/node
/usr/bin/sudo
/etc/alternatives/node
/opt/z-way-server/automation/userModules/DashButton/node/dashbutton.js
ping
grep
index.js command :
system('node /opt/z-way-server/automation/userModules/DashButton/node/dashbutton.js', device, self.config.login, self.config.password);
Do you see any reason ?
thx