1

Does anyone use Rainmeter 1.1? (Read 1483 times)


I'm on the right

    Rainmeter is a program that will display things on your desktop, like random information you want from the internet.  I was going to make a widget that pulled out the distance information from my training log (using the blog scripts) to show my running totals.  Is anyone else interested in me sharing this?


    I'm Eric, the guy who runs to keep his sanity.

    kcam


      Yes.  Please share...

       

      thanks


      I'm on the right

        Hi!  I designed a widget for rainmeter to display your weekly, monthly and total mileage using a Rainmeter script.

        On my desktop, it looks like this:

         

         To use, first you must install Rainmeter v1.0 or later.  A quick intro and some discussion of  Rainmeter can be found on lifehacker here.  Install from here.

         

        To use the following script, first find your logid, which is a long series of number.  Mine is 4752f261e2ae49dd8e7f2a3cd0045174.

         

        To find this, go to your training log -> Tools -> Scripts for blog or website -> your logid is the long number in the blue box.

         

        To save this script into your Rainmeter install, make a file, paste the text between the dotted lines, change the logid to yours (or you'll be seeing my mileage), and save the file as running.ini (or whatever works).  Place the file in your Rainmeter skins folder.  This is under my documents in windows....other places for other OSes.

         

        Here is the file, enjoy!  Make changes as you want.  Let me know if there are any requests or if you come up with any cool modifications.

         

        ;------------------------------------------------------------------------------------------
        [Rainmeter]
        Author=eric_allan | runningeric@gmail.com
        Update=1000

        [Metadata]
        Name=Running
        Config=EricSkins | Running
        Description=Pulls distances from running log at www.runningahead.com
        Instructions=Set logid code from the blog scripts to get your information.
        Version=0.1
        License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
        ;end metadata

        [Variables]
        logid= 4752f261e2ae49dd8e7f2a3cd0045174
        website=http://www.runningahead.com/scripts/#logid#/totals

        ;logid comes from the blog scripts portion of the website.
        Height=100
        W1=100
        W2=50
        Xalign=135
        FontColor=255, 255, 255, 217
        FontName=Trebuchet MS
        FontHeight=8
        AntiAlias=1
        ;end of variables

        [WeekData]
        Measure=Plugin
        Plugin=Plugins\WebParser.dll
        Url=#website#
        RegExp="(?siU)Week:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
        StringIndex=1
        UpdateRate=3600

        [MonthData]
        Measure=Plugin
        Plugin=Plugins\WebParser.dll
        Url=#website#
        RegExp="(?siU)Month:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
        StringIndex=1
        UpdateRate=3600

        [MeasureMonth]
        Measure=Time
        Format="%b"
        Substitute="Jan":"January: ","Feb":"Febuary: ","Mar":"March: ","Apr":"April: ","May":"May: ","Jun":"June: ","Jul":"July: ","Aug":"August: ","Sep":"September: ","Oct":"October: ","Nov":"November: ","Dec":"December: "

        [YearData]
        Measure=Plugin
        Plugin=Plugins\WebParser.dll
        Url=#website#
        RegExp="(?siU)Year:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
        StringIndex=1
        UpdateRate=3600

        [MeasureYear]
        Measure=Time
        Format="%y"

        [TotalData1]
        Measure=Plugin
        Plugin=Plugins\WebParser.dll
        Url=#website#
        UpdateRate=3600

        [TotalData2]
        Measure=Plugin
        Plugin=Plugins\WebParser.dll
        Url=#website#
        RegExp="(?siU)Total:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
        StringIndex=1
        UpdateRate=3600
        ;end of measure

        [WeekStr]
        Meter=String
        X=2
        Y=15
        W=#W1#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=LEFT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1
        Prefix="Weekly Total: "

        [WeekInfo]
        Meter=STRING
        MeasureName=WeekData
        X=#xAlign#
        Y=15
        W=#W2#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=RIGHT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1

        [WrittenMonth]
        Meter=String
        MeasureName=MeasureMonth
        X=2
        Y=30
        W=#W1#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=LEFT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1

        [Month]
        Meter=STRING
        MeasureName=MonthData
        X=#xAlign#
        Y=30
        W=#W2#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=RIGHT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1


        [WrittenYear]
        Meter=String
        MeasureName=MeasureYear
        X=2
        Y=45
        W=#W1#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=LEFT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1
        Prefix = "20"
        Postfix = ": "

        [Year]
        Meter=STRING
        MeasureName=YearData
        X=#xAlign#
        Y=45
        W=#W2#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=RIGHT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1


        [Total1]
        Meter=STRING
        MeasureName=TotalData1
        X=2
        Y=60
        W=#W1#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=LEFT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1
        Prefix="Total Logged: "

        [Total2]
        Meter=STRING
        MeasureName=TotalData2
        X=#xAlign#
        Y=60
        W=#W2#
        H=#Height#
        FontColor=#FontColor#
        FontFace=#FontName#
        FontSize=#FontHeight#
        StringAlign=RIGHT
        StringEffect=SHADOW
        StringStyle=NORMAL
        AntiAlias=1
        ClipString=1

        ;end of meter
        ;------------------------------------------------------------------------------------------

         

         

        I'm Eric, the guy who runs to keep his sanity.


        I'm on the right

          So, I've updated the script.  It now keeps track of streaks and has a pace bunny (no bars, but still helpful).  Usability is the same as the last script for Rainmeter.  It looks like this:


           

           The Pace Bunny and streak starting date can be changed my changing the variables at the start of the script.  Clicking on the title opens up your log in Running Ahead using your default browser.  The only glitches are with leap days, you have to add those into your streak (No more leap days for 4 years though Smile ).

           

          Enjoy!

           

          ;------------------------------------------------------------------------------------------
          [Rainmeter]
          Author=eric_allan | runningeric@gmail.com
          Update=1000

          [Metadata]
          Name=RunningStreak
          Config=EricSkins | RunningStreak
          Description=Pulls distances from running log at www.runningahead.com
          Instructions=Set logid code from the blog scripts to get your information.  Leap days in a streak
          have to be added to the variable leapdaysinstreak.  ssd and ssy need to be defined at the start of each streak.
          Version=0.2
          License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
          ;end metadata

          [Variables]
          streakstart=11/26/2009
          ssd=330
          ;ssd is day of the year (Jan 1 is day 1).
          ssy=2009
          ;ssy is the year the streak began in 4 digits
          leapdaysinstreak=0
          logid= 4752f261e2ae49dd8e7f2a3cd0045174
          website=http://www.runningahead.com/scripts/#logid#/totals
          ;logid comes from the blog scripts portion of the website.
          PaceBunny=1000
          ;PaceBunny is the goal for the year.
          Height=100
          W1=150
          W2=100
          Xalign=180
          ;changes column width.
          FontColor=255, 255, 255, 217
          FontName=Trebuchet MS
          FontHeight=8
          AntiAlias=1
          ;end of variables

          [todaysdays]
          Measure=Time
          Format=%j

          [todaysyear]
          Measure=Time
          Format=%Y

          [DayCalc]
          Measure=Calc
          Formula= (1 + #leapdaysinstreak#+ (([todaysyear])*364 + [todaysdays]) - ((#ssy#)*364 + #ssd#))
          ;Formula=[todaysdays]
          DynamicVariables=1

          [BunnyCalc]
          Measure=Calc
          Formula= ([todaysdays])/364*#PaceBunny#
          DynamicVariables=1

          [WeekData]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          RegExp="(?siU)Week:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
          StringIndex=1
          UpdateRate=3600

          [MonthData]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          RegExp="(?siU)Month:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
          StringIndex=1
          UpdateRate=3600

          [MeasureMonth]
          Measure=Time
          Format="%b"
          Substitute="Jan":"January: ","Feb":"Febuary: ","Mar":"March: ","Apr":"April: ","May":"May: ","Jun":"June: ","Jul":"July: ","Aug":"August: ","Sep":"September: ","Oct":"October: ","Nov":"November: ","Dec":"December: "

          [YearData]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          RegExp="(?siU)Year:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
          StringIndex=1
          UpdateRate=3600

          [MeasureYear]
          Measure=Time
          Format="%y"

          [TotalData1]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          UpdateRate=3600

          [TotalData2]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          RegExp="(?siU)Total:</span></td><td><span class=\\"RAValue\\">(.*)</span>"
          StringIndex=1
          UpdateRate=3600

          [Streak1]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          UpdateRate=3600

          [Bunny]
          Measure=Plugin
          Plugin=Plugins\WebParser.dll
          Url=#website#
          UpdateRate=3600

          ;end of measure

          [Border1]
          Meter=IMAGE
          SolidColor=192, 192, 192, 217
          X=0
          Y=0
          H=1
          W=200

          [Border2]
          Meter=IMAGE
          SolidColor=192, 192, 192, 217
          X=0
          Y=110
          H=1
          W=200

          [Title]
          Meter=STRING
          X=50
          Y=4
          StringStyle=BOLD
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          AntiAlias=1
          Text="RunningAhead"
          MouseOverAction=!execute [!RainmeterShowMeter Feed1][!RainmeterHideMeter Link1][!RainmeterShowMeter Feed2][!RainmeterHideMeter Link2][!RainmeterShowMeter Feed3][!RainmeterHideMeter Link3][!RainmeterShowMeter Feed4][!RainmeterHideMeter Link4][!RainmeterShowMeter Feed5][!RainmeterHideMeter Link5][!RainmeterShowMeter Feed6][!RainmeterHideMeter Link6][!RainmeterShowMeter Feed7][!RainmeterHideMeter Link7][!RainmeterShowMeter Feed8][!RainmeterHideMeter Link8][!RainmeterShowMeter Feed9][!RainmeterHideMeter Link9][!RainmeterShowMeter Feed10][!RainmeterHideMeter Link10][!RainmeterShowMeter Title][!RainmeterHideMeter TitleActive][!RainmeterRedraw]
          LeftMouseDownAction=!execute [!RainmeterShowMeter TitleActive][!RainmeterHideMeter Title][!RainmeterRedraw]


          [TitleActive]
          Meter=STRING
          X=50
          y=4
          w=#W1#
          H=#Height#
          StringStyle=BOLD
          FontColor=128, 192, 255, 217
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          Hidden=1
          Text="RunningAhead"
          LeftMouseUpAction=!execute ["http://www.runningahead.com/logs/#logid#"][!RainmeterShowMeter Title][!RainmeterHideMeter TitleActive][!RainmeterRedraw]

          [WeekStr]
          Meter=String
          X=17
          Y=19
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Prefix="Weekly Total: "

          [WeekInfo]
          Meter=STRING
          MeasureName=WeekData
          X=#xAlign#
          Y=19
          W=#W2#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=RIGHT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1

          [WrittenMonth]
          Meter=String
          MeasureName=MeasureMonth
          X=17
          Y=34
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1

          [Month]
          Meter=STRING
          MeasureName=MonthData
          X=#xAlign#
          Y=34
          W=#W2#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=RIGHT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1


          [WrittenYear]
          Meter=String
          MeasureName=MeasureYear
          X=17
          Y=49
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Prefix = "20"
          Postfix = ": "

          [Year]
          Meter=STRING
          MeasureName=YearData
          X=#xAlign#
          Y=49
          W=#W2#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=RIGHT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1



          [StreakText1]
          Meter=STRING
          MeasureName=Streak1
          X=17
          Y=64
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Prefix="Days in a row: "

          [StreakText2]
          Meter=STRING
          MeasureName=DayCalc
          X=#xAlign#
          Y=64
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=RIGHT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Postfix=" days"

          [PBtext]
          Meter=STRING
          MeasureName=Bunny
          X=17
          Y=79
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Prefix="1000mi Pace Bunny: "

          [PBmile]
          Meter=STRING
          MeasureName=BunnyCalc
          X=#xAlign#
          Y=79
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=RIGHT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Postfix=" Mi"

          [Total1]
          Meter=STRING
          MeasureName=TotalData1
          X=17
          Y=94
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=LEFT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1
          Prefix="Total Logged: "

          [Total2]
          Meter=STRING
          MeasureName=TotalData2
          X=#xAlign#
          Y=94
          W=#W1#
          H=#Height#
          FontColor=#FontColor#
          FontFace=#FontName#
          FontSize=#FontHeight#
          StringAlign=RIGHT
          StringEffect=SHADOW
          StringStyle=NORMAL
          AntiAlias=1
          ClipString=1

          ;end of meter
          ;------------------------------------------------------------------------------------------

           

           

          I'm Eric, the guy who runs to keep his sanity.

          keeponrunning


            may i ask a (silly) question:  how do you make a file?  I'm not very good with stuff like that. 

            Sulphur Springs 50km-- Ancaster, ON-- May 28, 2022

            Tally in the Valley 12 hours-- Dundas, ON -- July 30, 2022 (Support SickKids Toronto)

            Stokely Creek-- 56km-- Sault Ste. Marie, ON-- Sept. 24, 2022