It is currently April 25th, 2024, 3:05 pm

Still Struggling with updating weather

Get help with creating, editing & fixing problems with skins
Ashengrace
Posts: 1
Joined: February 26th, 2020, 8:05 pm

Still Struggling with updating weather

Post by Ashengrace »

I've been at this all morning, finally got around to trying to figure out what was wrong with the weather widget for the skin I use. Found out about the weather.com API depreciating, and since I have been trying to figure out how to update my ini file to work with dark sky weather instead (or anything that will get the widget fully functional again)...to no avail.

The skin I'm using is the AVENGERS S.H.I.E.L.D. 2.1 by Fonpaolo.
(https://www.deviantart.com/fonpaolo/art/AVENGERS-S-H-I-E-L-D-2-1-506438856)

The coding in the AV Weather ini seems more complex than any of the other examples I've seen. So I'm having trouble deciphering what exactly I'd need to change. Its fairly overwhelming when I have no clue about rainmeter coding.

I'll include the whole ini, so hopefully someone can explain and help me understand how to fix this thing.

Thanks in advance.

Code: Select all

[Rainmeter]
Update=1000

AccurateText=1
MiddleMouseDownAction=[!WriteKeyValue Variables Color1 #Color2#][!WriteKeyValue Variables Color2 #Color3#][!WriteKeyValue Variables Color3 #Color1#][!WriteKeyValue Variables TxtColor1 #TxtColor2#][!WriteKeyValue Variables TxtColor2 #TxtColor3#][!WriteKeyValue Variables TxtColor3 #TxtColor1#][!Refresh]

[Metadata]
Author=Fonpaolo
Name=Weather AV(engers) with satellite image
Information=Displays the current atmospheric conditions, the forecast for the next hours and the next three days. | Click on Weather title to go to weather.com website page. | Click on location name to open a new window displaying more | informations. | All weather information obtained from weather.com | Change everything in the Options skin. | Middle mouse button changes the color of the skin.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=2.1.6

[Variables]
@include=#@#\config.inc
@include2=#@#\Languages\Language#Country#.inc
ImageSat=http://image.weather.com/images/sat/italy_sat_600x405.jpg
Color1=Blue
Color2=Red
Color3=Orange
TxtColor1=0,130,255,255
TxtColor2=255,0,30,255
TxtColor3=255,130,0,255
HighlightColor=165,250,245,200
MoonImageList="New":"0","Waxing Crescent":"1","First Quarter":"2","Waxing Gibbous":"3","Full":"4","Waning Gibbous":"5","Last Quarter":"6","Waning Crescent":"7"
DetClose=0
DetClose2=1

;BACKGROUND =============================================================

[MeterBackground]
Meter=Image
ImageName=#@#Images\AVWeather\WBackg#Color1#.png
x=0
y=0
UpdateDivider=-1

;TEXT STYLES ============================================================

[TextStyle]
Meter=String
FontFace=gliscor gothic
FontColor=255,255,255,255
StringEffect=Shadow
FontEffectColor=0,0,0,100
FontSize=14
AntiAlias=1

[TextStyle1]
Meter=String
FontFace=gliscor gothic
FontColor=255,255,255,255
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontSize=10
AntiAlias=1

[TextStylePress]
Meter=String
FontFace=gliscor gothic
FontColor=#TxtColor1#
StringAlign=Right
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontSize=11
AntiAlias=1

[TextStyle2]
Meter=String
FontFace=gliscor gothic
FontColor=255,255,255,255
StringEffect=Shadow
FontEffectColor=0,0,0,100
FontSize=8
AntiAlias=1

[TextStyle3]
Meter=String
FontFace=gliscor gothic
FontColor=255,255,255,255
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontSize=11
AntiAlias=1

[TextStyle4]
Meter=String
FontFace=gliscor gothic
FontColor=255,255,255,255
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontSize=18
AntiAlias=1

[TextStyle5]
Meter=String
FontFace=gliscor gothic
FontColor=255,255,255,255
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontSize=12
AntiAlias=1

;MEASURES ===============================================================

;INTERNET WEATHER INFORMATIONS ------------------------------------------

[MeasureWeather]
Measure=Plugin
Plugin=WebParser.dll
Url="http://xml.#OWN1#/weather/local/#OLOC1#?cc=*&unit=#Unit#&dayf=4"
RegExp="(?siU)^(.*)$"
FinishAction=[!UpdateMeasureGroup WeatherAll][!UpdateMeterGroup WeatherDet]
ForceReload=1
UpdateRate=#OTUPD#

[MeasureBase]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureWeather]
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>.*
StringIndex2=21
Substitute="":"-1"
UpdateDivider=-1
Group=WeatherAll

[MeasureToday]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureWeather]
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>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>)(?(?=.*<part p="n">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*)
Substitute="":"-1"
UpdateDivider=-1
Group=WeatherAll

[MeasureForecastDay1]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureWeather]
RegExp=(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>(?(?=.*<part p="d">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>)(?(?=.*<part p="n">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*)
Substitute="":"-1"
UpdateDivider=-1
Group=WeatherAll

[MeasureForecastDay2]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureWeather]
RegExp=(?siU)<day d="2" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>(?(?=.*<part p="d">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>)(?(?=.*<part p="n">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*)
Substitute="":"-1"
UpdateDivider=-1
Group=WeatherAll

[MeasureForecastDay3]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureWeather]
RegExp=(?siU)<day d="3" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>(?(?=.*<part p="d">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>)(?(?=.*<part p="n">).*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*)
Substitute="":"-1"
UpdateDivider=-1
Group=WeatherAll

;CURRENT LOCATION =======================================================

[MeasureLocationName]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=8
RegExpSubstitute=1
Substitute="^(.*),.*,.*.*$":"\1","Milan":"Milano","Naples":"Napoli","Rome":"Roma","Turin":"Torino"
UpdateDivider=-1
Group=WeatherAll

;CURRENT CONDITIONS =====================================================

[MeasurePressureNow]
Measure=Calc
Formula=(MeasureBase*1)
UpdateDivider=-1
Group=WeatherAll

[MeasurePressureTendency]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=22
Substitute=#DetailedWeatherList#
UpdateDivider=-1
Group=WeatherAll

[MeasureHumidityNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=27
UpdateDivider=-1
Group=WeatherAll

[MeasureRainNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=34
IfBelowValue=1
IfBelowAction=[!HideMeter MeterRainSymbolNow][!HideMeter MeterRainNow][!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter MeterRainSymbolNow][!ShowMeter MeterRainNow][!Redraw]
UpdateDivider=-1
Group=WeatherAll

[MeasureUVIndexNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=29
UpdateDivider=-1
Group=WeatherAll

[MeasureConditionsNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=19
Substitute=#ConditionsList#
UpdateDivider=-1
Group=WeatherAll

[MeasureUnitsNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=4
UpdateDivider=-1
Group=WeatherAll

[MeasureIconNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=20
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll

[MeasureTempNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=17
UpdateDivider=-1
Group=WeatherAll

[MeasureTempUnitNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=2
UpdateDivider=-1
Group=WeatherAll

[MeasureUpdateNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=15
RegExpSubstitute=1
Substitute=#DetailedWeatherList#
UpdateDivider=-1
Group=WeatherAll

[MeasureWindNow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureBase]
StringIndex=23
IfBelowValue=5
IfBelowAction=[!HideMeter MeterWindNow][!HideMeter MeterWindDirNow][!HideMeter MeterWindBaseNow][!Redraw]
IfAboveValue=4
IfAboveAction=[!ShowMeter MeterWindNow][!ShowMeter MeterWindDirNow][!ShowMeter MeterWindBaseNow][!Redraw]
UpdateDivider=-1
Group=WeatherAll

[MeasureWindDirNow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
StringIndex=25
MinValue=0
MaxValue=360
UpdateDivider=-1
Group=WeatherAll

;To hide/show the Rain now, after 16:00, when it becomes N/A ------------

;To hide/show the Today/Tonight icons and descriptions ------------------

[MeasureWeatherHour]
Measure=Time
Format=%#H

[MeasureNightDay]
Measure=Calc
Formula=((MeasureWeatherHour<6)||(MeasureWeatherHour>13))? 1:-1
IfBelowValue=1
IfBelowAction=[!ShowMeterGroup MeterWeatherDay][!HideMeterGroup MeterWeatherNight][!EnableMeasureGroup WeatherDay][!DisableMeasureGroup WeatherNight][!UpdateMeasureGroup WeatherDay][!UpdateMeterGroup MeterWeatherDay]
IfEqualValue=1
IfEqualAction=[!HideMeterGroup MeterWeatherDay][!ShowMeterGroup MeterWeatherNight][!DisableMeasureGroup WeatherDay][!EnableMeasureGroup WeatherNight][!UpdateMeasureGroup WeatherNight][!UpdateMeterGroup MeterWeatherNight]

;TODAY FORECAST --------------------------------------------------------

[MeasureTodayWeatherDescr]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=9
Substitute=#ConditionsList#
UpdateDivider=-1
Group=WeatherAll| WeatherDay

[MeasureTodayWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=4
UpdateDivider=-1
Group=WeatherAll| WeatherDay

[MeasureTodayWeatherIcon]
Measure=Plugin
Plugin=WebParser.dll
Path=#Icon#
Url=[MeasureToday]
StringIndex=8
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll| WeatherDay

[MeasureTodayRain]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureToday]
StringIndex=15
IfBelowValue=1
IfBelowAction=[!HideMeter MeterTonightRainSymbol][!HideMeter MeterTodayRain][!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter MeterTonightRainSymbol][!ShowMeter MeterTodayRain][!Redraw]
UpdateDivider=-1
Group=WeatherAll| WeatherDay

[MeasureTodayWind]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureToday]
StringIndex=10
IfBelowValue=5
IfBelowAction=[!HideMeter MeterTodayWindDir][!HideMeter MeterTonightWindDir][!HideMeter MeterTodayWindBase][!Redraw]
IfAboveValue=4
IfAboveAction=[!ShowMeter MeterTodayWindDir][!ShowMeter MeterTonightWindDir][!ShowMeter MeterTodayWindBase][!ShowMeter MeterTonightWindBase[!Redraw]
UpdateDivider=-1
Group=WeatherAll| WeatherDay

[MeasureTodayWindDir]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=11
MinValue=0
MaxValue=360
UpdateDivider=-1
Group=WeatherAll| WeatherDay

;TONIGHT FORECAST ------------------------------------------------------

[MeasureTodayWeatherDescr]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=9
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTodayWeatherIcon]
Measure=Plugin
Plugin=WebParser.dll
Path=#Icon#
Url=[MeasureToday]
StringIndex=8
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTonightWeatherDescr]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=18
Substitute=#ConditionsListN#
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTonightWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=5
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTonightWeatherIcon]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=17
Substitute="":"na","30":"29","32":"31","34":"33","37":"47","38":"47","39":"45","44":"29"
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTonightRain]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureToday]
StringIndex=24
IfBelowValue=1
IfBelowAction=[!HideMeter MeterTonightRainSymbol][!HideMeter MeterTonightRain][!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter MeterTonightRainSymbol][!ShowMeter MeterTonightRain][!HideMeter MeterTodayRain][!Redraw]
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTonightWind]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureToday]
StringIndex=19
IfBelowValue=5
IfBelowAction=[!HideMeter MeterTonightWindDir][!HideMeter MeterTonightWindBase][!Redraw]
IfAboveValue=4
IfAboveAction=[!ShowMeter MeterTonightWindDir][!ShowMeter MeterTonightWindBase][!Redraw]
UpdateDivider=-1
Group=WeatherAll| WeatherNight

[MeasureTonightWindDir]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureToday]
StringIndex=21
MinValue=0
MaxValue=360
UpdateDivider=-1
Group=WeatherAll| WeatherNight

;MOONPHASES ------------------------------------------------------------

[MeasureMoonphaseIcon]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBase]
Substitute=#MoonImageList#
StringIndex=33
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll

[MeasureTodayMoonHideShow]
Measure=Calc
Formula=((MeasureIconNow=29)||(MeasureIconNow=31)||(MeasureIconNow=33)||(MeasureIconNow=39)||(MeasureIconNow>=45)? 1:-1)
IfBelowValue=1
IfBelowAction=[!HideMeter MeterMoonphaseIcon]
IfEqualValue=1
IfEqualAction=[!ShowMeter MeterMoonphaseIcon]
DynamicVariables=1
UpdateDivider=-1
Group=WeatherAll

[MeasureTonightMoonHideShow]
Measure=Calc
Formula=((MeasureTonightWeatherIcon=29)||(MeasureTonightWeatherIcon=30)||(MeasureTonightWeatherIcon=31)||(MeasureTonightWeatherIcon=32)||(MeasureTonightWeatherIcon=33)||(MeasureTonightWeatherIcon=34)||(MeasureTonightWeatherIcon=37)||(MeasureTonightWeatherIcon=38)||(MeasureTonightWeatherIcon=39)||(MeasureTonightWeatherIcon=41)||(MeasureTonightWeatherIcon>=44)? 1:-1)
IfBelowValue=1
IfBelowAction=[!HideMeter MeterTonightMoonphaseIcon]
IfEqualValue=1
IfEqualAction=[!ShowMeter MeterTonightMoonphaseIcon]
DynamicVariables=1
UpdateDivider=-1
Group=WeatherAll

;TOMORROW FORECAST -----------------------------------------------------

[MeasureDay1]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay1]
StringIndex=1
Substitute=#DaysList#
UpdateDivider=-1
Group=WeatherAll

[MeasureDay1Icon]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay1]
StringIndex=7
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll

[MeasureDay1Temp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay1]
StringIndex=3
UpdateDivider=-1
Group=WeatherAll

[MeasureDay1TempLow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay1]
StringIndex=4
UpdateDivider=-1
Group=WeatherAll

[MeasureDay1Conditions]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay1]
StringIndex=8
Substitute=#ConditionsList#
UpdateDivider=-1
Group=WeatherAll

[MeasureDay1Rain]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay1]
StringIndex=14
IfBelowValue=1
IfBelowAction=[!HideMeter MeterDay1RainSymbol][!HideMeter MeterDay1Rain][!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter MeterDay1RainSymbol][!ShowMeter MeterDay1Rain][!Redraw]
UpdateDivider=-1
Group=WeatherAll

;FORECAST DAY 2 --------------------------------------------------------

[MeasureDay2]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay2]
StringIndex=1
Substitute=#DaysList#
UpdateDivider=-1
Group=WeatherAll

[MeasureDay2Icon]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay2]
StringIndex=7
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll

[MeasureDay2Temp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay2]
StringIndex=3
UpdateDivider=-1
Group=WeatherAll

[MeasureDay2TempLow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay2]
StringIndex=4
UpdateDivider=-1
Group=WeatherAll

[MeasureDay2Conditions]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay2]
StringIndex=8
Substitute=#ConditionsList#
UpdateDivider=-1
Group=WeatherAll

[MeasureDay2Rain]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay2]
StringIndex=14
IfBelowValue=1
IfBelowAction=[!HideMeter MeterDay2RainSymbol][!HideMeter MeterDay2Rain][!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter MeterDay2RainSymbol][!ShowMeter MeterDay2Rain][!Redraw]
UpdateDivider=-1
Group=WeatherAll

;FORECAST DAY 3 --------------------------------------------------------

[MeasureDay3]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay3]
StringIndex=1
Substitute=#DaysList#
UpdateDivider=-1
Group=WeatherAll

[MeasureDay3Icon]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay3]
StringIndex=7
Substitute="":"na"
UpdateDivider=-1
Group=WeatherAll

[MeasureDay3Temp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay3]
StringIndex=3
UpdateDivider=-1
Group=WeatherAll

[MeasureDay3TempLow]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay3]
StringIndex=4
UpdateDivider=-1
Group=WeatherAll

[MeasureDay3Conditions]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay3]
StringIndex=8
Substitute=#ConditionsList#
UpdateDivider=-1
Group=WeatherAll

[MeasureDay3Rain]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureForecastDay3]
StringIndex=14
IfBelowValue=1
IfBelowAction=[!HideMeter MeterDay3RainSymbol][!HideMeter MeterDay3Rain][!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter MeterDay3RainSymbol][!ShowMeter MeterDay3Rain][!Redraw]
UpdateDivider=-1
Group=WeatherAll

;TITLE TEXT =============================================================

[MeterLabel]
Meter=String
MeterStyle=TextStyle3
SolidColor=0,0,0,1
Text=#TitleW#
x=23
y=1
W=60
H=18
ToolTipType=0
ToolTipText=www.#OWN1#
LeftMouseUpAction=["#OWA1#"]
MouseOverAction=[!SetOption "#CURRENTSECTION#" FontColor #HighlightColor#][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" FontColor ""][!UpdateMeter #CURRENTSECTION#][!Redraw]
UpdateDivider=-1

;UPDATE INFO -----------------------------------------------------------

[MeterCurrentUpdate]
Meter=String
MeasureName=MeasureUpdateNow
MeterStyle=TextStyle1
StringAlign=Left
FontSize=8
x=208
y=200
Text=#Updated at# %1
UpdateDivider=-1
Group=WeatherDet

;TODAY FORECAST DISPLAY =================================================

[MeterMoonphaseIcon]
Meter=Image
ImagePath=#@#Images\AVWeather\MoonImages
MeasureName=MeasureMoonphaseIcon
x=115
y=64
W=100
PreserveAspectRatio=1
AntiAlias=1
Hidden=1
UpdateDivider=-1
Group=WeatherDet

;CURRENT WEATHER CONDITIONS DISPLAYED ----------------------------------

[MeterIconNow]
Meter=Image
ImagePath=#@#Images\AVWeather\WeatherIcons
MeasureName=MeasureIconNow
x=115
y=64
W=100
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=WeatherDet

;-----------------------------------------------------------------------

[MeterLocationName]
Meter=String
MeasureName=MeasureLocationName
MeterStyle=TextStyle
StringCase=UPPER
StringAlign=Left
x=28
y=35
ClipString=2
ClipStringW=180
ClipStringH=20
UpdateDivider=-1
Group=WeatherDet

[MeterHumidityNow]
Meter=String
MeasureName=MeasureHumidityNow
MeterStyle=TextStyle1
StringAlign=Left
x=191r
y=4r
Text=#Humidity#: %1%
UpdateDivider=-1
Group=WeatherDet

[MeterUVIndexNow]
Meter=String
MeasureName=MeasureUVIndexNow
MeterStyle=TextStyle1
StringAlign=Left
x=75r
y=r
Text=#IndexUV#: %1
UpdateDivider=-1
Group=WeatherDet

[MeterTempNow]
Meter=String
MeasureName=MeasureTempNow
MeasureName2=MeasureTempUnitNow
MeterStyle=TextStyle4
StringAlign=Left
x=29
y=62
Text=%1°#WFUN#
UpdateDivider=-1
Group=WeatherDet

[MeterRainNow]
Meter=String
MeasureName=MeasureRainNow
MeterStyle=TextStyle1
StringAlign=Left
x=2r
y=27r
Text="     %1%"
UpdateDivider=-1
Group=WeatherDet

[MeterWindNow]
Meter=String
MeasureName=MeasureWindNow
MeasureName2=MeasureUnitsNow
MeterStyle=TextStyle1
StringAlign=Left
x=r
y=15r
Text=#Wind#: %1 %2
UpdateDivider=-1
Group=WeatherDet

[MeterConditionsNow]
Meter=String
MeasureName=MeasureConditionsNow
MeterStyle=TextStyle3
StringAlign=Left
x=30
y=119
UpdateDivider=-1
Group=WeatherDet

[MeterRainSymbolNow]
Meter=Image
ImageName=#@#Images\AVWeather\Umbrella.png
x=32
y=88
H=16
PreserveAspectRatio=1
AntiAlias=1
UpdateDivider=-1
Group=WeatherDet

;CURRENT WIND DIRECTION ------------------------------------------------

[MeterWindBaseNow]
Meter=Image
ImageName=#@#\Images\AVWeather\WindBase0.png
x=93
y=72
AntiAlias=1
UpdateDivider=-1
Group=WeatherDet

[MeterWindDirNow]
Meter=Rotator
ImageName=#@#\Images\AVWeather\WindDir0.png
MeasureName=MeasureWindDirNow
x=93
y=72
OffsetX=(28/2)
OffsetY=(28/2)
W=28
H=28
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=WeatherDet

;TODAY/TONIGHT CONDITIONS ----------------------------------------------

[MeterTodayIcon]
Meter=Image
ImagePath=#@#Images\AVWeather\WeatherIcons
MeasureName=MeasureTodayWeatherIcon
x=284
y=66
W=72
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
Hidden=1
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTonightMoonphaseIcon]
Meter=Image
ImagePath=#@#Images\AVWeather\MoonImages
MeasureName=MeasureMoonphaseIcon
x=284
y=66
W=72
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
Hidden=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

[MeterTonightIcon]
Meter=Image
ImagePath=#@#Images\AVWeather\WeatherIcons
MeasureName=MeasureTonightWeatherIcon
x=284
y=66
W=72
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
Hidden=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

;TODAT/TONIGHT WIND DIRECTION ------------------------------------------

[MeterTodayWindBase]
Meter=Image
ImageName=#@#\Images\AVWeather\WindBase1.png
x=270
y=82
ToolTipType=0
ToolTipText=#Wind#: [MeasureTodayWind] [MeasureUnitsNow]
DynamicVariables=1
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTodayWindDir]
Meter=Rotator
ImageName=#@#\Images\AVWeather\WindDir1.png
MeasureName=MeasureTodayWindDir
x=270
y=82
OffsetX=(22/2)
OffsetY=(22/2)
W=22
H=22
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTonightWindBase]
Meter=Image
ImageName=#@#\Images\AVWeather\WindBase1.png
x=270
y=82
ToolTipType=0
ToolTipText=#Wind#: [MeasureTonightWind] [MeasureUnitsNow]
DynamicVariables=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

[MeterTonightWindDir]
Meter=Rotator
ImageName=#@#\Images\AVWeather\WindDir1.png
MeasureName=MeasureTonightWindDir
x=270
y=82
OffsetX=(22/2)
OffsetY=(22/2)
W=22
H=22
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

;-----------------------------------------------------------------------

[MeterToday]
Meter=String
MeterStyle=TextStyle3
StringAlign=Left
x=229
y=64
Text=#TodayT#
Hidden=#Today#
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTodayTemp]
Meter=String
MeasureName=MeasureTodayWeatherTemp
MeterStyle=TextStyle5
StringAlign=Left
x=r
y=19r
Text=%1°#WFUN#
Hidden=#Today#
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTodayRain]
Meter=String
MeasureName=MeasureTodayRain
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=21r
Text="     %1%"
Hidden=#Today#
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTodayDescr]
Meter=String
MeasureName=MeasureTodayWeatherDescr
MeterStyle=TextStyle3
StringAlign=Left
x=r
y=15r
Hidden=#Today#
UpdateDivider=-1
Group=MeterWeatherDay| WeatherDet

[MeterTonight]
Meter=String
MeterStyle=TextStyle3
StringAlign=Left
x=229
y=64
Text=#TonightT#
Hidden=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

[MeterTonightTemp]
Meter=String
MeasureName=MeasureTonightWeatherTemp
MeterStyle=TextStyle5
StringAlign=Left
x=r
y=19r
Text=%1°#WFUN#
Hidden=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

[MeterTonightRain]
Meter=String
MeasureName=MeasureTonightRain
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=21r
Text="     %1%"
Hidden=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

[MeterTonightDescr]
Meter=String
MeasureName=MeasureTonightWeatherDescr
MeterStyle=TextStyle3
StringAlign=Left
x=r
y=15r
Hidden=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

[MeterTonightRainSymbol]
Meter=Image
ImageName=#@#Images\AVWeather\Umbrella.png
x=232
y=103
H=13
PreserveAspectRatio=1
AntiAlias=1
UpdateDivider=-1
Group=MeterWeatherNight| WeatherDet

;TOMORROW FORECAST CONDITIONS DISPLAYED =================================

[MeterDay1Icon]
Meter=Image
ImagePath=#@#Images\AVWeather\WeatherIcons
MeasureName=MeasureDay1Icon
x=69
y=146
W=62
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=WeatherDet

[MeterDay1]
Meter=String
MeasureName=MeasureDay1
MeterStyle=TextStyle3
x=28
y=143
UpdateDivider=-1
Group=WeatherDet

[MeterDay1Temp]
Meter=String
MeasureName=MeasureDay1Temp
MeasureName2=MeasureDay1TempLow
MeterStyle=TextStyle1
x=1r
y=16r
Text=%1° %2°
UpdateDivider=-1
Group=WeatherDet

[MeterDay1Rain]
Meter=String
MeasureName=MeasureDay1Rain
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=15r
Text="    %1%"
UpdateDivider=-1
Group=WeatherDet

[MeterDay1Conditions]
Meter=String
MeasureName=MeasureDay1Conditions
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=12r
UpdateDivider=-1
Group=WeatherDet

[MeterDay1RainSymbol]
Meter=Image
ImageName=#@#Images\AVWeather\Umbrella.png
x=30
y=174
H=13
PreserveAspectRatio=1
AntiAlias=1
UpdateDivider=-1
Group=WeatherDet

;FORECAST CONDITIONS DAY 2 DISPLAYED ====================================

[MeterDay2Icon]
Meter=Image
ImagePath=#@#Images\AVWeather\WeatherIcons
MeasureName=MeasureDay2Icon
x=182
y=146
W=62
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=WeatherDet

[MeterDay2]
Meter=String
MeasureName=MeasureDay2
MeterStyle=TextStyle3
x=142
y=143
UpdateDivider=-1
Group=WeatherDet

[MeterDay2Temp]
Meter=String
MeasureName=MeasureDay2Temp
MeasureName2=MeasureDay2TempLow
MeterStyle=TextStyle1
x=1r
y=16r
Text=%1° %2°
UpdateDivider=-1
Group=WeatherDet

[MeterDay2Rain]
Meter=String
MeasureName=MeasureDay2Rain
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=15r
Text="    %1%"
UpdateDivider=-1
Group=WeatherDet

[MeterDay2Conditions]
Meter=String
MeasureName=MeasureDay2Conditions
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=12r
UpdateDivider=-1
Group=WeatherDet

[MeterDay2RainSymbol]
Meter=Image
ImageName=#@#Images\AVWeather\Umbrella.png
x=144
y=174
H=13
PreserveAspectRatio=1
AntiAlias=1
UpdateDivider=-1
Group=WeatherDet

;FORECAST CONDITIONS DAY 3 DISPLAYED ====================================

[MeterDay3Icon]
Meter=Image
ImagePath=#@#Images\AVWeather\WeatherIcons
MeasureName=MeasureDay3Icon
x=294
y=146
W=62
PreserveAspectRatio=1
AntiAlias=1
DynamicVariables=1
UpdateDivider=-1
Group=WeatherDet

[MeterDay3]
Meter=String
MeasureName=MeasureDay3
MeterStyle=TextStyle3
x=255
y=143
UpdateDivider=-1
Group=WeatherDet

[MeterDay3Temp]
Meter=String
MeasureName=MeasureDay3Temp
MeasureName2=MeasureDay3TempLow
MeterStyle=TextStyle1
x=1r
y=16r
Text=%1° %2°
UpdateDivider=-1
Group=WeatherDet

[MeterDay3Rain]
Meter=String
MeasureName=MeasureDay3Rain
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=15r
Text="    %1%"
UpdateDivider=-1
Group=WeatherDet

[MeterDay3Conditions]
Meter=String
MeasureName=MeasureDay3Conditions
MeterStyle=TextStyle2
StringAlign=Left
x=r
y=12r
UpdateDivider=-1
Group=WeatherDet

[MeterDay3RainSymbol]
Meter=Image
ImageName=#@#Images\AVWeather\Umbrella.png
x=256
y=174
H=13
PreserveAspectRatio=1
AntiAlias=1
UpdateDivider=-1
Group=WeatherDet

;=======================================================================

;OTHER SKINS ADDED AND INTEGRATED --------------------------------------

@include3=AVDetailsView.inc

;-----------------------------------------------------------------------

;=======================================================================
User avatar
Yincognito
Rainmeter Sage
Posts: 7164
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Still Struggling with updating weather

Post by Yincognito »

Ashengrace wrote: February 26th, 2020, 8:28 pm I've been at this all morning, finally got around to trying to figure out what was wrong with the weather widget for the skin I use. Found out about the weather.com API depreciating, and since I have been trying to figure out how to update my ini file to work with dark sky weather instead (or anything that will get the widget fully functional again)...to no avail.

The skin I'm using is the AVENGERS S.H.I.E.L.D. 2.1 by Fonpaolo.
(https://www.deviantart.com/fonpaolo/art/AVENGERS-S-H-I-E-L-D-2-1-506438856)

The coding in the AV Weather ini seems more complex than any of the other examples I've seen. So I'm having trouble deciphering what exactly I'd need to change. Its fairly overwhelming when I have no clue about rainmeter coding.

I'll include the whole ini, so hopefully someone can explain and help me understand how to fix this thing.
No need for the whole ini - according to this post here, you can do it yourself. Just try it with a single meter from those in your skin, and once you succeed you'll know what to do for the rest. In the post I linked to, Resources folder refers to your skin's equivalent of this, and WebParser measure refers to this.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Yincognito
Rainmeter Sage
Posts: 7164
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Still Struggling with updating weather

Post by Yincognito »

FernandoAleisy wrote: February 28th, 2020, 3:14 am The skin configuration is fine. The problem is that the provider changed or the provider changed the format in which he provided the information and had to recreate the regular expressions.
If you're talking about my post, both possibilities are covered by the answer I linked to, since one doesn't have to bother with regexes if they follow the instructions: he just has to use the .inc (Include) files there and link the measures within to the meters in his skin. Bottom line, the extraction part is already done, one just has to use the (already) grabbed data as desired.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Yincognito
Rainmeter Sage
Posts: 7164
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Still Struggling with updating weather

Post by Yincognito »

FernandoAleisy wrote: March 14th, 2020, 2:35 pm No, le aclaraba a Ashengrace porque ahora no funcionan las pieles de clima.
OK entonces.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Still Struggling with updating weather

Post by balala »

FernandoAleisy wrote: March 14th, 2020, 2:35 pm No, le aclaraba a Ashengrace porque ahora no funcionan las pieles de clima.
Yincognito wrote: March 14th, 2020, 3:04 pm OK entonces.
In English please. We can't and don't want to translate all those non-English discussions.
Thanks anticipately.
User avatar
Yincognito
Rainmeter Sage
Posts: 7164
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Still Struggling with updating weather

Post by Yincognito »

balala wrote: March 14th, 2020, 4:33 pm In English please. We can't and don't want to translate all those non-English discussions.
Thanks anticipately.
It's funny, cause that's exactly what most people in our country think on our fellowmen speaking other languages... Just saying. :D
That being said, there were only a couple of words in Spanish, no big deal. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Still Struggling with updating weather

Post by balala »

Yincognito wrote: March 14th, 2020, 8:28 pm there were only a couple of words in Spanish, no big deal. ;-)
Well, doesn't matter how many words. English is required on this forum, as far as I can tell.
User avatar
Yincognito
Rainmeter Sage
Posts: 7164
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Still Struggling with updating weather

Post by Yincognito »

balala wrote: March 15th, 2020, 10:09 am Well, doesn't matter how many words. English is required on this forum, as far as I can tell.
Ok, mr. policeman. :D
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Still Struggling with updating weather

Post by jsmorley »

We do want conversations about Rainmeter to always be in English, with the point being that we want to maximize the amount of benefit that the questions and the answers bring to the community as a whole. I certainly don't see any harm in some pleasantries being exchanged in any language, and the use of some language instead of English is not in any way forbidden. As with most of Rainmeter, nothing is set in stone or an absolute. The rules here are to encourage the forums to be helpful, friendly, and a place where someone new is not discouraged from getting involved.

In the modern world, it pays to be moderately moderate in how we moderate things... See, that is why English is the best language ever! 😜
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Still Struggling with updating weather

Post by eclectic-tech »

Another moderator gem! ;-)
JSMorley wrote:In the modern world, it pays to be moderately moderate in how we moderate things...
Well said! :thumbup: