Last active
February 23, 2018 15:23
-
-
Save TheFrostlixen/015aa0dc21f775a5be295c67dfba8315 to your computer and use it in GitHub Desktop.
Rainmeter Skin - Gets road conditions from CA DOT for I-80 (NorCal / Sierra Nevada)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Rainmeter] | |
; update once per second | |
Update=1000 | |
DynamicWindowSize=1 | |
[Metadata] | |
Name=Road Conditions | |
Author=TheFrostlixen | |
Information=Gets road conditions from CA DOT for I-80 (NorCal / Sierra Nevada) | |
Version=1.0 | |
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0 | |
; ----- | |
[Variables] | |
ROADINFO=http://www.dot.ca.gov/hq/roadinfo/i80 | |
REDIRECT="http://www.magnifeye.com/road_cond.php#i80" | |
SEARCH=(\[IN THE NORTHERN CALIFORNIA AREA & SIERRA NEVADA\])\s{3}(\s+[\w\W]+)\n | |
FONTCOLOR1=255,127,127 | |
FONTCOLOR2=255,255,255 | |
FONTNAME=Arial | |
FONTSIZE=8 | |
WIDTH=180 | |
; ----- | |
[MeasurePage] | |
Measure=Plugin | |
Plugin=WebParser | |
URL=#ROADINFO# | |
; gets the title (into StringIndex=1) and the contents below that (into StringIndex=2) | |
; modify to capture applicable groups as needed | |
RegExp=#SEARCH# | |
[MeasureTitle] | |
Measure=Plugin | |
Plugin=WebParser | |
URL=[MeasurePage] | |
StringIndex=1 | |
; update every hour | |
UpdateDivider=3600 | |
[MeasureStatus] | |
Measure=Plugin | |
Plugin=WebParser | |
URL=[MeasurePage] | |
StringIndex=2 | |
Substitute="#CRLF#":" "," ":"#CRLF##CRLF# " | |
; update every hour | |
UpdateDivider=3600 | |
; ----- | |
[MeterTitle] | |
Meter=String | |
MeasureName=MeasureTitle | |
LeftMouseUpAction=!Execute [#REDIRECT#] | |
DynamicVariables=1 | |
W=#WIDTH# | |
ClipString=2 | |
FontFace=#FONTNAME# | |
FontSize=#FONTSIZE# | |
FontColor=#FONTCOLOR1# | |
StringStyle=Bold | |
AntiAlias=1 | |
[MeterStatus] | |
Meter=String | |
MeasureName=MeasureStatus | |
DynamicVariables=1 | |
W=#WIDTH# | |
Y=0R | |
ClipString=2 | |
FontFace=#FONTNAME# | |
FontSize=#FONTSIZE# | |
FontColor=#FONTCOLOR2# | |
StringStyle=Bold | |
AntiAlias=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment