jan 20
authorstephen
Fri, 20 Jan 2017 14:46:14 +0000
changeset 117530859d6e4e
parent 10 ca7fbf224048
child 12 8c4a15242632
jan 20
battery.log
daily/loradtn-2017-01-20.gpl
daily/loradtn-2017-01-20.png
loradtn.png
sedded-battery.log
     1.1 Binary file battery.log has changed
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/daily/loradtn-2017-01-20.gpl	Fri Jan 20 14:46:14 2017 +0000
     2.3 @@ -0,0 +1,60 @@
     2.4 +# set term postscript eps color solid blacktext "Helvetica" 14
     2.5 +# set output 'loradtn.eps'
     2.6 +# set size 4,4
     2.7 +
     2.8 +set terminal png nocrop enhanced size 1024,768
     2.9 +set output 'loradtn-2017-01-20.png'
    2.10 +
    2.11 +set datafile separator ","
    2.12 +set xdata time
    2.13 +set timefmt "%Y-%m-%d %H:%M:%S"
    2.14 +
    2.15 +os='2017-01-20 11:00:00'
    2.16 +oe='2017-01-20 16:00:00'
    2.17 +
    2.18 +set title "Loradtn power (Mech. Eng. roof)"
    2.19 +set key below 
    2.20 +
    2.21 +r1=1700
    2.22 +r2=1800
    2.23 +r3=1900
    2.24 +r4=2000
    2.25 +
    2.26 +nospike=0
    2.27 +spike=1
    2.28 +newdata=2
    2.29 +
    2.30 +set xrange [os:oe]
    2.31 +set yrange [1500:19000]
    2.32 +set y2range [-6000:8000]
    2.33 +
    2.34 +set ylabel "mV"
    2.35 +set y2label "mA"
    2.36 +set ytics nomirror
    2.37 +
    2.38 +set ytics (\
    2.39 +"OVERRIDE" 5000,\
    2.40 +"UP" 4500,\
    2.41 +"STBYSHORT" 4000,\
    2.42 +"STBYLONG" 3500,\
    2.43 +"SLEEP" 3000,\
    2.44 +"OFF" 2500,\
    2.45 +"14500" 14500,\
    2.46 +"14000" 14000,\
    2.47 +"13500" 13500,\
    2.48 +"13000" 13000,\
    2.49 +"12500" 12500,\
    2.50 +"12000" 12000,\
    2.51 +"11500" 11500,\
    2.52 +"11000" 11000,\
    2.53 +"spike" 10050)
    2.54 +
    2.55 +set y2tics ( 4000, 3500, 3000, 2500, 2000, 1500, 1000, 500, 0, -500, -1000, "spike" -2000 )
    2.56 +
    2.57 +
    2.58 +set pointsize 10
    2.59 +
    2.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, \
    2.61 +     'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ?   -2000 :       $5  ) ) : 1/0 ) axes x1y2 title "mA" with points ps 1, \
    2.62 +     'sedded-battery.log' using 1: ( ($2 == r1) ? (2000 + $6) : 1/0 ) axes x1y1 title "state" with step
    2.63 +
     3.1 Binary file daily/loradtn-2017-01-20.png has changed
     4.1 Binary file loradtn.png has changed
     5.1 --- a/sedded-battery.log	Thu Jan 19 03:00:15 2017 +0000
     5.2 +++ b/sedded-battery.log	Fri Jan 20 14:46:14 2017 +0000
     5.3 @@ -1280,3 +1280,26 @@
     5.4  2017-01-18 15:56:00,1700,pbmd,1178,-1100,2500,0
     5.5  2017-01-18 15:57:09,1700,pbmd,1177,-1045,2500,0
     5.6  2017-01-18 15:58:18,1700,pbmd,1174,-1100,2500,0
     5.7 +2017-01-18 15:59:27,1700,pbmd,1165,-1119,2500,0
     5.8 +2017-01-18 16:00:36,1700,pbmd,1162,-1100,1000,0
     5.9 +2017-01-20 10:32:17,1700,pbmd,1235,490,3000,0
    5.10 +2017-01-20 10:33:26,1700,pbmd,1252,-157,1000,0
    5.11 +2017-01-20 11:21:59,1700,pbmd,1307,897,3000,1
    5.12 +2017-01-20 11:23:08,1700,pbmd,1209,-823,2500,0
    5.13 +2017-01-20 11:24:17,1700,pbmd,1178,-823,2500,0
    5.14 +2017-01-20 11:25:26,1700,pbmd,1130,-934,1500,0
    5.15 +2017-01-20 14:27:16,1700,pbmd,1329,1100,2500,0
    5.16 +2017-01-20 14:28:25,1700,pbmd,1325,897,2500,0
    5.17 +2017-01-20 14:29:34,1700,pbmd,1319,878,2500,0
    5.18 +2017-01-20 14:30:43,1700,pbmd,1319,860,2500,0
    5.19 +2017-01-20 14:31:52,1700,pbmd,1320,860,2500,0
    5.20 +2017-01-20 14:33:01,1700,pbmd,1320,860,2500,0
    5.21 +2017-01-20 14:34:10,1700,pbmd,1320,693,2500,0
    5.22 +2017-01-20 14:35:19,1700,pbmd,1316,860,2500,0
    5.23 +2017-01-20 14:36:28,1700,pbmd,1319,656,2500,0
    5.24 +2017-01-20 14:37:37,1700,pbmd,1317,823,2500,0
    5.25 +2017-01-20 14:38:46,1700,pbmd,1317,804,2500,0
    5.26 +2017-01-20 14:39:55,1700,pbmd,1316,804,2500,0
    5.27 +2017-01-20 14:41:04,1700,pbmd,1310,693,2500,0
    5.28 +2017-01-20 14:42:13,1700,pbmd,1317,767,2500,0
    5.29 +2017-01-20 14:43:22,1700,pbmd,1316,545,2500,0