It is currently March 28th, 2024, 9:13 am

Weather source - "Simplony" skin

Get help with creating, editing & fixing problems with skins
User avatar
Kywicha
Posts: 14
Joined: June 12th, 2018, 10:27 pm
Location: Metz, Lorraine, France

Weather source - "Simplony" skin

Post by Kywicha »

Hi all,
Need help :$
After several hours of working on the customisation of my skins, i'm rather satisfied with the result.
Here an preview of my final work : https://ibb.co/k8H9Kd

But in looking closer to weather skin, i noticed that the datas are incorrects.
Here a screen few minutes after of the source page : https://ibb.co/nR5oed
U can notice too that visibility, chance of precip and pressure are far from the data's skin and there are few differences for the others datas .. can u check the url source ? and the regexp pls ?
I worked from the simplony source (weather extended) and i mainly customise font, colors and form but not the datas.

Thanks a lot and sorry for my terrible english. :17oops

Pierre



Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc

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

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<head>.*<ut>(.*)</ut>.*<dnam>(.*),.*</dnam>.*<tmp>(.*)</tmp>.*<icon>(.*)</icon>"
UpdateRate=1800

[Measure5Days]
Measure=Plugin
Plugin=WebParser
URL=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=5
RegExp="(?siU).*<day d="1" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.* d="2" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.* d="3" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.* d="4" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
UpdateRate=1800

[MeasureFeelsLikeTemp]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<cc>.*<flik>(.*)</flik>"

[MeasureUnits]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<head>.*<locale>(.*)</locale>.*<form>(.*)</form>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<vis>(.*)</vis>"

[MeasureHumidity]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<cc>.*<hmid>(.*)</hmid>"

[MeasureWind]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<cc>.*<wind>.*<s>(.*)</s>"

[MeasurePressure]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<cc>.*<bar>.*<r>(.*)</r>"

[MeasureChanceForPrecip]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<cc>.*<t>(.*)</t>.*<ppcp>(.*)</ppcp>.*"

[MeasureVisibility]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<cc>.*<vis>(.*)</vis>"

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

[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1

[MeasureLocation]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=2

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3

[MeasureWeatherIcons]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=4

[MeasureCurrentHi]
Measure=Plugin
Plugin=WebParser
URL=[MeasureCurrent]
StringIndex=5

[MeasureCurrentLow]
Measure=Plugin
Plugin=WebParser
URL=[MeasureCurrent]
StringIndex=6



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

[MeasureDay1Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=1
Substitute=#Date#

[MeasureDay1Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=2

[MeasureDay1Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=3

[MeasureDay1Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=4

[MeasureDay1Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=5
Substitute=#Conditions#

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

[MeasureDay2Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=6
Substitute=#Date#

[MeasureDay2Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=7

[MeasureDay2Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=8

[MeasureDay2Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=9

[MeasureDay2Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=10
Substitute=#Conditions#

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

[MeasureDay3Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=11
Substitute=#Date#

[MeasureDay3Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=12

[MeasureDay3Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=13

[MeasureDay3Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=14

[MeasureDay3Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=15
Substitute=#Conditions#

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

[MeasureDay4Day]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=16
Substitute=#Date#

[MeasureDay4Hi]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=17

[MeasureDay4Low]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=18

[MeasureDay4Icon]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=19

[MeasureDay4Desc]
Measure=Plugin
Plugin=WebParser
URL=[Measure5Days]
StringIndex=20
Substitute=#Conditions#

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

[MeasureFeelsLike]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureFeelsLikeTemp]
StringIndex=1

[MeasureHum]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureHumidity]
StringIndex=1

[MeasureWindSpeed]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureWind]
StringIndex=1
Substitute=#Index#

[MeasureWindUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureUnits]
StringIndex=3

[MeasureWindUnit2]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureUnits]
StringIndex=4

[MeasureVis]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureVisibility]
StringIndex=1

[MeasurePrecip]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureChanceForPrecip]
StringIndex=2

[MeasurePressureInfo]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasurePressure]
StringIndex=1

[MeasurePressureUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureUnits]
StringIndex=5

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

[MeterCurrentIcon]
Meter=Image
MeasureName=MeasureWeatherIcons
Path=#@#WeatherIconsBig
X=23
Y=0
W=130
AntiAlias=1

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

[MeterCurrentTemp]
Meter=String
MeasureName=MeasureWeatherTemp
MeasureName2=MeasureTempUnit
StringAlign=Center
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=32
X=85
Y=120
Text="%1°%2"
AntiAlias=1

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

[MeterDay1Date]
Meter=String
MeasureName=MeasureDay1Day
StringAlign=Center
FontColor=255,255,255
FontFace=The Frontman
FontSize=11
X=62
Y=180
Text="%1"
AntiAlias=1

[MeterDay1DIcon]
Meter=Image
MeasureName=MeasureDay1Icon
ImagePath=#@#WeatherIconsSmall
X=0
Y=175
W=130
AntiAlias=1

[MeterDay1HighLow]
Meter=String
MeasureName=MeasureDay1Hi
MeasureName2=MeasureDay1Low
StringAlign=Center
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=16
X=62
Y=270
Text="↑%1° ↓%2°"
InlinePattern="↑"
InlineSetting=Color | 241,55,55
InlinePattern2="↓"
InlineSetting2=Color | 0,153,255
DynamicVariables=1
AntiAlias=1

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

[MeterDay2Date]
Meter=String
MeasureName=MeasureDay2Day
StringAlign=Center
FontColor=255,255,255
FontFace=The Frontman
FontSize=11
X=162
Y=180
Text="%1"
AntiAlias=1

[MeterDay2DIcon]
Meter=Image
MeasureName=MeasureDay2Icon
ImagePath=#@#WeatherIconsSmall
X=100
Y=175
W=130
AntiAlias=1

[MeterDay2HighLow]
Meter=String
MeasureName=MeasureDay2Hi
MeasureName2=MeasureDay2Low
StringAlign=Center
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=16
X=162
Y=270
Text="↑%1° ↓%2°"
InlinePattern="↑"
InlineSetting=Color | 241,55,55
InlinePattern2="↓"
InlineSetting2=Color | 0,153,255
DynamicVariables=1
AntiAlias=1

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

[MeterDay3Date]
Meter=String
MeasureName=MeasureDay3Day
StringAlign=Center
FontColor=255,255,255
FontFace=The Frontman
FontSize=11
X=262
Y=180
Text="%1"
AntiAlias=1

[MeterDay3DIcon]
Meter=Image
MeasureName=MeasureDay3Icon
ImagePath=#@#WeatherIconsSmall
X=200
Y=175
W=130
AntiAlias=1

[MeterDay3HighLow]
Meter=String
MeasureName=MeasureDay3Hi
MeasureName2=MeasureDay3Low
StringAlign=Center
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=16
X=262
Y=270
Text="↑%1° ↓%2°"
InlinePattern="↑"
InlineSetting=Color | 241,55,55
InlinePattern2="↓"
InlineSetting2=Color | 0,153,255
DynamicVariables=1
AntiAlias=1

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

[MeterDay4Date]
Meter=String
MeasureName=MeasureDay4Day
StringAlign=Center
FontColor=255,255,255
FontFace=The Frontman
FontSize=11
X=362
Y=180
Text="%1"
AntiAlias=1

[MeterDay4DIcon]
Meter=Image
MeasureName=MeasureDay4Icon
ImagePath=#@#WeatherIconsSmall
X=300
Y=175
W=130
AntiAlias=1

[MeterDay4HighLow]
Meter=String
MeasureName=MeasureDay4Hi
MeasureName2=MeasureDay4Low
StringAlign=Center
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=16
X=362
Y=270
Text="↑%1° ↓%2°"
InlinePattern="↑"
InlineSetting=Color | 241,55,55
InlinePattern2="↓"
InlineSetting2=Color | 0,153,255
DynamicVariables=1
AntiAlias=1

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

[MeterLocation]
Meter=String
MeasureName=MeasureLocation
StringAlign=Left
FontColor=255,255,255
FontFace=The Frontman
FontSize=16
X=158
Y=30
Text="%1"
AntiAlias=1

[MeterFeelsLikeMinMaxTemp]
Meter=String
MeasureName=MeasureFeelsLike
StringAlign=Left
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=12
X=r
Y=37r
Text="• #Feels Like# : %1°"
AntiAlias=1

[MeterHumidity]
Meter=String
MeasureName=MeasureHum
StringAlign=Left
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=12
X=r
Y=17r
Text="• #Humidity# : %1 %"
AntiAlias=1

[MeterWind]
Meter=String
MeasureName=MeasureWindSpeed
MeasureName2=MeasureWindUnit2
StringAlign=Left
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=12
X=r
Y=17r
Text="• #Wind# : %1 %2"
AntiAlias=1

[MeterVis]
Meter=String
MeasureName=MeasureVis
MeasureName2=MeasureWindUnit
StringAlign=Left
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=12
X=r
Y=17r
Text="• #Visibility# : %1 %2"
AntiAlias=1

[MeterPrecipText]
Meter=String
MeasureName=MeasurePrecip
StringAlign=Left
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=12
X=r
Y=17r
Text="• #Chance of Precip# : %1 %"
AntiAlias=1

[MeterPressureText]
Meter=String
MeasureName=MeasurePressureInfo
MeasureName2=MeasurePressureUnit
StringAlign=Left
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=12
X=r
Y=17r
Text="• #Pressure# : %1 %2"
AntiAlias=1
User avatar
Kywicha
Posts: 14
Joined: June 12th, 2018, 10:27 pm
Location: Metz, Lorraine, France

Re: Weather source - "Simplony" skin

Post by Kywicha »

up ! :???:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: Weather source - "Simplony" skin

Post by eclectic-tech »

Your skin is using Weather.com xml data. This is updated about every 10-15 minutes.
It is not unusual for the information on the website page to be slightly different than what the skin shows.
Your 2 screenshots look very similar. So I am not sure there is enough difference to suggest making any changes. :uhuh:
User avatar
Kywicha
Posts: 14
Joined: June 12th, 2018, 10:27 pm
Location: Metz, Lorraine, France

Re: Weather source - "Simplony" skin

Post by Kywicha »

Thx eclectic for your answer !

You 're right, informations are mostly similiar except for the visiblity and mainly the pressure .. always -40mb between the xml data and the website !

Any idea ? ;-)
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: Weather source - "Simplony" skin

Post by eclectic-tech »

Kywicha wrote:Thx eclectic for your answer !

You 're right, informations are mostly similiar except for the visiblity and mainly the pressure .. always -40mb between the xml data and the website !

Any idea ? ;-)
The skin is using the #Location# variable which may not be the same as what the webpage is using.
The page may be using your ISP location, which for me is almost 50 miles away from my physical location. :(

That could be what you are seeing, or it may be a discrepancy between the webpage and the xml data for pressure. Since that is the only data that has a large difference, I would be inclined to accept that the data is accurate for both, and the difference is due to either locations or a weather.com issue. ;p

I would still not recommend trying to tweak the skin code (jsmorley's wxdata retrieval processes are very well design for ease of use, but not for ease of modification). :uhuh:
User avatar
Kywicha
Posts: 14
Joined: June 12th, 2018, 10:27 pm
Location: Metz, Lorraine, France

Re: Weather source - "Simplony" skin

Post by Kywicha »

Thanks for explanations eclectic !
I'll follow your advices great wise man ;)

A last request :
This is my last version of the skin ..
https://ibb.co/m977ed

First, i would like the region appears in the location like : ORLEANS, Centre-Val de Loire. Possible ?
I observe that the code original is : *<dnam>(.*)</dnam>. --> "ORLEANS, 45, FRANCE"
In my version, he was edited by the autor to : *<dnam>(.*),.*</dnam>. --> "ORLEANS"
Can we change the code to show up only the 2 first datas and change the departement code in the variables file, to show the region in text form ? :uhuh:

Then, I would like to change the format of the sunrise & sunset into 24h format. Possible ? :uhuh:

At last, I would like to know if it's possible to edit (font, color, size), in the same block, differents parts of the block.
Exemple : keep the high temp of the day 1 in white and the "°" in red ? :oops:
User avatar
SilverAzide
Rainmeter Sage
Posts: 2588
Joined: March 23rd, 2015, 5:26 pm
Contact:

Re: Weather source - "Simplony" skin

Post by SilverAzide »

Kywicha wrote:Then, I would like to change the format of the sunrise & sunset into 24h format. Possible ?
This is possible. The simplest way to do this is to force the weather.com feed to return localized data (French). To do this, change the URL that you are using are include the parameter "&locale=fr_FR".
Change

Code: Select all

Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
to this

Code: Select all

Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&locale=fr_FR
Kywicha wrote:At last, I would like to know if it's possible to edit (font, color, size), in the same block, differents parts of the block.
Yes, this is possible with Inline options. See this: https://docs.rainmeter.net/manual/meters/string/inline/

Finally, I know this isn't one of your questions or concerns, but this skin is not using WebParser correctly. The skin is making repeated calls to weather.com for nearly every weather attribute, which is not needed and may get your IP banned if you hit the site too frequently. There are 7 calls to the website, but you need only one, as each call is returning the same data every time. You should fetch the data once, then use "child measures" to parse out the data you need. You might want to look at a skin like jsmorley's WXWeatherData skin, which is a nice way to learn how to properly use WebParser and get data from weather.com. This skin also very helpfully provides all the regex expressions you will need to parse anything from the weather feed.
User avatar
Kywicha
Posts: 14
Joined: June 12th, 2018, 10:27 pm
Location: Metz, Lorraine, France

Re: Weather source - "Simplony" skin

Post by Kywicha »

Thx mate for help !
The skin is making repeated calls to weather.com for nearly every weather attribute
Indeed, i noticed that in my search for changes but I cannot make it work properly, I'm still not smart enough about the code and i'm doing few mistakes.
I'm not a programmer, just a random, trying to improve for my taste the rainmeter's skins.
I learning in comparing lines between differents skins to reach my objective. I grope a lot, deleting a word or a line, save, refresh and ctrl z to delete my mistakes ;)

I understood a lot about weather skins and i ll try to correct it ;)
include the parameter "&locale=fr_FR"
Working perfectly :thumbup:
Yes, this is possible with Inline options. See this: https://docs.rainmeter.net/manual/meters/string/inline/
I'm going to lean on the inlines manual ;-)

Any idea for the location ?

Finally, a big thanks mate :great:
User avatar
SilverAzide
Rainmeter Sage
Posts: 2588
Joined: March 23rd, 2015, 5:26 pm
Contact:

Re: Weather source - "Simplony" skin

Post by SilverAzide »

Kywicha wrote:Any idea for the location ?
Sure... first, put the code back the way it was originally (as you showed in your post). Next, find the [MeasureLocation] measure and add the following:

Code: Select all

RegExpSubstitute=1
Substitute=".*(,.*)":""
(I did not test this, so it might not work. It is trying to trim off the last comma and everything after it.)

However! Just a warning to you. This code will work for YOUR location, but will fail for many others. The reason is that the location does not necessarily have the ", country" text in it. There are two tags in the XML that you can use for the location. "<dnam>" has the name of the location, and "<obst>" is the observation station. The observation station almost always includes the country, but the location name may not, depending on the location code you are using.
User avatar
Kywicha
Posts: 14
Joined: June 12th, 2018, 10:27 pm
Location: Metz, Lorraine, France

Re: Weather source - "Simplony" skin

Post by Kywicha »

This code will work for YOUR location, but will fail for many others.
Indeed, it didnt work at all :/ I test for some big cities in France but tests failed too.
The skin is making repeated calls to weather.com for nearly every weather attribute, which is not needed and may get your IP banned if you hit the site too frequently.
I trying to clean the code, here an extract of the begining :

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc

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

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser
URL=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&locale=fr_FR
RegExp="(?siU)<head>.*<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>.*"
UpdateRate=1800

[Measure5Days]
Measure=Plugin
Plugin=WebParser
URL=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=5
RegExp="(?siU).*<day d="1" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.* d="2" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.* d="3" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.* d="4" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
UpdateRate=1800

[MeasureChanceForPrecip]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1800
Url=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<cc>.*<t>(.*)</t>.*<ppcp>(.*)</ppcp>.*"

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

[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=2

[MeasurePrecip]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureChanceForPrecip]
StringIndex=2

[MeasureWindUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=4

[MeasurePressureUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=5

[MeasureLocation]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=8

[MeasureLong]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=10

[MeasureLat]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=11

[MeasureSunUp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=12

[MeasureSunDown]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=13

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=17

[MeasureFeelsLike]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=18

[MeasureIndi]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=19

[MeasureWeatherIcons]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=20

[MeasurePressureInfo]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=21

[MeasureWindSpeed]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=23
Substitute=#Index#

[MeasureWindDir]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=26
MinValue=0
MaxValue=360

[MeasureHum]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=27

[MeasureVis]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=28

[MeasureUVInd]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=29

[MeasureUVText]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=30
Can i combin the ChanceForPrecip in the "Current" RegExp ? Always fail when i try it .. :confused:
Same question for the Mesure5Days ?

I learned a lot in your inline manual but i reach a problem :

Code: Select all

[MeterDay4HighLow]
Meter=String
MeasureName=MeasureDay4Hi
MeasureName2=MeasureDay4Low
StringAlign=Center
FontColor=255,255,255
FontFace=Semi-Casual
FontSize=16
X=342
Y=255
Text="%1°#CRLF#%2°"
AntiAlias=1
InlineSetting=GradientColor | 270 | 241,55,55 ; 0.0 | 0,153,255 ; 1.0
DynamicVariables=1
https://ibb.co/dYuGqJ
I want to make a general gradient to Low (blue) to High (red) but he cuts the color in the middle ! #CRLF# is involved ?
Post Reply