From 9d533603eaaa51190c505f35ab92bb381a929ca8 Mon Sep 17 00:00:00 2001 From: xun Date: Sat, 9 Jan 2021 13:29:42 +0100 Subject: [PATCH] Added meter showing how many minutes ago the miaomiao communicated with website --- GlucoseMeter/BloodGlucose.ini | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/GlucoseMeter/BloodGlucose.ini b/GlucoseMeter/BloodGlucose.ini index c1dd36e..4edf61a 100644 --- a/GlucoseMeter/BloodGlucose.ini +++ b/GlucoseMeter/BloodGlucose.ini @@ -3,10 +3,13 @@ Update=1000 AccurateText=1 DynamicWindowSize=1 + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +TOMATO MONITOR URL [Variables] @Include=#@#Variables.inc - -################################################## +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +BACKGROUND METER [Background] Meter=IMAGE @@ -14,14 +17,14 @@ X=0 Y=0 W=400 H=160 -SolidColor=255,0,0,0 - -################################################## +SolidColor=255,0,0,1 +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +MEASURES [MeasureSite] Measure=WebParser URL= #url# -RegExp=(?siU)
(.*)
.*.*(.*) +RegExp=(?siU)
(.*)
.*.*(.*).*
(.*)
UpdateRate=300 [MeasureGlucose] @@ -42,8 +45,12 @@ Measure=WebParser URL=[MeasureSite] StringIndex=3 -################################################## +[MeasureMinsAgo] +Measure=WebParser +URL=[MeasureSite] +StringIndex=4 +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [GlucoseShadow] Meter=STRING MeasureName=MeasureGlucose @@ -91,4 +98,16 @@ FontColor=#color# FontFace=ITC Avant Garde Pro XLt FontSize=25 AntiAlias=1 +ClipString=0 + +[MinutesAgo] +Meter=STRING +MeasureName=MeasureMinsAgo +X=385 +Y=95 +StringAlign=Right +FontColor=#color# +FontFace=ITC Avant Garde Pro XLt +FontSize=14 +AntiAlias=1 ClipString=0 \ No newline at end of file