mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Add Pi Unicorn Hat node
This commit is contained in:
13
hardware/unicorn/scripts/checklib.js
Executable file
13
hardware/unicorn/scripts/checklib.js
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env node
|
||||
var fs = require('fs');
|
||||
|
||||
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py')) {
|
||||
console.warn("WARNING : Can't find unicorn.py python library");
|
||||
console.warn("WARNING : Please install using the following command");
|
||||
console.warn("WARNING : Note: this uses root...");
|
||||
console.warn("WARNING : curl -sS get.pimoroni.com/unicornhat | bash\n");
|
||||
//process.exit(1);
|
||||
}
|
||||
else {
|
||||
console.log("Unicorn Hat Python library found OK.\n")
|
||||
}
|
Reference in New Issue
Block a user