Skip to content

Commit

Permalink
8.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 12, 2015
1 parent 1177319 commit 83d6f6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/highcharts/highcharts2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ fi
mkdir -p $dir/tmp/highcharts
rm -rf $dir/tmp/highcharts/*

cp $dir/dbf/nettemp.db $dir/tmp/highcharts

# hosts
name="$(sqlite3 $dir/dbf/hosts.db "SELECT name FROM hosts")"
for i in $name; do
Expand All @@ -30,9 +32,9 @@ done
# sensors

for n in temp press lux humid; do
name=$(sqlite3 $dir/dbf/nettemp.db "SELECT name FROM sensors WHERE type='$n'")
name=$(sqlite3 $dir/tmp/highcharts/nettemp.db "SELECT name FROM sensors WHERE type='$n'")
for i in $name; do
rom=$(sqlite3 $dir/dbf/nettemp.db "SELECT rom FROM sensors WHERE name='$i'")
rom=$(sqlite3 $dir/tmp/highcharts/nettemp.db "SELECT rom FROM sensors WHERE name='$i'")
if base=$(sqlite3 $dir/db/$rom.sql "select strftime('%s', time),value FROM def ORDER BY time ASC;") ;
then
#middle=$(printf "$base %s\n" | awk -F "|" '{printf "["}{ printf "%3.0f",($1+3600)*1000}{printf ","}{printf "%3.3f", $2}{print "]," }')
Expand All @@ -57,3 +59,6 @@ for i in $name; do
echo "cannot read base"
fi
done


rm $dir/tmp/highcharts/nettemp.db
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ USERS:

Changelog:

8.6.4

highcarts - improve charts generating and prevent lock base.

8.6.3

fix higcharts bug
Expand Down

0 comments on commit 83d6f6a

Please sign in to comment.