So hi im back hope this thingy is still active but i got a new problem i have been testing the script for the last phew days and i put the variable MainTank on 25 because thats how long my main tank has been active
but the last days it keeps switching between 25 and 26
i dont know what the problem is and i dont know how to fix it so im gona try the </> thing again
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
SkinWidth=160
SkinHeight=327
[Variables]
@include=#@#\INC\DayCount.inc
[GetTime]
Measure=Time
[DaysCounter]
Measure=Calc
Formula=([GetTime:]%86400)
DynamicVariables=1
IfCondition=([DaysCounter] = (3600*14))
IfTrueAction=[!SetVariable DaysMainTank (#DaysMainTank#+1)][!SetVariable DaysNanoTank (#DaysNanoTank#+1)][!WriteKeyValue Variables DaysMainTank (#DaysMainTank#+1) "#@#DayCount.inc"][!WriteKeyValue Variables DaysNanoTank (#DaysNanoTank#+1) "#@#DayCount.inc"][!UpdateMeterGroup Tanks][!Redraw]
[BackgroundClock]
Meter=Shape
Shape=Rectangle 1,1,158,58,10,10 | Fill Color 110,110,110 | Stroke Color 0,0,0 | StrokeWidth 3
[MeasureDate]
Measure=Time
Format=%a - %b - %e
[Measure24HrTime]
Measure=Time
Format=%H:%M,%S
[Date/TimeStyle]
FontFace=#ff1#
FontSize=12
FontColor=#C1#
StringAlign=Center
StringStyle=Bold
AntiAlias=1
Group=Tanks
DynamicVariables=1
[Date]
Meter=String
MeasureName=MeasureDate
MeterStyle=Date/TimeStyle
X=80
Y=10
Text="%1"
[Clock]
Meter=String
MeasureName=Measure24HrTime
MeterStyle=Date/TimeStyle
FontSize=18
X=80
Y=30
Text="%1"
[Background]
Meter=Shape
Shape=Rectangle 1,1,158,198,10,10 | Fill Color 110,110,110 | Stroke Color 0,0,0 | StrokeWidth 3
Y=63
[LabelStyle]
FontFace=#ff1#
FontSize=12
FontColor=#C1#
StringAlign=Center
StringStyle=Bold
AntiAlias=1
Group=Tanks
DynamicVariables=1
Y=70
[DisplayStyle]
FontFace=#ff2#
FontSize=80
FontColor=#C2#
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Group=Tanks
DynamicVariables=1
Y=170
[MainTankLabel]
Meter=String
MeterStyle=LabelStyle
Text=Main Tank
X=#XPos1#
[MainTankDisplay]
Meter=String
MeterStyle=DisplayStyle
Text=#DaysMainTank#
X=#XPos1#
[NanoTankLabel]
Meter=String
MeterStyle=LabelStyle
Text=Nano Tank
X=#XPos2#
[NanoTankDisplay]
Meter=String
MeterStyle=DisplayStyle
Text=#DaysNanoTank#
X=#XPos2#
[TankSwitch]
Meter=String
FontFace=#ff2#
FontSize=8
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Left
StringStyle=Bold
AntiAlias=1
Text=Tank
X=10
Y=240
LeftMouseUpAction=[!CommandMeasure Slider "Execute #State#"]
DynamicVariables=1
[Slider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=wait 16 | Repeat HideMain,20,16 | Repeat ShowNano,20,16
HideMain=[!SetVariable XPos1 "(Clamp(#XPos1#-20,-80,80))"][!HideMeter ResetMainTank]#U#
ShowNano=[!SetVariable XPos2 "(Clamp(#XPos2#+20,-80,80))"][!ShowMeter ResetNanoTank][!SetVariable State "2"]#U#
ActionList2=wait 16 | Repeat HideNano,20,16 | Repeat ShowMain,20,16
HideNano=[!SetVariable XPos2 "(Clamp(#XPos2#-20,-80,80))"][!HideMeter ResetNanoTank]#U#
ShowMain=[!SetVariable XPos1 "(Clamp(#XPos1#+20,-80,80))"][!ShowMeter ResetMainTank][!SetVariable State "1"]#U#
DynamicVariables=1
[ResetStyle]
FontFace=#ff2#
FontSize=8
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Right
StringStyle=Bold
AntiAlias=1
X=150
Y=r
[ResetMainTank]
Meter=String
MeterStyle=ResetStyle
Text=Reset Main
LeftMouseUpAction=[!SetVariable DaysMainTank 1][!WriteKeyValue Variables DaysMainTank 1 "#@#DayCount.inc"]
[ResetNanoTank]
Meter=String
MeterStyle=ResetStyle
Hidden=1
Text=Reset Nano
LeftMouseUpAction=[!SetVariable DaysNanoTank 1][!WriteKeyValue Variables DaysNanoTank 1 "#@#DayCount.inc"]
[BackgroundTask]
Meter=Shape
Y=266
Shape=Rectangle 1,1,158,#TaskSize#,10,10 | Fill Color 110,110,110 | Stroke Color 0,0,0 | StrokeWidth 3
Group=Clean
[TaskStyle]
FontFace=#ff2#
FontSize=30
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Right
StringStyle=Bold
AntiAlias=1
X=125
Y=10r
[Task]
Meter=String
MeasureName=MeasureDay
MeasureName2=MeasureOddEvenDay
MeterStyle=TaskStyle
Group=Tanks
Text="%2"
[TaskClean]
Meter=String
FontFace=#ff2#
FontSize=30
FontColor=#C2#
SolidColor=0,0,0,1
StringAlign=Right
StringStyle=Bold
AntiAlias=1
Text=Clean
Group=Tanks | Clean1
Hidden=0
X=10r
Y=40r
[MeasureDay]
Measure=Time
Format=%#j
[MeasureOddEvenDay]
Measure=Calc
Formula=MeasureDay%2
Substitute="0":"Free","1":"Feed"
[MeasureClean]
Measure=Time
Format=%A, %B
IfMatch=#DayCheck#
IfMatchAction=[!SetVariable TaskSize 94][!WriteKeyValue Variables TaskSize "94" "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!ShowMeterGroup Clean1][!Redraw *]
IfNotMatchAction=[!SetVariable TaskSize 58][!WriteKeyValue Variables TaskSize "58" "#@#\INC\DayCount.inc"][!UpdateMeterGroup Clean][!HideMeterGroup Clean1][!Redraw *]
Code: Select all
[Variables]
DaysMainTank=25
DaysNanoTank=12
TaskSize=94
TimeBuffer=3600
DayCheck=Wednesday
State=1
U=[!UpdateMeasure Slider][!UpdateMeterGroup Tanks][!Redraw]
ff1=Good Times
ff2=Arial
C1=30,30,30
C2=0,0,0
XPos1=80
XPos2=-80
I hope i did the </> right this time