It is currently May 26th, 2020, 8:58 am

Football (soccer...) skin

Help with creating, editing & fixing problems with skins
tom0711
Posts: 32
Joined: April 29th, 2020, 5:55 pm

Re: Football (soccer...) skin

Post by tom0711 »

Well,now it’s quite complicated to explain because there aren’t any dates of matches,but if possible so all fixtures for the closest match week,if not all possible so only Man City, Man Utd,Liverpool,arsenal,Chelsea and Tottenham matches for the match week (with date and time if possible)
User avatar
balala
Rainmeter Sage
Posts: 10587
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Football (soccer...) skin

Post by balala »

tom0711 wrote:
May 21st, 2020, 6:06 pm
Well,now it’s quite complicated to explain because there aren’t any dates of matches,but if possible so all fixtures for the closest match week,if not all possible so only Man City, Man Utd,Liverpool,arsenal,Chelsea and Tottenham matches for the match week (with date and time if possible)
Completely developing a skin in many cases is a longer proces. So for first, I got the names of the teams and their logo. Obviously we have to continue to work on this project, but now please take a look to the following code and let me know how does it work. It should show up, as said, the names and the logos of the first five teams:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]
Item=<img class=".*" src="(.*)" srcset=".*" />.*<span class="name">(.*)</span>

[StringStyle]
X=5R
Y=13r
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFTCENTER
AntiAlias=1
Text=%1

[MeasureRainmeter]
Measure=WebParser
UpdateRate=870
Url=https://www.premierleague.com/fixtures
RegExp=(?siU)#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#.*#Item#

[MeasureLogoURL1]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=1
OnChangeAction=[!EnableMeasure "MeasureLogo1"][!CommandMeasure "MeasureLogo1" "Update"]

[MeasureTeam1]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=2

[MeasureLogo1]
Measure=WebParser
Url=[&MeasureLogoURL1]
Download=1
DynamicVariables=1
Disabled=1

[MeasureLogoURL2]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=3
OnChangeAction=[!EnableMeasure "MeasureLogo2"][!CommandMeasure "MeasureLogo2" "Update"]

[MeasureTeam2]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=4

[MeasureLogo2]
Measure=WebParser
Url=[&MeasureLogoURL2]
Download=1
DynamicVariables=1
Disabled=1

[MeasureLogoURL3]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=5
OnChangeAction=[!EnableMeasure "MeasureLogo3"][!CommandMeasure "MeasureLogo3" "Update"]

[MeasureTeam3]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=6

[MeasureLogo3]
Measure=WebParser
Url=[&MeasureLogoURL3]
Download=1
DynamicVariables=1
Disabled=1

[MeasureLogoURL4]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=7
OnChangeAction=[!EnableMeasure "MeasureLogo4"][!CommandMeasure "MeasureLogo4" "Update"]

[MeasureTeam4]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=8

[MeasureLogo4]
Measure=WebParser
Url=[&MeasureLogoURL4]
Download=1
DynamicVariables=1
Disabled=1

[MeasureLogoURL5]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=9
OnChangeAction=[!EnableMeasure "MeasureLogo5"][!CommandMeasure "MeasureLogo5" "Update"]

[MeasureTeam5]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=10

[MeasureLogo5]
Measure=WebParser
Url=[&MeasureLogoURL5]
Download=1
DynamicVariables=1
Disabled=1

[MeterLogo1]
Meter=Image
MeasureName=MeasureLogo1
X=20
Y=0

[MeterTeam1]
Meter=STRING
MeasureName=MeasureTeam1
MeterStyle=StringStyle

[MeterLogo2]
Meter=Image
MeasureName=MeasureLogo2
X=-30r
Y=20r

[MeterTeam2]
Meter=STRING
MeasureName=MeasureTeam2
MeterStyle=StringStyle

[MeterLogo3]
Meter=Image
MeasureName=MeasureLogo3
X=-30r
Y=20r

[MeterTeam3]
Meter=STRING
MeasureName=MeasureTeam3
MeterStyle=StringStyle

[MeterLogo4]
Meter=Image
MeasureName=MeasureLogo4
X=-30r
Y=20r

[MeterTeam4]
Meter=STRING
MeasureName=MeasureTeam4
MeterStyle=StringStyle

[MeterLogo5]
Meter=Image
MeasureName=MeasureLogo5
X=-30r
Y=20r

[MeterTeam5]
Meter=STRING
MeasureName=MeasureTeam5
MeterStyle=StringStyle
But no matches so far.
tom0711
Posts: 32
Joined: April 29th, 2020, 5:55 pm

Re: Football (soccer...) skin

Post by tom0711 »

should look like this?
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 10587
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Football (soccer...) skin

Post by balala »

tom0711 wrote:
May 21st, 2020, 8:10 pm
should look like this?
Exactly. Like this:
Screenshot%20(39)_resize.png
You do not have the required permissions to view the files attached to this post.
tom0711
Posts: 32
Joined: April 29th, 2020, 5:55 pm

Re: Football (soccer...) skin

Post by tom0711 »

Yes ,thank you very much
User avatar
balala
Rainmeter Sage
Posts: 10587
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Football (soccer...) skin

Post by balala »

Unfortunately I just realized probably there is no way to get all information, because the https://www.premierleague.com/fixtures site uses java scripts and WebParser can't handle them.
As you saw, some information can be extracted, but probably the dynamic information, can't be.
Will try a few other things, but this is my guess...
tom0711
Posts: 32
Joined: April 29th, 2020, 5:55 pm

Re: Football (soccer...) skin

Post by tom0711 »

I can give you other source info,if that’s ok
User avatar
balala
Rainmeter Sage
Posts: 10587
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Football (soccer...) skin

Post by balala »

tom0711 wrote:
May 22nd, 2020, 6:51 pm
I can give you other source info,if that’s ok
Alright, give it. It's ok.
tom0711
Posts: 32
Joined: April 29th, 2020, 5:55 pm

Re: Football (soccer...) skin

Post by tom0711 »

User avatar
balala
Rainmeter Sage
Posts: 10587
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Football (soccer...) skin

Post by balala »

No, unfortunately neither these are, because they are using java scripts as well. As said the WebParser measures can't parse sites using such java scripts.