I want to play SOUND when it match the local PC TIME.
I calculate the time to match
But Measure=Calc is returning me Zero Value which match and play sound
I have posted the code below...
Please Help me, I really wanna do this !!
Code: Select all
[Rainmeter]
Author=Istylish Larka
Update=1000
LocalFont=Fabada-regular
;===============================
; Variables [note: you can change
; Url and/Or AzaanSounds
;===============================
[Variables]
FontName=Fabada
FontSize=10
Sound=SOUND.wav
URL=http://www.islamicfinder.org/prayer_service.php?country=usa&city=staten_island&state=NY&zipcode=10304&latitude=40.6059&longitude=-74.0942&timezone=-5&HanfiShafi=1&pmethod=1&fajrTwilight1=10&fajrTwilight2=10&ishaTwilight=10&ishaInterval=30&dhuhrInterval=1&maghribInterval=1&dayLight=1&simpleFormat=xml
Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":""
;===============================
; Styles (default for meters)
;===============================
[prayerName]
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,80
FontColor=0,0,0,200
FontFace=#FontName#
FontSize=#FontSize#
AntiAlias=1
[prayerValue]
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,80
FontColor=0,0,0,200
FontFace=#FontFace#
FontSize=#FontSize#
AntiAlias=1
;===============================
; Measure For Reading Website
;===============================
[MeasureWebsite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=#URL#
RegExp="(?siU)<fajr>(.*):(.*)</fajr>"
;===============================
; Measure For Fajr TIME
;===============================
[MeasureFajr_Hr]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWebsite]
StringIndex=1
[MeasureFajr_Min]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWebsite]
StringIndex=2
;===============================
; METER for Fajr Sala'ah
;===============================
[PrayerName1]
Meter=STRING
MeterStyle=PrayerName
Text=Fajr
X=5
Y=0
DynamicVariables=1
[MeterFajr_Hr]
MeasureName=MeasureFajr_Hr
MeterStyle=PrayerValue
Meter=STRING
X=80
Y=0
StringIndex=1
[MeterFajr_Min]
MeasureName=MeasureFajr_Min
MeterStyle=PrayerValue
Meter=STRING
X=100
Y=0
Prefix=:
StringIndex=2
;===============================
; HERE IS MY PROBLEM !!
; I CALCULATE TIME AND WHEN IT MATCH IT PLAY SOUND
; BUT BOTH CALC RETURN ZERO AND IT START PLAY SOUND
;===============================
[MeasureFajr_Athaan]
Measure=Calc
Formula=(MeasureFajr_Hr + MeasureFajr_Min)
[MeasureTime_Hr]
Measure=Time
Format=%I
[MeasureTime_Min]
Measure=Time
Format=%M
[MeasureTime_Alarm]
Measure=Calc
Formula=(MeasureTime_Hr + MeasureTime_Min)
IfEqualValue=[MeasureFajr_Athaan]
IfEqualAction=!Execute [PLAY #Sound#]