It is currently March 29th, 2024, 2:27 am

Skin help, WebParser RegExp matching error

Get help with creating, editing & fixing problems with skins
Chris7117
Posts: 3
Joined: May 20th, 2015, 4:21 pm

Skin help, WebParser RegExp matching error

Post by Chris7117 »

Hi community! I am wondering if you can help me with an issue that I believe is also causing a memory leak. If you need more info than is provided, please ask!

From config:

Code: Select all

[MeasureName]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<h1>(.*)</h1>.*"
UpdateRate=#UpdateRateSeconds#
Substitute="&deg;":""
StringIndex=1
Image

And you can see it is not displaying well:

Image

Here is full config of WeatherForecast+Radar.ini:

Code: Select all

;[BEGIN CONFIG FILE]==============================

[Rainmeter]
Author=RickF7666

;weather author - Wasek & Demcha, edit by Uruloki Burning & RickF7666
;Radar author - g3xter, edit by RickF7666

[Metadata]
Name=Weather
Version=2.0
Tags=Weather, Radar
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

;End of added Metadata

@include="#SKINSPATH#\Mass Effect\Launcher\Applications.txt"

[Measureweathercod]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName="#SKINSPATH#\Mass Effect\Launcher\Applications.txt"

[Variables]
;weather
FontColor=204,255,255
FontSize=30
FontSize2=24
FontSize3=12
FontSize4=10
FontSize5=9

UpdateRateSeconds=900
FontFace=Slider
ColorF=204,255,255
wURL=#EngCityURL#?tenday
wURL1=#EngCityURL#


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

[Background]
Meter=Image
X=0
Y=28
ImageName=GRID.png

[ToplineR]
Meter=IMAGE
ImageName=toplineR.png
X=0
Y=0
AntiAlias=1


[ToplineL]
Meter=IMAGE
ImageName=toplineL.png
X=0
Y=0
AntiAlias=1
hidden=1


;////////////////////////////////////////
;  WEATHER INFO FROM Foreca.ru
;////////////////////////////////////////

[MeasureName]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<h1>(.*)</h1>.*"
UpdateRate=#UpdateRateSeconds#
Substitute="&deg;":""
StringIndex=1

[MeasureDEN]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<span class="h5">(.*)</span>.*<span class="h5">(.*)</span>.*<span class="h5">(.*)</span>.*<span class="h5">(.*)</span>.*<span class="h5">(.*)</span>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureDEN2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureDEN]
UpdateRate=#UpdateRateSeconds#
StringIndex=2

[MeasureDEN3]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureDEN]
UpdateRate=#UpdateRateSeconds#
StringIndex=3

[MeasureDEN4]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureDEN]
UpdateRate=#UpdateRateSeconds#
StringIndex=4

[MeasureTMAX]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)Hi: <strong>(.*)</strong>.*Hi: <strong>(.*)</strong>.*Hi: <strong>(.*)</strong>.*Hi: <strong>(.*)</strong>.*Hi: <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
Substitute="&deg;":""

[MeasureTMAX2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureTMAX]
UpdateRate=#UpdateRateSeconds#
StringIndex=2
Substitute="&deg;":""

[MeasureTMAX3]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureTMAX]
UpdateRate=#UpdateRateSeconds#
StringIndex=3
Substitute="&deg;":""

[MeasureTMAX4]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureTMAX]
UpdateRate=#UpdateRateSeconds#
StringIndex=4
Substitute="&deg;":""

[MeasureTMIN]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)Lo: <strong>(.*)</strong>.*Lo: <strong>(.*)</strong>.*Lo: <strong>(.*)</strong>.*Lo: <strong>(.*)</strong>.*Lo: <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
Substitute="&deg;":""

[MeasureTMIN2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureTMIN]
UpdateRate=#UpdateRateSeconds#
StringIndex=2
Substitute="&deg;":""

[MeasureTMIN3]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureTMIN]
UpdateRate=#UpdateRateSeconds#
StringIndex=3
Substitute="&deg;":""

[MeasureTMIN4]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=[MeasureTMIN]
UpdateRate=#UpdateRateSeconds#
StringIndex=4
Substitute="&deg;":""

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*"
;"(?siU)<img src="/img/symb-50x50/d(.*).png.*"
StringIndex=1
UpdateRate=#UpdateRateSeconds#

-----------

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*"
StringIndex=2
UpdateRate=#UpdateRateSeconds#

[MeasureWeatherIcon3]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*"
StringIndex=3
UpdateRate=#UpdateRateSeconds#

[MeasureWeatherIcon4]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL#
RegExp="(?siU)<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*<div class="symbol_50x50d symbol_d(.*)_50x50" alt.*"
StringIndex=4
UpdateRate=#UpdateRateSeconds#

[MeasureWeatherIconD]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="symbol_70x70d symbol_d(.*)_70x70 cc_symb">.*"
StringIndex=1
UpdateRate=#UpdateRateSeconds#

[MeasureWeatherIconN]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="symbol_70x70n symbol_n(.*)_70x70 cc_symb">.*"
StringIndex=1
UpdateRate=#UpdateRateSeconds#

[MeasureF]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<h4 class="entry-title">(.*)</h4>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureTF]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<span class="txt-xxlarge"><strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
                                                                                                                                          
[MeasureFO]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="right txt-tight">(.*)<br />.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureOBN]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="bot txt-tight grey">.*(.*)<br />.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
Substitute="Â":"íà"

[MeasureFeelsLike]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)Feels Like: <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
Substitute="&deg;":""

[MeasureBarometer]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)Barometer:  <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureHumidity]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)Humidity:   <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[Measurewind]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*height="28" /> <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureTR]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*Dewpoint:   <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
Substitute="&deg;":""

[MeasureWET]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*img/symb-wind/w(.*).gif" alt=".*".*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureWET2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*img/symb-wind/w(.*).gif" alt="(.*)".*"
UpdateRate=#UpdateRateSeconds#
StringIndex=2

[MeasureSunRise]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)Sun rise: <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureSunSet]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)Sun set:  <strong>(.*)</strong>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1


;////////////////////////////////////////
;  BUTTONS
;////////////////////////////////////////

;Weather

[ButtonWeatherActive]
Meter=IMAGE
ImageName=WeatherActive.png
X=172
Y=0
AntiAlias=1

[ButtonRadarPassive]
Meter=Button
X=-138r
Y=5r
AntiAlias=1
ButtonImage=RadarPassive.png
ButtonCommand=!execute [!ShowMeter ButtonRadarActive] [!HideMeter ButtonWeatherActive] [!ShowMeter ButtonWeatherPassive] [!HideMeter ButtonRadarPassive] [!HideMeter MeterCityName] [!HideMeter MeterFO] [!HideMeter MeterIconD] [!HideMeter MeterIconN] [!HideMeter MeterTF] [!ShowMeter MeterFeelsLikeName] [!HideMeter MeterFeelsLike] [!HideMeter MeterBarometerName] [!HideMeter MeterBarometer] [!HideMeter MeterHumidityName] [!HideMeter MeterHumidity] [!HideMeter MeterwindName] [!HideMeter Meterwind] [!HideMeter MeterIconWet] [!HideMeter Meterwind2] [!HideMeter MeterSunRiseName] [!HideMeter MeterSunRise] [!HideMeter MeterSunSetName] [!HideMeter MeterSunSet] [!HideMeter MeterSunRise] [!HideMeter MeterDEN2] [!HideMeter MeterIcon2] [!HideMeter MeterT2] [!HideMeter MeterDEN3] [!HideMeter MeterIcon3] [!HideMeter MeterT3] [!HideMeter MeterDEN4] [!HideMeter MeterIcon4] [!HideMeter MeterT4] [!HideMeter ToplineR] [!ShowMeter ToplineL] [!ShowMeter Radar] [!ShowMeter Frame]

;Radar

[ButtonRadarActive]
Meter=IMAGE
ImageName=RadarActive.png
X=0
Y=0
AntiAlias=1
hidden=1

[ButtonWeatherPassive]
Meter=Button
X=171r
Y=4r
AntiAlias=1
ButtonImage=Weatherpassive.png
ButtonCommand=!execute [!HideMeter ButtonRadaractive] [!ShowMeter ButtonWeatherActive] [!HideMeter ButtonWeatherPassive] [!ShowMeter ButtonRadarPassive] [!ShowMeter MeterCityName] [!ShowMeter MeterFO] [!ShowMeter MeterIconD] [!ShowMeter MeterIconN] [!ShowMeter MeterTF] [!ShowMeter MeterFeelsLikeName] [!ShowMeter MeterFeelsLike] [!ShowMeter MeterBarometerName] [!ShowMeter MeterBarometer] [!ShowMeter MeterHumidityName] [!ShowMeter MeterHumidity] [!ShowMeter MeterwindName] [!ShowMeter Meterwind] [!ShowMeter MeterIconWet] [!ShowMeter Meterwind2] [!ShowMeter MeterSunRiseName] [!ShowMeter MeterSunRise] [!ShowMeter MeterSunSetName] [!ShowMeter MeterSunSet] [!ShowMeter MeterSunRise] [!ShowMeter MeterDEN2] [!ShowMeter MeterIcon2] [!ShowMeter MeterT2] [!ShowMeter MeterDEN3] [!ShowMeter MeterIcon3] [!ShowMeter MeterT3] [!ShowMeter MeterDEN4] [!ShowMeter MeterIcon4] [!ShowMeter MeterT4] [!ShowMeter ToplineR] [!HideMeter ToplineL] [!HideMeter Radar] [!HideMeter Frame]
hidden=1


;////////////////////////////////////////
;  Weather Meters
;////////////////////////////////////////

[MeterCityName]
Meter=String
MeasureName=MeasureName
X=170
Y=32
W=300
h=20
FontFace=#FontFace#
FontSize=14
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
LeftMouseDownAction=!execute ["#EngCityURL#"]
ClipString=1

[MeterFO]
Meter=String
MeasureName=MeasureFO
X=r
Y=10r
w=150
h=40
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
ClipString=1

[MeterIconD]
Meter=Image
MeasureName=MeasureWeatherIconD
Path="#CURRENTPATH#WeatherIcons"
X=20
Y=60
H=105
W=105

[MeterIconN]
Meter=Image
MeasureName=MeasureWeatherIconN
Path="#CURRENTPATH#WeatherIconsN"
X=20
Y=60
H=105
W=105

[MeterTF]
Meter=String
MeasureName=MeasureTF
X=143r
Y=58r
FontFace=#FontFace#
FontSize=16
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
Postfix="°F"
Angle=1.57

[MeterFeelsLikeName]
Meter=String
X=175
Y=80
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Text="Feels Like:"

[MeterFeelsLike]
Meter=String
MeasureName=MeasureFeelsLike
X=70r
Y=r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Postfix="°F"

[MeterBarometerName]
Meter=String
X=-70r
Y=14r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Text="Barometer:"

[MeterBarometer]
Meter=String
MeasureName=MeasureBarometer
X=70r
Y=r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1

[MeterHumidityName]
Meter=String
X=-70r
Y=14r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Text="Humidity:"

[MeterHumidity]
Meter=String
MeasureName=MeasureHumidity
X=70r
Y=r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1

[MeterWindName]
Meter=String
X=-70r
Y=14r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Text="Wind:"

[Meterwind]
Meter=String
MeasureName=Measurewind
X=55r
Y=r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1

[MeterIconWet]
Meter=Image
MeasureName=MeasureWET
Path="#CURRENTPATH#WeatherIconsW"
X=R
Y=1r
w=15
h=15

[Meterwind2]
Meter=String
MeasureName=MeasureWET2
X=R
Y=-1r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1

[MeterSunRiseName]
Meter=String
X=175
Y=14r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Text="Sun Rise:"

[MeterSunRise]
Meter=String
MeasureName=MeasureSunRise
X=70r
Y=r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1

[MeterSunSetName]
Meter=String
X=-70r
Y=14r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1
Text="Sun Set:"

[MeterSunSet]
Meter=String
MeasureName=MeasureSunSet
X=70r
Y=r
FontFace=#FontFace#
FontSize=#FontSize5#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Left
AntiAlias=1


;---------TOMORROW-------

[MeterIcon2]
Meter=Image
MeasureName=MeasureWeatherIcon2
Path="#CURRENTPATH#WeatherIcons"
X=10
Y=190
W=93
h=93
Group=MAX

[MeterDEN2]
Meter=String
X=47r
Y=-17r
FontFace=#FontFace#
FontSize=#FontSize3#
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
Text="Tomorrow"
Group=MAX

[MeterT2]
Meter=String
MeasureName=MeasureTMAX2
MeasureName2=MeasureTMIN2
X=r
Y=110r
FontFace=#FontFace#
FontSize=#FontSize4# 
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
Text="%1°F, %2°F"
Group=MAX


;---------Day Two-------

[MeterIcon3]
Meter=Image
MeasureName=MeasureWeatherIcon3
Path="#CURRENTPATH#WeatherIcons"
X=60r
Y=190
W=93
h=93
Group=MAX

[MeterDEN3]
Meter=String
MeasureName=MeasureDEN3
X=47r
Y=-17r
W=150
H=30
FontSize=#FontSize3# 
FontColor=#ColorF#
StringStyle=BOLD
FontFace=#FontFace#
StringAlign=Center
AntiAlias=1
Group=MAX

[MeterT3]
Meter=String
MeasureName=MeasureTMAX3
MeasureName2=MeasureTMIN3
X=r
Y=110r
FontSize=#FontSize4# 
FontColor=#ColorF#
StringStyle=BOLD
FontFace=#FontFace#
StringAlign=Center
AntiAlias=1
Text="%1°F, %2°F"
Group=MAX


;---------Day Three-------

[MeterIcon4]
Meter=Image
MeasureName=MeasureWeatherIcon4
Path="#CURRENTPATH#WeatherIcons"
X=60r
Y=190
W=93
h=93
Group=MAX
Hidden=0

[MeterDEN4]
Meter=String
MeasureName=MeasureDEN4
X=47r
Y=-17r
W=150
H=30
FontSize=#FontSize3# 
FontColor=#ColorF#
StringStyle=BOLD
FontFace=#FontFace#
StringAlign=Center
AntiAlias=1
Group=MAX
Hidden=0

[MeterT4]
Meter=String
MeasureName=MeasureTMAX4
MeasureName2=MeasureTMIN4
X=r
Y=110r
FontFace=#FontFace#
FontSize=#FontSize4# 
FontColor=#ColorF#
StringStyle=BOLD
StringAlign=Center
AntiAlias=1
Text="%1°F, %2°F"
Group=MAX
Hidden=0


;////////////////////////////////////////
;  Radar
;////////////////////////////////////////

[RadarMeasure]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=#UpdateRateSeconds#
Url=#rURL#
Download=1
FinishAction=!Redraw

[Radar]
Meter=IMAGE
MeasureName=RadarMeasure
X=9
Y=58
W=310
H=219
hidden=1

[Frame]
Meter=Image
X=0
Y=20
ImageName=Frame.png
hidden=1

Thank you very much for any help to fix this up well. When Rainmeter is open for a few hours or more, it eats all physical memory as well as go nuts with the pagefile.
Chris7117
Posts: 3
Joined: May 20th, 2015, 4:21 pm

Re: Skin help, WebParser RegExp matching error

Post by Chris7117 »

From Applications.txt of Rainmeter skin. I would like it to display Farenheit, USA standards:

Code: Select all

[Variables]

;Weather

;To establish the city it is necessary:
;1. Go to website Foreca.com  Write your city name, after press to pass.
;2. Now when we on a page of your city copy the address completely.
;3.  Go to theme options, by means of button Launchers Settings.
;4.  And now insert the copied address in the field 

EngCityURL=http://www.foreca.com/United_States/New_York/Levittown

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

;Radar

;LOOK FOR YOUR DESIRED MAP !!!

;Unites States:
;http://i.imwx.com/web/radar/us_radar_small_usen.jpg

;Europe
;http://image.weather.com/images/sat/europesat_600x405.jpg

;Northern Europe / Germany
;http://image.weather.com/images/sat/germany_sat_600x405.jpg

;United Kingdom
;http://image.weather.com/images/sat/uksat_600x405.jpg

;Russia
;http://image.weather.com/images/sat/russia_sat_600x405.jpg

;Italy
;http://image.weather.com/images/sat/italy_sat_600x405.jpg

;Scandinavia
;http://image.weather.com/images/sat/scand_sat_600x405.jpg

;Asia
;http://image.weather.com/images/sat/asiasat_600x405.jpg

;Australia
;http://image.weather.com/images/sat/aussiesat_600x405.jpg

;Japan
;http://image.weather.com/images/sat/japan_sat_600x405.jpg

;India
;http://image.weather.com/images/sat/india_sat_600x405.jpg

;Northeast US:
;http://i.imwx.com/web/radar/us_ne_4regradar_small_usen.jpg

;Southeast US:
;http://i.imwx.com/web/radar/us_se_4regradar_small_usen.jpg

;Midwest US:
;http://i.imwx.com/web/radar/us_mw_4regradar_small_usen.jpg

;East Central US: 
;http://i.imwx.com/web/radar/us_ec_9regradar_small_usen.jpg

;Southeast US:
;http://i.imwx.com/web/radar/us_se_9regradar_small_usen.jpg

;North Central US:
;http://i.imwx.com/web/radar/us_nc_9regradar_small_usen.jpg

;Central US:
;http://i.imwx.com/web/radar/us_cn_9regradar_small_usen.jpg

;South Central US:
;http://i.imwx.com/web/radar/us_sc_9regradar_small_usen.jpg

;Northwest US:
;http://i.imwx.com/web/radar/us_nw_9regradar_small_usen.jpg

;West Central US:
;http://i.imwx.com/web/radar/us_wc_9regradar_small_usen.jpg

;Southwest US:
;http://i.imwx.com/web/radar/us_sw_9regradar_small_usen.jpg

;West US:
;http://i.imwx.com/web/radar/us_we_4regradar_small_usen.jpg

;Alaska: 
;http://i.imwx.com/web/radar/us_alaska_radar_small_usen.jpg

;Hawaii:
;http://i.imwx.com/web/radar/us_hawaii_radar_small_usen.jpg


;FOR MORE MAPS VISIT http://image.weather.com/maps/
;Right click the image and copy the link location!

;PASTE THE LINK BELOW!!! rURL = <YOUR LINK>
rURL=http://i.imwx.com/web/radar/us_ne_4regradar_small_usen.jpg

;==============================================================
Chris7117
Posts: 3
Joined: May 20th, 2015, 4:21 pm

Re: Skin help, WebParser RegExp matching error

Post by Chris7117 »

And finally for now, this is the result I get when I put this string for location:

EngCityURL=http://www.foreca.com/United_States/New_York/Levittown?quick_units=us&tf=24h

(would also like AM/PM time format)

Image
EquusEbon
Posts: 16
Joined: January 1st, 2017, 2:14 pm

Re: Skin help, WebParser RegExp matching error

Post by EquusEbon »

I am also having issues with this particular skin, though my issue is with the "radar" image not updating. Is the imwx.com domain a The Weather Channel property? If it is, how can I find out where those images now reside, as I noticed that the company changed their XML feeds? Images were not directly and clearly mentioned in the documentation of the change as I understood it.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Skin help, WebParser RegExp matching error

Post by balala »

Am I missing something? I don't see anywhere the name of the skin. I read the whole topic, but found no name. So, what is the name of this skin? Maybe also should post a link where the skin can be downloaded.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Skin help, WebParser RegExp matching error

Post by fonpaolo »

I also don't know the name of the skin, but I can confirm that imwx.com is dead, for my place the last satellite image is still dated at the beginning of December.
On the main Weather.com site you can find some new satellite maps, unfortunately they aren't as before...
This link is for Europe and other places: https://weather.com/maps/satellite/northern-europe-weather-map
EquusEbon
Posts: 16
Joined: January 1st, 2017, 2:14 pm

Re: Skin help, WebParser RegExp matching error

Post by EquusEbon »

The name of the main skin is a "Mass Effect" one. The weather 'subskin' was authored by Wasek & Demcha, edited by Uruloki Burning & RickF7666. The radar section was authored by g3xter, and edited by RickF7666. I'll take a look at the suggestion fonpaolo made to look at new maps, but try for the United States instead of Europe.
Last edited by EquusEbon on January 3rd, 2017, 2:50 pm, edited 2 times in total.
EquusEbon
Posts: 16
Joined: January 1st, 2017, 2:14 pm

Re: Skin help, WebParser RegExp matching error

Post by EquusEbon »

Well, that didn't work. I tried using a classic map I saw at https://weather.com/maps/currentusweather, with the image itself named WEB_Current_Weather_Map_1280x720.jpg. But, without knowing what the URI of that file is, I'm stumped.

Now, maybe I'll have better luck with fixing the WebParser errors...every one of them is a web expression matching error. But unlike Chris7117, I only have 6 of them to fix. They are in the measures MeasureWeatherIconN, MeasureWeatherIconD, MeasureF, MeasureWET, MeasureWET2, and MeasureOBN. The code is as follows:

Code: Select all

[MeasureWeatherIconD]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="symbol_70x70d symbol_d(.*)_70x70 cc_symb">.*"
StringIndex=1
UpdateRate=#UpdateRateSeconds#

[MeasureWeatherIconN]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="symbol_70x70n symbol_n(.*)_70x70 cc_symb">.*"
StringIndex=1
UpdateRate=#UpdateRateSeconds#

[MeasureF]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<h4 class="entry-title">(.*)</h4>.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureOBN]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU)<div class="bot txt-tight grey">.*(.*)<br />.*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1
Substitute="Â":"íà"

[MeasureWET]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*img/symb-wind/w(.*).gif" alt=".*".*"
UpdateRate=#UpdateRateSeconds#
StringIndex=1

[MeasureWET2]
Measure=Plugin
Plugin=Plugins/WebParser.dll
Url=#wURL1#
RegExp="(?siU).*img/symb-wind/w(.*).gif" alt="(.*)".*"
UpdateRate=#UpdateRateSeconds#
StringIndex=2
And the relevant variables are:

Code: Select all

EngCityURL=http://www.foreca.com/United_States/*state*/*city*
wURL=#EngCityURL#?tenday
wURL1=#EngCityURL#
Please note: "*state*" and "*city*" are my redactions, those terms are not in the code as written.

Now, am I too far off-base in thinking the way the WebParser measure works is by scanning the HTML/XML of a web page to find an occurance of a particular string? If that is the case, then I need to use my browser's "view source" capability to find what I need to pull out, right? Then the problem devolves to just figuring out what the now-not-found strings represented what values I wanted, and to discover what the new strings are. Or am I making things way too complicated? :uhuh: :???:
EquusEbon
Posts: 16
Joined: January 1st, 2017, 2:14 pm

Re: Skin help, WebParser RegExp matching error

Post by EquusEbon »

Looking at the current temperature element at foreca.com for my city, I see this:

Code: Select all

<div class="left">
				  	
						<div class="symbol_70x70d symbol_d400_70x70 cc_symb"></div>
					
					
													<span class="txt-xxlarge"><strong>55</strong> °F</span><br>
											
                    
                    
                    <br style="clear: both;">
                    <div style="float: left;">
                    <br>
                    As of <strong>02/01 10:00 am</strong><br>
                    
                    
                    <a href="/United_States/*state*/*city*?obshist&station=1021022208">Past observations <img width="4" height="8" alt=">" src="/img/arrow1.gif"></a>
                    </div>
                    
                  </div>
Again, "*state*" and "*city*" are only redactions. Anyway, when comparing to the measure MeasureWeatherIconD, I'm drawn to this line in the measure:

Code: Select all

RegExp="(?siU)<div class="symbol_70x70d symbol_d(.*)_70x70 cc_symb">.*"
Is the "(.*)" supposed to be a wildcard facility to match numbers? Or is it supposed to do something else?

Oh, silly me. The (.*) seems to basically say to note everything between the bookends. But now I am REALLY confused, because the only thing between the bookend strings of the expression in that element is the string "400_", which doesn't make obvious sense to me, since I think the measure is to display an icon. Gnarly! O.O
EquusEbon
Posts: 16
Joined: January 1st, 2017, 2:14 pm

Re: Skin help, WebParser RegExp matching error

Post by EquusEbon »

Oh, here is an image of the skin as it appears on my desktop, with city and state redaction. It seems to work, despite the WebParser errors. But I would like to eliminate the errors, so, here I am! :bow:
Mass Effect Weather.JPG
You do not have the required permissions to view the files attached to this post.