It is currently April 26th, 2024, 9:51 am
General topics related to Rainmeter.
JohnCoool
Posts: 22 Joined: July 26th, 2020, 10:57 pm
Post
by JohnCoool » July 26th, 2020, 11:20 pm
I installed the rainmeter and it is great. I am currently trying to configure Weather from a Skin that I installed.
It seems to have two Notepad files with for each weather ini file one seems to just be for the location. So I am pasting them here both below.
I am getting the 12002 error. Can I get some tips on how they work.
1st one
Code: Select all
[Rainmeter]
Author=99villages
Update=100
AccurateText=1
DynamicWindowSize=1
ContextTitle=Set Location Code
ContextAction=["#@#Variables.inc"]
[Variables]
@Include=#ROOTCONFIGPATH#\@Resources\Variables.inc
@Include4=#ROOTCONFIGPATH#\@Resources\Languages\#Language#.inc
@Include5=#@#WeatherComRegExp.inc
@Include6=#@#WeatherComCurrent.inc
@Include7=#@#WeatherComForecast.inc
;================================
[Meterline1]
Meter=Image
ImageName=#@#\Images/line1
ImageTint=#Color1#
X=0
Y=79
W=(528*0.40)
H=(3*0.40)
UpdateDivider=-1
Hidden=0
[@CurrentIcon]
Measure=WebParser
Group=Weather | WeatherCurrent
Url=[@CurrentParent]
StringIndex=3
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterCurrentIconNA][!RainmeterShowMeter MeterCurrentIcon]
[MeterCurrentIcon]
Path=#ROOTCONFIGPATH#\@Resources\Weathericons
MeasureName=@CurrentIcon
Meter=Image
PreserveAspectRatio=1
AntiAlias=1
X=0
Y=0
H=(200*0.40)
W=(200*0.40)
[MeterCurrentIconNA]
ImageName=na.png
Meter=IMAGE
Path=#WeatherIcons#
H=(200*0.40)
W=(200*0.40)
X=0
Y=0
[MeterTempCurrent]
MeasureName=@CurrentTemperature
MeasureName2=@CurrentTemperatureSymbol
Meter=String
X=200
Y=0
InlineSetting=Face | roboto
InlineSetting2=Color | 255,255,255
InlineSetting3=Size | 36
InlineSetting4=Weight | 300
StringAlign=Right
AntiAlias=1
Text="%1"
Postfix="°"
[MeterConditionsCurrent]
MeasureName=@CurrentConditions
Meter=String
X=r
Y=64
InlineSetting=Face | roboto
InlineSetting2=Color | 255,255,255
InlineSetting3=Size | 8
InlineSetting4=Weight | 300
StringAlign=Right
StringStyle=NORMAL
AntiAlias=1
Text="%1"
UpdateDivider=#Rdiv#
;-------------------------------------Today
[@ForecastDay1Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=2
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterTodayIconNA][!RainmeterShowMeter MeterTodayIcon]
[MeterTodayIcon]
Path=#ROOTCONFIGPATH#\@Resources\Weathericons
MeasureName=@ForecastDay1Icon
Meter=Image
PreserveAspectRatio=1
ImageTint=#Color1#
AntiAlias=1
X=8
Y=88
H=(100*0.40)
W=(100*0.40)
[MeterTodayIconNA]
ImageName=na.png
Meter=IMAGE
Path=#WeatherIcons#
H=(100*0.40)
W=(100*0.40)
X=r
Y=r
[MeterTempToday]
MeasureName=@ForecastDay1Name
MeasureName2=@CurrentTemperatureHigh
Meter=String
X=80r
Y=8r
w=52
InlineSetting=Face | roboto
InlineSetting2=Color | 255,255,255
InlineSetting3=Size | 6
InlineSetting4=Weight | 300
StringAlign=Right
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
clipstring=2
;-------------------------------------day2
[@ForecastDay2Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=8
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterDay2IconNA][!RainmeterShowMeter MeterDay2Icon]
[MeterDay2Icon]
Path=#ROOTCONFIGPATH#\@Resources\Weathericons
MeasureName=@ForecastDay2Icon
Meter=Image
PreserveAspectRatio=1
ImageTint=#Color1#
AntiAlias=1
X=120
Y=88
H=(100*0.40)
W=(100*0.40)
[MeterDay2IconNA]
ImageName=na.png
Meter=IMAGE
Path=#WeatherIcons#
H=(100*0.40)
W=(100*0.40)
X=r
Y=r
[MeterTempDay2]
MeasureName=@ForecastDay2Name
MeasureName2=@ForecastDay2High
Meter=String
X=80r
Y=8r
W=52
InlineSetting=Face | roboto
InlineSetting2=Color | 255,255,255
InlineSetting3=Size | 6
InlineSetting4=Weight | 300
StringAlign=Right
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
;-------------------------------------day3
[@ForecastDay3Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=18
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterDay3IconNA][!RainmeterShowMeter MeterDay3Icon]
[MeterDay3Icon]
Path=#ROOTCONFIGPATH#\@Resources\Weathericons
MeasureName=@ForecastDay3Icon
Meter=Image
PreserveAspectRatio=1
ImageTint=#Color1#
AntiAlias=1
X=8
Y=128
H=(100*0.40)
W=(100*0.40)
[MeterDay3IconNA]
ImageName=na.png
Meter=IMAGE
Path=#WeatherIcons#
H=(100*0.40)
W=(100*0.40)
X=r
Y=r
[MeterTempDay3]
MeasureName=@ForecastDay3Name
MeasureName2=@ForecastDay3High
Meter=String
X=80r
Y=8r
W=52
InlineSetting=Face | roboto
InlineSetting2=Color | 255,255,255
InlineSetting3=Size | 6
InlineSetting4=Weight | 300
StringAlign=Right
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
;-------------------------------------day4
[@ForecastDay4Icon]
Measure=WebParser
Group=Weather | WeatherEightDay
Url=[@ForecastParent]
StringIndex=18
IfAboveValue=1
IfAboveAction=!execute [!RainmeterHideMeter MeterDay4IconNA][!RainmeterShowMeter MeterDay4Icon]
[MeterDay4Icon]
Path=#ROOTCONFIGPATH#\@Resources\Weathericons
MeasureName=@ForecastDay4Icon
Meter=Image
PreserveAspectRatio=1
ImageTint=#Color1#
AntiAlias=1
X=120
Y=128
H=(100*0.40)
W=(100*0.40)
[MeterDay4IconNA]
ImageName=na.png
Meter=IMAGE
Path=#WeatherIcons#
H=(100*0.40)
W=(100*0.40)
X=r
Y=r
[MeterTempDay4]
MeasureName=@ForecastDay4Name
MeasureName2=@ForecastDay4High
Meter=String
X=80r
Y=8r
W=78
InlineSetting=Face | roboto
InlineSetting2=Color | 255,255,255
InlineSetting3=Size | 6
InlineSetting4=Weight | 300
StringAlign=Right
StringStyle=NORMAL
AntiAlias=1
Text="%1#CRLF#%2"
UpdateDivider=#Rdiv#
Postfix="°"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
2nd one is
Code: Select all
[Variables]
; Getting and setting your LocationCode can be done one of several ways.
;
; Go to https://weather.com/
; Search for your city by name.
; Use the long number at the end of the resulting URL, for example:
; https://weather.com/weather/today/l/1665d9e3052c3448be48dafc1587318a27ee85516e97e0b5376043cd41a4f0e
; The LocationCode would be 1665d9e3052c3448be48dafc1587318a27ee85516e97e0b5376043cd41a4f0e
; Copy and enter that as the value for LocationCode below.
; LocationCode=1665d9e3052c3448be48dafc1587318a27ee85516e97e0b5376043cd41a4f0e
;
; You can also use the location code used in earlier skins using wxdata as the source.
; LocationCode=1665d9e3052c3448be48dafc1587318a27ee85516e97e0b5376043cd41a4f0e
;
; Alternatively, in the USA, you can simply use your ZipCode as the LocationCode.
; LocationCode=22308
LocationCode=1665d9e3052c3448be48dafc1587318a27ee85516e97e0b5376043cd41a4f0e
; If another language or unit(s) of measures are desired, simply go to https://weather.com/
; Using the controls at the top of the page, set your country and units of measure as desired.
; Copy and enter the Language from the resulting URL.
; For example, French would be Units=fr-FR
; The unit(s) of measure are automatic, based on the language.
; For instance, you cannot have the language be French, but the units be F imperial.
; Note however, that simply changing from imperial F to metric C units of measure while keeping the
; langage as English can be done by using en-GB as the Language.
Units=en-US
WeatherIcons=#ROOTCONFIGPATH#\@Resources\Weathericons
Language=English
TimeZone=+3
SETTINGS=#CURRENTPATH#\config.exe
WEATHER.COM=http://www.weather.com/#Units#/weather/today/#LocationCode#
; How often to update the weather information. Default is 600 or 10 minutes.
UpdateRate=600
; Don't change these.
LanguagePath=/#Units#
URLcurrent=https://weather.com/#Units#/weather/today/l/#LocationCode#
URLforecast=https://weather.com/#Units#/weather/tenday/l/#LocationCode#
URLhourbyhour=https://weather.com/#Units#/weather/hourbyhour/l/#LocationCode#
Last edited by eclectic-tech on July 26th, 2020, 11:30 pm, edited 1 time in total.
Reason: Please use code tags. It is the </> symbol.
eclectic-tech
Rainmeter Sage
Posts: 5406 Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Post
by eclectic-tech » July 26th, 2020, 11:48 pm
The 'long' location code in the example no longer works.
You need to follow the instructions at the top of the second file to obtain a value for LocationCode, either your 'long' code, or use your zip code, or the old weather.com code: USVA0944.
If it still does not work, the weather files may be outdated and need to be updated with the latest
weather.com version .
What is the name of your skin package by 99villages?
If you want to share your location or code, we can test it in other weather skins.
JohnCoool
Posts: 22 Joined: July 26th, 2020, 10:57 pm
Post
by JohnCoool » July 27th, 2020, 6:34 pm
Thanks, I installed another Skin that uses another weather service that also did not work called Simplic.
How does it connect to the internet. Do I need anything special or is it just done by the ini file?
I can also try one that is working if someone would send it to me.
I am pasting the info in the ini file here below.
Code: Select all
[Rainmeter]
Update=500
Author= -HipHopium-
DynamicVariables=1
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
[Style]
FontColor=#FontColor1#
FontFace=#FontFace#
AntiAlias=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLine]
Meter=IMAGE
X=0
Y=150
W=450
H=1
SolidColor=255,255,255
Group=Current
;-------------------------------------------------------------
;-------------------------------------------------------------
[mCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://wxdata.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*<ppcp>(.*)</ppcp>.*"
StringIndex=1
[mToday]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://wxdata.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>(?(?=.*<part p="d">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*(.*).*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>).*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*(.*).*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
StringIndex=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[mIconCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mCurrent]
StringIndex=20
[mTempCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mCurrent]
StringIndex=17
[mConditionsCurrent]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mCurrent]
StringIndex=19
Substitute=#Conditions#
[mLowTemp]
Measure=Plugin
Group=Weather
Plugin=WebParser
URL=[mToday]
StringIndex=5
Disabled=1
[mHighTemp]
Measure=Plugin
Group=Weather
Plugin=WebParser
URL=[mToday]
StringIndex=4
Disabled=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterCurrentIcon]
MeasureName=mIconCurrent
Meter=Image
ImagePath=#@#WeatherIcons
PreserveAspectRatio=1
X=170
Y=0
W=120
Group=Current
[MeterTempCurrent]
MeasureName=mTempCurrent
Meter=String
MeterStyle=Style
X=70
Y=70
FontColor=#FontColor2#
FontSize=48
StringAlign=Center
Text="%1°"
Group=Current
[MeterConditionsCurrent]
MeasureName=mConditionsCurrent
Meter=String
MeterStyle=Style
X=225
Y=165
W=440
H=40
FontColor=#FontColor2#
FontSize=20
StringAlign=Center
ClipString=1
Group=Current
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLow]
Meter=String
MeasureName=mLowTemp
Meter=String
MeterStyle=Style
X=115
Y=115
FontSize=14
Text=%1°
Group=Current
Prefix="#Low#: "
[MeterHigh]
Meter=String
MeasureName=mHighTemp
Meter=String
MeterStyle=Style
X=255
Y=115
FontSize=14
Text=%1°
Group=Current
Prefix="#High#: "
;-------------------------------------------------------------
;-------------------------------------------------------------
[Background]
Meter=Image
ImageName=#@#SettingsBg.png
X=40
Y=20
W=380
H=250
Hidden=1
Group=Settings
AntiAlias=1
[SettingsIconBackground]
Meter=IMAGE
SolidColor=0,0,0,1
X=0
Y=0
W=460
H=200
MouseOverAction=[!ShowMeter "SettingsIcon"]
MouseLeaveAction=[!HideMeter "SettingsIcon"]
Group=Current
[SettingsIcon]
Meter=Image
ImageName=#@#Settings.png
X=410
Y=60
W=25
ToolTipText=Settings.
LeftMouseUpAction=[!WriteKeyValue Variables Hidden "0" "#@#Variables.inc"][!HideMeterGroup Current][!ShowMeterGroup Settings][!Redraw]
AntiAlias=1
Hidden=1
Group=Current
[WeatherCode]
Meter=String
StringAlign=Left
FontColor=255,255,255
FontFace=Segoe UI Light
FontSize=14
X=40
Y=80
Text=Enter Location Code Here ->
Hidden=1
AntiAlias=1
Group=Settings
[MeterCode]
Meter=String
StringAlign=Center
FontFace=Segoe UI Light
FontColor=0,174,239
FontSize=15
X=310r
Y=0r
Text=#Location#
AntiAlias=1
Hidden=1
Group=Settings
AntiAlias=1
ToolTipText=Type your weather "Location Code" and press the "Enter" key to Apply changes.
LeftMouseUpAction=[!PluginBang "meterInput ExecuteBatch 1"]
[MeterInput]
Measure=Plugin
Plugin=InputText.dll
X=300
Y=84
W=110
H=20
Hidden=1
Group=Settings
StringAlign=Left
FontFace=Segoe UI Light
AntiAlias=1
FontSize=14
FocusDismiss=1
Command1=[!WriteKeyValue Variables Location "$UserInput$""#@#Variables.inc"][!Refresh *]
DefaultValue="#Location#"
[LocationFind]
Meter=String
StringAlign=Left
FontFace=Segoe UI Light
FontColor=255,255,255
FontSize=14
X=40
Y=50
Text=Find Your Code Here ->
Hidden=1
AntiAlias=1
Group=Settings
[LocationCode]
Meter=Image
ImageName=#@#Location.png
X=265r
Y=-8r
W=44
AntiAlias=1
Hidden=1
Group=Settings
ToolTipText="Find your weather "Location Code" on this site."
LeftMouseDownAction=["https://weather.codes/"]
[weatherLang]
Meter=String
StringAlign=Left
FontFace=Segoe UI Light
FontColor=255,255,255
FontSize=15
X=40
Y=110
Text=Enter Language Here ->
AntiAlias=1
Hidden=1
Group=Settings
[meterCode2]
Meter=String
StringAlign=Center
FontColor=0,174,239
FontSize=15
X=300r
Y=5r
Text=#Language#
AntiAlias=1
Hidden=1
Group=Settings
AntiAlias=1
ToolTipText=Type your "Language" and press the "Enter" key to Apply changes.#CRLF#Suported languages for now:Czech,English,French,German,Greek,#CRLF#Italian,Polish,Russian,Serbian,Spanish,Turkish,Portuguese.
LeftMouseUpAction=[!PluginBang "meterInput2 ExecuteBatch 1"]
[meterInput2]
Measure=Plugin
Plugin=InputText.dll
X=300
Y=115
W=110
H=22
Hidden=13
Group=Settings
StringAlign=Left
FontSize=14
FocusDismiss=1
AntiAlias=1
Command1=[!WriteKeyValue Variables Language "$UserInput$""#@#Variables.inc"][!Refresh *]
DefaultValue="#Language#"
[Celsius]
Meter=Image
ImageName=#@#Celsius.png
X=80
Y=180
W=95
Hidden=1
Group=Settings
LeftMouseUpAction=[!WriteKeyValue Variables Unit "m" "#@#Variables.inc"][!Refresh]
[Fahrenheit]
Meter=Image
ImageName=#@#Fahrenheit.png
X=280
Y=180
W=95
Hidden=1
Group=Settings
LeftMouseUpAction=[!WriteKeyValue Variables Unit "f" "#@#Variables.inc"][!Refresh][!HideMeter Fahrenheit]
[Close]
Meter=Image
ImageName=#@#Close.png
X=180
Y=220
W=95
PreserveAspectRatio=1
Hidden=1
Group=Settings
LeftMouseUpAction=[!ShowMeterGroup Current][!HideMeterGroup Settings][!Redraw]
[Instruction]
Meter=String
MeterStyle=Style
FontFace=Segoe UI Light
FontColor=255,255,255
FontSize=15
X=40
Y=140
Text=Translate Instruction ->
Hidden=1
Group=Settings
[BookImage]
Meter=IMAGE
ImageName=#@#Book.png
PreserveAspectRatio=1
X=265r
Y=r
W=26
Group=Settings
Hidden=1
ToolTipText="Click here to see,how to translate to your language"
LeftMouseUpAction=!Execute ["#ROOTCONFIGPATH#@Resources\Language\YourLanguage.inc"]
Last edited by eclectic-tech on July 27th, 2020, 6:36 pm, edited 1 time in total.
Reason: Please use code tags. It is the </> symbol.
eclectic-tech
Rainmeter Sage
Posts: 5406 Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Post
by eclectic-tech » July 27th, 2020, 6:45 pm
That skin by HipHopium uses the old (pre-January 2020) WXData site that is no longer supplied by The Weather Channel!
HipHopium is not able to update his multitude of weather skins, so I doubt this skin will be updated to the new weather source.
I would recommend looking at some of these
updated skins to find one that work.
JohnCoool
Posts: 22 Joined: July 26th, 2020, 10:57 pm
Post
by JohnCoool » July 27th, 2020, 8:18 pm
Thanks All Done!!!