Skip to content

Commit

Permalink
check if highcharts running
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 15, 2015
1 parent c8615ce commit dbd5b95
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/highcharts/highcharts2
@@ -1,6 +1,16 @@
#! /bin/bash -x

dir=$( cd "$( dirname "$0" )" && cd ../../ && pwd )


if pidof -o %PPID -x $(basename $0) > /dev/null; then
echo runnning
echo "run" >> $dir/log.txt
exit
fi



mkdir $dir/tmp/highcharts
rm -rf $dir/tmp/highcharts/*

Expand Down
8 changes: 8 additions & 0 deletions modules/kwh/highcharts
Expand Up @@ -2,6 +2,14 @@

dir=$( cd "$( dirname "$0" )" && cd ../../ && pwd )

if pidof -o %PPID -x $(basename $0) > /dev/null; then
echo runnning
echo "run" >> $dir/log.txt
exit
fi



mkdir -p $dir/tmp/kwh 1> /dev/null
gpio=$(sqlite3 $dir/dbf/nettemp.db "SELECT gpio FROM gpio WHERE mode='kwh'")

Expand Down

0 comments on commit dbd5b95

Please sign in to comment.