Skip to content
Permalink
Browse files

Add support for TEMPer hardware

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jul 30, 2019
1 parent b17229a commit 819668f3f8bceedf9081d422bb3bbd94f58e979d
Showing with 430 additions and 0 deletions.
  1. +6 −0 fixes.sh
  2. +4 −0 info.sh
  3. +6 −0 info2.sh
  4. +414 −0 temper.py
@@ -308,6 +308,12 @@ fi

if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then

# Install TEMPer Support
if [ $(dpkg-query -W -f='${Status}' python3-serial 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
/root/nems/nems-admin/build/500-temper
fi


# Move NEMS TV Dashboard out of nems-www
if [[ ! -d /var/www/nems-tv ]]; then
cd /var/www
@@ -169,6 +169,10 @@ elif [[ $COMMAND == "livestatus" ]]; then
# output json response of livestatus query
/usr/local/share/nems/nems-scripts/info2.sh 11

elif [[ $COMMAND == "temper" ]]; then
# output JSON output of TEMPer devices
/usr/local/share/nems/nems-scripts/info2.sh 12

elif [[ $COMMAND == "rootfulldev" ]]; then
/bin/mount | /bin/sed -n 's|^/dev/\(.*\) on / .*|\1|p'

@@ -444,6 +444,12 @@ EOQ;
break;
case 12:
while (stristr($temper = shell_exec('/usr/local/share/nems/nems-scripts/temper.py --json'),'error')) {
}
print_r($temper);
break;
}

0 comments on commit 819668f

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