updated to 18th
authorstephen
Thu, 19 Jan 2017 03:00:15 +0000
changeset 10ca7fbf224048
parent 9 f78d744c5028
child 11 7530859d6e4e
updated to 18th
daily/loradtn-2017-01-15.gpl
daily/loradtn-2017-01-15.png
daily/loradtn-2017-01-16.gpl
daily/loradtn-2017-01-16.png
daily/loradtn-2017-01-17.gpl
daily/loradtn-2017-01-17.png
doit.sh
loradtn.png
notes.txt
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/daily/loradtn-2017-01-15.gpl	Thu Jan 19 03:00:15 2017 +0000
     1.3 @@ -0,0 +1,60 @@
     1.4 +# set term postscript eps color solid blacktext "Helvetica" 14
     1.5 +# set output 'loradtn.eps'
     1.6 +# set size 4,4
     1.7 +
     1.8 +set terminal png nocrop enhanced size 1024,768
     1.9 +set output 'loradtn-2017-01-15.png'
    1.10 +
    1.11 +set datafile separator ","
    1.12 +set xdata time
    1.13 +set timefmt "%Y-%m-%d %H:%M:%S"
    1.14 +
    1.15 +os='2017-01-15 11:00:00'
    1.16 +oe='2017-01-15 16:00:00'
    1.17 +
    1.18 +set title "Loradtn power (Mech. Eng. roof)"
    1.19 +set key below 
    1.20 +
    1.21 +r1=1700
    1.22 +r2=1800
    1.23 +r3=1900
    1.24 +r4=2000
    1.25 +
    1.26 +nospike=0
    1.27 +spike=1
    1.28 +newdata=2
    1.29 +
    1.30 +set xrange [os:oe]
    1.31 +set yrange [1500:19000]
    1.32 +set y2range [-6000:8000]
    1.33 +
    1.34 +set ylabel "mV"
    1.35 +set y2label "mA"
    1.36 +set ytics nomirror
    1.37 +
    1.38 +set ytics (\
    1.39 +"OVERRIDE" 5000,\
    1.40 +"UP" 4500,\
    1.41 +"STBYSHORT" 4000,\
    1.42 +"STBYLONG" 3500,\
    1.43 +"SLEEP" 3000,\
    1.44 +"OFF" 2500,\
    1.45 +"14500" 14500,\
    1.46 +"14000" 14000,\
    1.47 +"13500" 13500,\
    1.48 +"13000" 13000,\
    1.49 +"12500" 12500,\
    1.50 +"12000" 12000,\
    1.51 +"11500" 11500,\
    1.52 +"11000" 11000,\
    1.53 +"spike" 10050)
    1.54 +
    1.55 +set y2tics ( 4000, 3500, 3000, 2500, 2000, 1500, 1000, 500, 0, -500, -1000, "spike" -2000 )
    1.56 +
    1.57 +
    1.58 +set pointsize 10
    1.59 +
    1.60 +plot 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? 10050 : (10 * $4) ) ) : 1/0 ) axes x1y1 title "mV" with points ps 1, \
    1.61 +     'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ?   -2000 :       $5  ) ) : 1/0 ) axes x1y2 title "mA" with points ps 1, \
    1.62 +     'sedded-battery.log' using 1: ( ($2 == r1) ? (2000 + $6) : 1/0 ) axes x1y1 title "state" with step
    1.63 +
     2.1 Binary file daily/loradtn-2017-01-15.png has changed
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/daily/loradtn-2017-01-16.gpl	Thu Jan 19 03:00:15 2017 +0000
     3.3 @@ -0,0 +1,60 @@
     3.4 +# set term postscript eps color solid blacktext "Helvetica" 14
     3.5 +# set output 'loradtn.eps'
     3.6 +# set size 4,4
     3.7 +
     3.8 +set terminal png nocrop enhanced size 1024,768
     3.9 +set output 'loradtn-2017-01-16.png'
    3.10 +
    3.11 +set datafile separator ","
    3.12 +set xdata time
    3.13 +set timefmt "%Y-%m-%d %H:%M:%S"
    3.14 +
    3.15 +os='2017-01-16 11:00:00'
    3.16 +oe='2017-01-16 16:00:00'
    3.17 +
    3.18 +set title "Loradtn power (Mech. Eng. roof)"
    3.19 +set key below 
    3.20 +
    3.21 +r1=1700
    3.22 +r2=1800
    3.23 +r3=1900
    3.24 +r4=2000
    3.25 +
    3.26 +nospike=0
    3.27 +spike=1
    3.28 +newdata=2
    3.29 +
    3.30 +set xrange [os:oe]
    3.31 +set yrange [1500:19000]
    3.32 +set y2range [-6000:8000]
    3.33 +
    3.34 +set ylabel "mV"
    3.35 +set y2label "mA"
    3.36 +set ytics nomirror
    3.37 +
    3.38 +set ytics (\
    3.39 +"OVERRIDE" 5000,\
    3.40 +"UP" 4500,\
    3.41 +"STBYSHORT" 4000,\
    3.42 +"STBYLONG" 3500,\
    3.43 +"SLEEP" 3000,\
    3.44 +"OFF" 2500,\
    3.45 +"14500" 14500,\
    3.46 +"14000" 14000,\
    3.47 +"13500" 13500,\
    3.48 +"13000" 13000,\
    3.49 +"12500" 12500,\
    3.50 +"12000" 12000,\
    3.51 +"11500" 11500,\
    3.52 +"11000" 11000,\
    3.53 +"spike" 10050)
    3.54 +
    3.55 +set y2tics ( 4000, 3500, 3000, 2500, 2000, 1500, 1000, 500, 0, -500, -1000, "spike" -2000 )
    3.56 +
    3.57 +
    3.58 +set pointsize 10
    3.59 +
    3.60 +plot 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? 10050 : (10 * $4) ) ) : 1/0 ) axes x1y1 title "mV" with points ps 1, \
    3.61 +     'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ?   -2000 :       $5  ) ) : 1/0 ) axes x1y2 title "mA" with points ps 1, \
    3.62 +     'sedded-battery.log' using 1: ( ($2 == r1) ? (2000 + $6) : 1/0 ) axes x1y1 title "state" with step
    3.63 +
     4.1 Binary file daily/loradtn-2017-01-16.png has changed
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/daily/loradtn-2017-01-17.gpl	Thu Jan 19 03:00:15 2017 +0000
     5.3 @@ -0,0 +1,60 @@
     5.4 +# set term postscript eps color solid blacktext "Helvetica" 14
     5.5 +# set output 'loradtn.eps'
     5.6 +# set size 4,4
     5.7 +
     5.8 +set terminal png nocrop enhanced size 1024,768
     5.9 +set output 'loradtn-2017-01-17.png'
    5.10 +
    5.11 +set datafile separator ","
    5.12 +set xdata time
    5.13 +set timefmt "%Y-%m-%d %H:%M:%S"
    5.14 +
    5.15 +os='2017-01-17 11:00:00'
    5.16 +oe='2017-01-17 16:00:00'
    5.17 +
    5.18 +set title "Loradtn power (Mech. Eng. roof)"
    5.19 +set key below 
    5.20 +
    5.21 +r1=1700
    5.22 +r2=1800
    5.23 +r3=1900
    5.24 +r4=2000
    5.25 +
    5.26 +nospike=0
    5.27 +spike=1
    5.28 +newdata=2
    5.29 +
    5.30 +set xrange [os:oe]
    5.31 +set yrange [1500:19000]
    5.32 +set y2range [-6000:8000]
    5.33 +
    5.34 +set ylabel "mV"
    5.35 +set y2label "mA"
    5.36 +set ytics nomirror
    5.37 +
    5.38 +set ytics (\
    5.39 +"OVERRIDE" 5000,\
    5.40 +"UP" 4500,\
    5.41 +"STBYSHORT" 4000,\
    5.42 +"STBYLONG" 3500,\
    5.43 +"SLEEP" 3000,\
    5.44 +"OFF" 2500,\
    5.45 +"14500" 14500,\
    5.46 +"14000" 14000,\
    5.47 +"13500" 13500,\
    5.48 +"13000" 13000,\
    5.49 +"12500" 12500,\
    5.50 +"12000" 12000,\
    5.51 +"11500" 11500,\
    5.52 +"11000" 11000,\
    5.53 +"spike" 10050)
    5.54 +
    5.55 +set y2tics ( 4000, 3500, 3000, 2500, 2000, 1500, 1000, 500, 0, -500, -1000, "spike" -2000 )
    5.56 +
    5.57 +
    5.58 +set pointsize 10
    5.59 +
    5.60 +plot 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? 10050 : (10 * $4) ) ) : 1/0 ) axes x1y1 title "mV" with points ps 1, \
    5.61 +     'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ?   -2000 :       $5  ) ) : 1/0 ) axes x1y2 title "mA" with points ps 1, \
    5.62 +     'sedded-battery.log' using 1: ( ($2 == r1) ? (2000 + $6) : 1/0 ) axes x1y1 title "state" with step
    5.63 +
     6.1 Binary file daily/loradtn-2017-01-17.png has changed
     7.1 --- a/doit.sh	Wed Jan 18 16:12:00 2017 +0000
     7.2 +++ b/doit.sh	Thu Jan 19 03:00:15 2017 +0000
     7.3 @@ -38,7 +38,7 @@
     7.4  if [ "$others" != "" ]
     7.5  then
     7.6  	# assume parameter is nicely formed date
     7.7 -	theday=$1
     7.8 +	theday=`echo $others | sed -e 's/ //g'` 
     7.9  	cat loradtn.gpl \
    7.10  		| sed -e 's/2017-01-01/'$theday'/' \
    7.11  		| sed -e 's/2017-01-31/'$theday'/' \
     8.1 Binary file loradtn.png has changed
     9.1 --- a/notes.txt	Wed Jan 18 16:12:00 2017 +0000
     9.2 +++ b/notes.txt	Thu Jan 19 03:00:15 2017 +0000
     9.3 @@ -2,6 +2,10 @@
     9.4  20170111 - device online for 1 min @0948 - someone on roof?
     9.5  20170112 - device offline at 1524, surprised if that's power? check
     9.6  20170113 - device work @ 0933 briefly - see early-wake-theory below
     9.7 +20170118 - fixed kerlink not powering off - both s/w and wiring!
     9.8 +           we re-charged unit from mains around 1400-1430, after
     9.9 +           that back to solar, hopefully voltage on 19th will
    9.10 +           behave
    9.11  
    9.12  
    9.13  early-wake-theory:
    9.14 @@ -14,3 +18,4 @@
    9.15  	- I modified /etc/stopproc.sh to stop pbm and call ker-off
    9.16  	- 20170114, looks like that fix didn't do it, need to test
    9.17  	some more when at node Monday
    9.18 +	- see 20170118