Skip to content
Permalink
Browse files

Add piwatcher switch to nems-info

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 22, 2019
1 parent 9a18449 commit a0239148ac7a5d293e9290281f1ddc225f8ae473
Showing with 3 additions and 0 deletions.
  1. +3 −0 piwatcher
@@ -17,10 +17,13 @@ if [[ $platform < 10 ]]; then
# Check if a piWatcher is installed
piwatcher=$(/usr/local/bin/piwatcher status 2>&1)
if [[ $piwatcher == *"ERR"* ]]; then
echo 0 > /var/log/nems/piwatcher
echo "No piWatcher board detected. Get yours at https://cat5.tv/piwatcher"
exit
fi

echo 1 > /var/log/nems/piwatcher

# Set piWatcher to power on the NEMS Server after 15 seconds of power off
/usr/local/bin/piwatcher wake 15

0 comments on commit a023914

Please sign in to comment.
You can’t perform that action at this time.