control-panel/WEATHER/WeatherComCodes/WeatherComCodes.ini
bMorgan01 4db0a2d524 init
2021-10-08 22:37:03 -06:00

593 lines
31 KiB
INI

[Rainmeter]
Update=-1
AccurateText=1
DynamicWindowSize=1
[Metadata]
Name=WeatherComCodes
Author=JSMorley
Information=Search for and use latitude and longitude values for weather.com
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=July 31, 2020
; Be sure you have the font "Font Awesome 5 Free-Solid-900.otf" in the @Resources\Fonts folder of the root config.
[Variables]
BackgroundColor=0,0,0,200
Record=(?(?=.*"lat":).*"lat":"(.*)",.*"lon":"(.*)",.*"display_name":"(.*)")
InputSearch=tokyo
; Change FileToWrite to the .ini or .inc file you wish to update.
FileToWrite=#@#WeatherComJSONVariables.inc
; Change ConfigToRefresh to the config that will be using the location code variable.
ConfigToRefresh=#ROOTCONFIG#
; -----------------------
; Measures
; -----------------------
[MeasureLocations]
Measure=WebParser
URL=https://nominatim.openstreetmap.org/search.php?q=#InputSearch#&format=json
Flags=Resync | NoCookies
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
RegExp=(?siU)#Record##Record##Record##Record##Record##Record##Record##Record##Record##Record#
UpdateRate=86400
LogSubstringErrors=0
FinishAction=[!EnableMeasureGroup Children][!UpdateMeasureGroup Children][!ShowMeterGroup Controls][!Redraw]
;Debug=2
;Debug2File=#@#EntireSite.txt
[MeasureName1]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=3
Substitute="":"No results"
[MeasureLatitude1]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=1
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2","":"No results"
[MeasureLongitude1]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=2
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group1][!UpdateMeterGroup Group1][!Redraw][!SetOption MeterBack H "([*MeterName1:YH*]+10)"][!UpdateMeter *][!Redraw]
[MeasureName2]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=6
[MeasureLatitude2]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=4
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
[MeasureLongitude2]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=5
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group2][!UpdateMeterGroup Group2][!Redraw][!SetOption MeterBack H "([*MeterName2:YH*]+10)"][!UpdateMeter *][!Redraw]
[MeasureName3]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=9
[MeasureLatitude3]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=7
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
[MeasureLongitude3]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=8
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group3][!UpdateMeterGroup Group3][!Redraw][!SetOption MeterBack H "([*MeterName3:YH*]+10)"][!UpdateMeter *][!Redraw]
[MeasureName4]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=12
[MeasureLatitude4]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=10
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
[MeasureLongitude4]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=11
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group4][!UpdateMeterGroup Group4][!Redraw][!SetOption MeterBack H "([*MeterName4:YH*]+10)"][!UpdateMeter *][!Redraw]
[MeasureName5]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=15
[MeasureLatitude5]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=13
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
[MeasureLongitude5]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=14
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group5][!UpdateMeterGroup Group5][!Redraw][!SetOption MeterBack H "([*MeterName5:YH*]+10)"][!UpdateMeter *][!Redraw]
[MeasureName6]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=18
[MeasureLatitude6]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=17
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
[MeasureLongitude6]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=16
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group6][!UpdateMeterGroup Group6][!Redraw][!SetOption MeterBack H "([*MeterName6:YH*]+10)"][!UpdateMeter *][!Redraw]
[MeasureName7]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=21
[MeasureLatitude7]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=20
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
[MeasureLongitude7]
Measure=WebParser
Group=Children
Disabled=1
URL=[MeasureLocations]
StringIndex=19
RegExpSubstitute=1
Substitute="^(.*\.)([\d]{1,6}).*$":"\1\2"
IfMatch=^$
IfNotMatchAction=[!ShowMeterGroup Group7][!UpdateMeterGroup Group7][!Redraw][!SetOption MeterBack H "([*MeterName7:YH*]+10)"][!UpdateMeter *][!Redraw]
; -----------------------
; Meters
; -----------------------
; Styles and background
[AllStyle]
X=10
FontSize=11
FontColor=191,242,196,255
ClipString=2
ClipStringH=50
AntiAlias=1
Hidden=1
DynamicVariables=1
[MeterBack]
Meter=Image
MeterStyle=AllStyle
X=0
W=385
H=140
Hidden=0
SolidColor=#BackgroundColor#
; Controls
[MeterClose]
Meter=String
Group=Controls
MeterStyle=AllStyle
X=385
Y=([MeterBack:YH]+5)
FontFace=Font Awesome 5 Free Solid
FontSize=18
FontColor=200,200,200,255
StringAlign=Right
SolidColor=#BackgroundColor#
Padding=5,5,5,5
Hidden=1
Text=[\xf057]
MouseOverAction=[!SetOption MeterClose FontColor "255,88,75,255"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterClose FontColor "200,200,200,255"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!DeactivateConfig]
[MeterRefresh]
Meter=String
Group=Controls
MeterStyle=AllStyle
X=345
Y=([MeterBack:YH]+5)
FontFace=Font Awesome 5 Free Solid
FontSize=18
FontColor=200,200,200,255
StringAlign=Right
SolidColor=#BackgroundColor#
Padding=5,5,5,5
Hidden=1
Text=[\xf2f9]
MouseOverAction=[!SetOption MeterRefresh FontColor "255,236,64,255"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterRefresh FontColor "200,200,200,255"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!Refresh]
[MeterSearch]
Meter=String
Group=Controls
MeterStyle=AllStyle
X=0
Y=([MeterBack:YH]+5)
FontFace=Font Awesome 5 Free Solid
FontSize=18
FontColor=200,200,200,255
SolidColor=#BackgroundColor#
Padding=5,5,5,5
Hidden=1
Text=[\xf002]
MouseOverAction=[!SetOption MeterSearch FontColor "104,255,108,255"][!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption MeterSearch FontColor "200,200,200,255"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh]
; Search
[MeterSearchLocationLabel]
Meter=String
MeterStyle=AllStyle
X=10
Y=5
FontColor=255,219,179,255
FontWeight=600
FontSize=12
Hidden=0
Text=Search For Location
[MeterSearchBox]
Meter=Image
MeterStyle=AllStyle
X=10
Y=3R
W=365
H=21
SolidColor=255,219,179,255
Hidden=0
[MeterSearchLabel]
Meter=String
MeterStyle=AllStyle
X=15
Y=([MeterSearchBox:Y]+3)
W=365
H=23
SolidColor=0,0,0,1
FontColor=0,0,0,255
Hidden=0
Text=#InputSearch#
LeftMouseUpAction=[!CommandMeasure "MeasureSearchInput" "ExecuteBatch 1"]
[MeasureSearchInput]
Measure=Plugin
Plugin=InputText
X=12
Y=([MeterSearchBox:Y]+1)
W=355
H=18
SolidColor=255,219,179,255
FontColor=0,0,0,255
FontSize=11
DefaultValue=#InputSearch#
FocusDismiss=1
UpdateDivider=-1
Command1=[!SetVariable InputSearch "$UserInput$"][!Update]
; Results
[MeterName1]
Meter=String
Group=Group1
MeasureName=MeasureName1
MeterStyle=AllStyle
Y=12R
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=0
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude1],[&MeasureLongitude1]"]
[MeterCode1]
Meter=String
Group=Group1
MeasureName=MeasureLatitude1
MeasureName2=MeasureLongitude1
MeterStyle=AllStyle
X=375
Y=([MeterName1:Y]+([MeterName1:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Text=%1,%2
ToolTipTitle=[MeasureLatitude1],[MeasureLongitude1]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName1]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude1],[&MeasureLongitude1]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude1]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude1]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]
[MeterName2]
Meter=String
Group=Group2
MeasureName=MeasureName2
MeterStyle=AllStyle
Y=([MeterName1:Y]+([MeterName1:H]+10))
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=1
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude2],[&MeasureLongitude2]"]
[MeterCode2]
Meter=String
Group=Group2
MeasureName=MeasureLatitude2
MeasureName2=MeasureLongitude2
MeterStyle=AllStyle
X=375
Y=([MeterName2:Y]+([MeterName2:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Hidden=1
Text=%1,%2
ToolTipTitle=[MeasureLatitude2],[MeasureLongitude2]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName2]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude2],[&MeasureLongitude2]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude2]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude2]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]
[MeterName3]
Meter=String
Group=Group3
MeasureName=MeasureName3
MeterStyle=AllStyle
Y=([MeterName2:Y]+([MeterName2:H]+10))
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=1
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude3],[&MeasureLongitude3]"]
[MeterCode3]
Meter=String
Group=Group3
MeasureName=MeasureLatitude3
MeasureName2=MeasureLongitude3
MeterStyle=AllStyle
X=375
Y=([MeterName3:Y]+([MeterName3:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Hidden=1
Text=%1,%2
ToolTipTitle=[MeasureLatitude3],[MeasureLongitude3]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName3]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude3],[&MeasureLongitude3]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude3]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude3]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]
[MeterName4]
Meter=String
Group=Group4
MeasureName=MeasureName4
MeterStyle=AllStyle
Y=([MeterName3:Y]+([MeterName3:H]+10))
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=1
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude4],[&MeasureLongitude4]"]
[MeterCode4]
Meter=String
Group=Group4
MeasureName=MeasureLatitude4
MeasureName2=MeasureLongitude4
MeterStyle=AllStyle
X=375
Y=([MeterName4:Y]+([MeterName4:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Hidden=1
Text=%1,%2
ToolTipTitle=[MeasureLatitude4],[MeasureLongitude4]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName4]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude4],[&MeasureLongitude4]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude4]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude4]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]
[MeterName5]
Meter=String
Group=Group5
MeasureName=MeasureName5
MeterStyle=AllStyle
Y=([MeterName4:Y]+([MeterName4:H]+10))
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=1
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude5],[&MeasureLongitude5]"]
[MeterCode5]
Meter=String
Group=Group5
MeasureName=MeasureLatitude5
MeasureName2=MeasureLongitude5
MeterStyle=AllStyle
X=375
Y=([MeterName5:Y]+([MeterName5:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Hidden=1
Text=%1,%2
ToolTipTitle=[MeasureLatitude5],[MeasureLongitude5]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName5]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude5],[&MeasureLongitude5]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude5]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude5]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]
[MeterName6]
Meter=String
Group=Group6
MeasureName=MeasureName6
MeterStyle=AllStyle
Y=([MeterName5:Y]+([MeterName5:H]+10))
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=1
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude6],[&MeasureLongitude6]"]
[MeterCode6]
Meter=String
Group=Group6
MeasureName=MeasureLatitude6
MeasureName2=MeasureLongitude6
MeterStyle=AllStyle
X=375
Y=([MeterName6:Y]+([MeterName6:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Hidden=1
Text=%1,%2
ToolTipTitle=[MeasureLatitude6],[MeasureLongitude6]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName6]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude6],[&MeasureLongitude6]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude6]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude6]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]
[MeterName7]
Meter=String
Group=Group7
MeasureName=MeasureName7
MeterStyle=AllStyle
Y=([MeterName6:Y]+([MeterName6:H]+10))
W=180
H=50
FontColor=255,219,179,255
Padding=5,5,5,5
SolidColor=47,47,47,255
Hidden=1
LeftMouseUpAction=["https://www.google.com/maps/search/[&MeasureLatitude7],[&MeasureLongitude7]"]
[MeterCode7]
Meter=String
Group=Group7
MeasureName=MeasureLatitude7
MeasureName2=MeasureLongitude7
MeterStyle=AllStyle
X=375
Y=([MeterName7:Y]+([MeterName7:H]/2-8))
FontWeight=600
FontColor=186,217,255,255
StringAlign=Right
Hidden=1
Text=%1,%2
ToolTipTitle=[MeasureLatitude7],[MeasureLongitude7]
ToolTipType=1
ToolTipWidth=250
ToolTipText=Click here to set the Latitude and Longitude for#CRLF##CRLF#[MeasureName7]
LeftMouseUpAction=[!SetClip "[&MeasureLatitude7],[&MeasureLongitude7]"][Play "#@#Sounds\Copy.wav"][!WriteKeyValue Variables Latitude "[&MeasureLatitude7]" "#FileToWrite#"][!WriteKeyValue Variables Longitude "[&MeasureLongitude7]" "#FileToWrite#"][!WriteKeyValue Variables InputSearch "#InputSearch#"][!Refresh "#ConfigToRefresh#"][!DeactivateConfig]