mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Add initial Sense HAT Input node
This commit is contained in:
14
hardware/sensehat/scripts/checklib.sh
Executable file
14
hardware/sensehat/scripts/checklib.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
python -c "import sense_hat" 2> /dev/null
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "WARNING : Can't find Sense HAT python library"
|
||||
echo "WARNING : Please install using the following commands"
|
||||
echo "WARNING : sudo apt-get update"
|
||||
echo "WARNING : sudo apt-get install sense-hat"
|
||||
echo "WARNING : sudo pip-3.2 install pillow"
|
||||
else
|
||||
echo "Sense HAT python library is installed"
|
||||
fi
|
Reference in New Issue
Block a user