From 2af99f108b00973d844788b98d7d46521de87a2c Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Sat, 18 Aug 2018 18:48:27 +0200 Subject: [PATCH] add battery indication --- assets/img/battery_disconnected.png | Bin 0 -> 5326 bytes assets/img/battery_empty.png | Bin 0 -> 3622 bytes assets/img/battery_full.png | Bin 0 -> 4191 bytes assets/img/battery_half.png | Bin 0 -> 3793 bytes assets/js/sumorobot.js | 12 ++++++++---- index.html | 12 ++++++------ 6 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 assets/img/battery_disconnected.png create mode 100644 assets/img/battery_empty.png create mode 100644 assets/img/battery_full.png create mode 100644 assets/img/battery_half.png diff --git a/assets/img/battery_disconnected.png b/assets/img/battery_disconnected.png new file mode 100644 index 0000000000000000000000000000000000000000..3a8d37b400b7c2c00c7666708ba65a5c9064c967 GIT binary patch literal 5326 zcmV;<6fx_GP)001Be1^@s6T789c000hddQ@0+Qek%> zaB^>EX>4U6ba`-PAZ2)IW&i+q+O3&uRx3LWh5vgLJp{{d56927dImlG{^TkG_&`4^86sx=|zl4?qpN2sB?#+zcVM>~JThV%D4Lcc$g&)1E+ zuUp3@&#S-wE$P0#xXvKg?(5^8r*S=gn5f@3NdNpnU-$gwHXsj!=i%itVDE{|xF_=N z`ar_<|GaNVwd9XmSoe6>?knZ`HToy)Y;(X}C^8*H{;Q}ihB*zzaPo^e3iUJN059$;vo zg28rVF@QXX1<+BF*z8;u!I6akHJ0vxel|Rnjh$SW?NQ zlv-MK)kEpAlE<~wT3f?rW9G)qt(eA@?z-=x$DVrbrPtmD@EKvmkwzY6)X}D!enLbu z%{S`OTZNI~gJMFy7uDd;=c1QJ(=P#lrchua8l#a`fsBtyt zJE4J#(MdFBM9c*t;&2fW1K1ifTOd1=dSY*`LOwouD!LT5S_A97W)U|CR_zV;QEFl~KrTkb>V-oY{k&K?zy>|J{EEQ6X>eBV0zW-20}H%Sga z)4iP7or`8)*Dg~T5_%Yd8`RWo2TFfoiHdUB67$K_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;?j?&6 z6N7PDz8@SMEH6dZbtx1Im0&4~DdlT^{^cYF!K%IBGNM5cBVa9R3?e}+X#XS2ZzOkB z{co0lu1tyK6(5AMRRmumjkrGN-tZSY!)=OUvDng?Z?yt=sga)w+6;enmyuC(T=KWT gkw3|m)%uF&4`f@Q#Dj%w<^TWy07*qoM6N<$f)(aIvH$=8 literal 0 HcmV?d00001 diff --git a/assets/img/battery_empty.png b/assets/img/battery_empty.png new file mode 100644 index 0000000000000000000000000000000000000000..0396634232d5d62ecd1a7403245d07c91e6ae33c GIT binary patch literal 3622 zcmV+>4%zXEP)001Be1^@s6T789c000UOdQ@0+Qek%> zaB^>EX>4U6ba`-PAZ2)IW&i+q+O3#blH)oKMgO^qUV=D+Tn@*Gw}W1OA5ij;PP?k| zbxC1MrYHiu7o*Mm??21@hr_2Mm=GnWlG4EuN+_;!laKSL``aF2fA1r->zVyJZrn9~ zIEFk|fBwwr8lQ|a$<=GTU+YxHn+Uc4mhgI9GA*Dpzz2Cu(^K*@+G@7-SV&?V8xJ6*tMU%Bcx_wF|05K?{g z7e-lCl8w(k){R}o=y-Gdo2{DHy}oYsvZ*gNbH97CrL9pK?`^5vUhpp_knY#}xOskH z z4d=U3#Hc$}F+qVW`|Mj)Y4RdCL^=Ri3E!u}|`AxKE9;SVq5yHyYhM`0SgY1Yh75r9S6;5!R7RR>zJ(TBYSMBmt#-_(haP+C(sM7p4mbQD5REisd!9_flNFqAcBR^D9Wkn2WdKrlVOj5|3E6g{e_C^v)oUJgtTFs5QEJDCP((cQ*rrqXELSO4(P!2mv8*D18 zDvgb`kc4zMHvJ11TFXitHcVWj*opfUTm=VcWZLLQ!RoN|{7x5$D8k0e-q>JDn{9KM zd2=3fu?;KB%rH74d)&5FRgOkv-5b zr;h&G7*^0-ne1H_#Sl^)1s7EYg;qX3Z7Y12{!Y%8vNd`q2t(MS@T5zYd|&nnK(ikB z-OnZ zHe{aHE%LHSu#-Q;&U^yzr`VaF8r}oD8RD#ja~uyJHK>n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.png b/assets/img/battery_full.png new file mode 100644 index 0000000000000000000000000000000000000000..8d78a32e6106c8200d660979ed3b41c4e2e41222 GIT binary patch literal 4191 zcmV-l5TNggP)001Be1^@s6T789c000VfdQ@0+Qek%> zaB^>EX>4U6ba`-PAZ2)IW&i+q+U1#9a_c+}h2Ob~UIM|H%i&nnJLu*22TFFF>E5LO z$F|D0LP;Qi0~`R3S^xR>Hvi(~Q*|c9TvAQR@(MLn*ElKmdbRT@Hk{A%3jMw&@7ImH z*R5m8^X;!cOS;z=>)hnpy*_R^jrI5lJI-h$1z1$lQ} zkZ}Dy?*~#X`PGDV-|yPJQm(hrkFc}N0Z+|Tb4xJ=XOqj-+0dd5F=V}x7CyD!yXD0T zpMf{~dz*_dCMBPJPU3@Cb*&rsPPYah{|*^QW<+`Kj!3H_(a1X$;EQj3>nG>#vEuHP z+q9x8<>R08+7EQqNA`=?|6;27XzNE)@0fZQGtaY^SUMV|`E@MS#{>RD2&CutbKSgN zkoe&N|J>ibYE;vG=HAwips^oeb-&8nd+%BHUYB((Brr?2Q4bT(nc+sVC;0PN;>f%s z=lL9!qmXlhK%H#YIfhhm;JziulqOr2OvA~LfsVM`Wxkyo&Y!j7v#V~L@CbUycG*`y z2@2`G*PA%u%Ld`+z$v$G+huT9GsDi2)scU(r4o+G`F$ur*J!Q?7 z>zW=_cJFSkwnrW|9_h@Cdx##q|#@vQ(04dGp z&)F_{uaGj_>lzGP0`B0ix|M3Vq40!$gGF9*%7~bS$GYFEuav7#-|lqpWA@87Sa&vp zzVEH57#sdSJK-62!s=@CPI!K?*mkWe%pOhOz2yyxptW<@E5_B2A+`_~M^nFGxhnMt zD~Fyq*S zpVTV#+^bcWO~)Ya6r&d9-&pjp=L1OQ2Pn<2P85vjGpKbv5XApUG>TZCH!1{tliMn)>hFA zs-_l7(@JkWGXQmKnxr0VbVPd+32mz0#dqwEv%BNs%Tp!IxY%vynb82ASaw}dR3z8=9Ag#go-1udPnB`!T*twW-{xguZJL89p)xwqm=D_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ZjLo6I*~9U@alZ-iQFZ7X=YAfJ(5z2^A4ABgjVM+K)%H%TlO z3v$jK?ds9cD{YeFDd6T(wo#?CIE#z_0CeBiTmI1-SNPYy|!t@U9&g;kn%A zr$s{pY#&$Kwn*V&HZL#bY1r4>JsSt3%FL>y)YiLX8TcNp(JUZ{CS&NQ{Cj}<+nv2$ zZKYpF;8mBd_Vn8pVUkEqNZAhI(z5_8H5Al?S0=Z^qgpJb-KThE@vg>eJ=Q)Dl^RI!e1*>Cs90LK7WO~u#n3~ zy9RH;v=qR~C|b<|*F+-58-ZIOpq;hCfI6Ba(blROEVqq&8Tl3191Y#$$!pLgx}}^6 zL2Gyn+;&FGq3-u`xh#FIy66Tu^Y{5RW|3u)ZwcWA07e)9YOL+mwdhXb8i3D-U-2;GhFGB=&cVG*JL`-?GY-a?{u$5lN&}rl9`;B>3iBsqfPi00000NkvXX Hu0mjf)~#8p literal 0 HcmV?d00001 diff --git a/assets/js/sumorobot.js b/assets/js/sumorobot.js index 9cc56b4..5bbee19 100755 --- a/assets/js/sumorobot.js +++ b/assets/js/sumorobot.js @@ -31,8 +31,7 @@ Sumorobot.prototype.connect = function() { // Setup connection watchdog interval self.connectionTimer = setInterval(function() { if (self.watchdogCounter == 0 && !self.terminate) { - $('#battery').removeClass('connected'); - $('#battery').html('Disconnected'); + $("#battery img").attr("src", "assets/img/battery_disconnected.png"); } // Reset watchdog counter self.watchdogCounter = 0; @@ -66,8 +65,13 @@ Sumorobot.prototype.connect = function() { self.sensors = JSON.parse(data); // When sensor data received if (self.sensors['battery_voltage']) { - $('#battery').html(self.sensors['battery_voltage'] + 'V'); - $('#battery').addClass('connected'); + if (self.sensors['battery_voltage'] > 4.0) { + $("#battery img").attr("src", "assets/img/battery_full.png"); + } else if (self.sensors['battery_voltage'] > 3.1) { + $("#battery img").attr("src", "assets/img/battery_half.png"); + } else { + $("#battery img").attr("src", "assets/img/battery_empty.png"); + } } // Count data received packets self.watchdogCounter += 1; diff --git a/index.html b/index.html index 497e186..5d6ef51 100755 --- a/index.html +++ b/index.html @@ -12,10 +12,13 @@ - + + + + @@ -23,15 +26,12 @@ - - - - + -
Disconnected
+