Skip to content

Commit

Permalink
Added meter showing how many minutes ago the miaomiao communicated wi…
Browse files Browse the repository at this point in the history
…th website
  • Loading branch information
xun468 committed Jan 9, 2021
1 parent 1d02857 commit 9d53360
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions GlucoseMeter/BloodGlucose.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ Update=1000
AccurateText=1
DynamicWindowSize=1


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TOMATO MONITOR URL
[Variables]
@Include=#@#Variables.inc

##################################################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
BACKGROUND METER

[Background]
Meter=IMAGE
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)<div class="glycemic-value">(.*)<div>.*<img src="(.*)".*>.*<span>(.*)</span>
RegExp=(?siU)<div class="glycemic-value">(.*)<div>.*<img src="(.*)".*>.*<span>(.*)</span>.*<div class="glycemic-time">(.*)</div>
UpdateRate=300

[MeasureGlucose]
Expand All @@ -42,8 +45,12 @@ Measure=WebParser
URL=[MeasureSite]
StringIndex=3

##################################################
[MeasureMinsAgo]
Measure=WebParser
URL=[MeasureSite]
StringIndex=4

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[GlucoseShadow]
Meter=STRING
MeasureName=MeasureGlucose
Expand Down Expand Up @@ -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

0 comments on commit 9d53360

Please sign in to comment.