It is currently September 8th, 2024, 1:04 am
Football (soccer...) skin
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
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)
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
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: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)
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
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
should look like this?
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
You do not have the required permissions to view the files attached to this post.
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
Yes ,thank you very much
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
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...
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...
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
I can give you other source info,if that’s ok
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
Alright, give it. It's ok.
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
https://www.bbc.co.uk/sport/football/premier-league/scores-fixtures
https://www.bbc.co.uk/sport/football/premier-league/table
Hope this one is fine
And again,thank you very much
https://www.bbc.co.uk/sport/football/premier-league/table
Hope this one is fine
And again,thank you very much
-
- Rainmeter Sage
- Posts: 16499
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
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.tom0711 wrote: ↑May 22nd, 2020, 7:13 pm https://www.bbc.co.uk/sport/football/premier-league/scores-fixtures
https://www.bbc.co.uk/sport/football/premier-league/table