It is currently April 19th, 2024, 10:44 pm

Can someone please help me?

Get help with creating, editing & fixing problems with skins
rucanunes
Posts: 24
Joined: December 20th, 2017, 10:28 pm

Can someone please help me?

Post by rucanunes »

Hello,

I'm new to RainMeter. I a teacher at Portugal and we have a webpage where all the recent notifications are posted.
I would like very much to place that in the background of the teacher's PCs but I don't have the skills to do that.

I'm now a bit familiar with RainMeter but I don't know how to create skins (I tried for two days now)

Would someone please help me create something very simple, just to get the info out of this page?
URL: http://www.aev-valbom.org/convocatorias-publica-2017-2018/

I'm using RainMeter at home to (See attachment). I would like something very simple like the Amnio Skin.

I would be very grateful for the help.

Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
LittleOne
Posts: 48
Joined: March 24th, 2015, 4:03 am

Re: Can someone please help me?

Post by LittleOne »

I learn from this tutorial about how to get data from site, follow it step by step and once you get the idea you probably will have so much fun staring at some text editor :D
https://docs.rainmeter.net/tips/webparser-tutorial/
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can someone please help me?

Post by balala »

Beside LittleOne's reply, I have to say that although this looks like a skin request (which is not allowed here on Rainmeter forum), I post an example, to show you how can you create the skin you'd like.
So, for first, here is a code:

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=80,80,80,220

[Variables]
Item=.*(?(?=.*<td class=).*"column-1">(.*)</td><td class="column-2">(.*)</td><td class="column-3">(.*)</td>)
Subst="<font color=#.*>":"","</font>":"","<s>":"","</s>":""

[StringStyle]
H=14
ClipString=1
FontColor=220,220,220
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
AntiAlias=1
Text=%1

[MeasureRainmeter]
Measure=WebParser
UpdateRate=900
Url=http://www.aev-valbom.org/convocatorias-publica-2017-2018/
RegExp=(?siU)#Item##Item##Item##Item##Item#
DecodeCharacterReference=3

[MeasureNr1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=1

[MeasureConvocatorias1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=2

[MeasureInseridoEm1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=3

[MeasureNr2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=4

[MeasureConvocatorias2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=5

[MeasureInseridoEm2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=6

[MeasureNr3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=7

[MeasureConvocatorias3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=8

[MeasureInseridoEm3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=9

[MeasureNr4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=10

[MeasureConvocatorias4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=11

[MeasureInseridoEm4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=12

[MeasureNr5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=13

[MeasureConvocatorias5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=14

[MeasureInseridoEm5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=15

[MeterNr1]
Meter=STRING
MeasureName=MeasureNr1
MeterStyle=StringStyle
X=15
Y=5
W=20
StringAlign=Center

[MeterConvocatorias1]
Meter=STRING
MeasureName=MeasureConvocatorias1
MeterStyle=StringStyle
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias1]
DynamicVariables=1

[MeterInseridoEm1]
Meter=STRING
MeasureName=MeasureInseridoEm1
MeterStyle=StringStyle
X=300r
Y=0r
W=80
StringAlign=LEFT

[MeterNr2]
Meter=STRING
MeasureName=MeasureNr2
MeterStyle=StringStyle
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias2]
Meter=STRING
MeasureName=MeasureConvocatorias2
MeterStyle=StringStyle
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias2]
DynamicVariables=1

[MeterInseridoEm2]
Meter=STRING
MeasureName=MeasureInseridoEm2
MeterStyle=StringStyle
X=300r
Y=0r
W=80
StringAlign=LEFT

[MeterNr3]
Meter=STRING
MeasureName=MeasureNr3
MeterStyle=StringStyle
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias3]
Meter=STRING
MeasureName=MeasureConvocatorias3
MeterStyle=StringStyle
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias3]
DynamicVariables=1

[MeterInseridoEm3]
Meter=STRING
MeasureName=MeasureInseridoEm3
MeterStyle=StringStyle
X=300r
Y=0r
W=80
StringAlign=LEFT

[MeterNr4]
Meter=STRING
MeasureName=MeasureNr4
MeterStyle=StringStyle
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias4]
Meter=STRING
MeasureName=MeasureConvocatorias4
MeterStyle=StringStyle
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias4]
DynamicVariables=1

[MeterInseridoEm4]
Meter=STRING
MeasureName=MeasureInseridoEm4
MeterStyle=StringStyle
X=300r
Y=0r
W=80
StringAlign=LEFT

[MeterNr5]
Meter=STRING
MeasureName=MeasureNr5
MeterStyle=StringStyle
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias5]
Meter=STRING
MeasureName=MeasureConvocatorias5
MeterStyle=StringStyle
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias5]
DynamicVariables=1

[MeterInseridoEm5]
Meter=STRING
MeasureName=MeasureInseridoEm5
MeterStyle=StringStyle
X=300r
Y=0r
W=80
StringAlign=LEFT
Now a few words about the above code:
[MeasureRainmeter] is the parent WebParser measure. All others are child measures of this one, so they have set the Url=[MeasureRainmeter] option.
Below the parent measure, you have the following group of measures:
  • [MeasureNr1] - [MeasureNr5] return the elements of the Number column (Nr. - the first column).
  • [MeasureConvocatorias1] - [MeasureConvocatorias5] return the elements of the Convocatórias / Informações (Calls, if I'm not wrong) column.
  • And finally the [MeasureInseridoEm1] - [MeasureInseridoEm5] measures return the Inserido em elements.
Appropriately, the used String meters are the following ones:
  • [MeterNr1] - [MeterNr5] - used to display the strings (numbers) returned by the [MeasureNr1] - [MeasureNr5] measures.
  • [MeterConvocatorias1] - [MeterConvocatorias5] - return the elements of the [MeasureConvocatorias1] - [MeasureConvocatorias5] measures.
  • [MeterInseridoEm1] - [MeterInseridoEm5] obviously return the elements of the [MeasureInseridoEm1] - [MeasureInseridoEm5] measures.
The skin as is right now, reads just the first five elements of the list. Further elements can also be added, by adding further #Item# elements to the RegExp option of the [MeasureRainmeter] measure, the appropriate child WebParser measures (which will be similar to the [MeasureNr1] / [MeasureConvocatorias1] / [MeterInseridoEm1] - [MeasureNr5] / [MeasureConvocatorias5] / [MeterInseridoEm5], with the proper StrinIndex values) and the corresponding String meters. For first try this code and let me know if everything is ok. If it is and you need, I'll help you to add the needed further sections.
The code uses Lookahead Assertion. This means the code won't fail, even if there are no enough elements in the list. I don't know how the number of elements varies, but if there are less elements then five, the skin also works.
Now, does this code work?
rucanunes
Posts: 24
Joined: December 20th, 2017, 10:28 pm

Re: Can someone please help me?

Post by rucanunes »

I'm very sorry about my request. I didn't knew it was not allowed to ask for a skin.
I'll try to build this one. But I'm finding it very hard to code.
Anyway, thank you very much for your help. I'm going to try it.
rucanunes
Posts: 24
Joined: December 20th, 2017, 10:28 pm

Re: Can someone please help me?

Post by rucanunes »

Thank you very much for your help balala!!

I tried your code but I only get a grey bar...
I know a few HTML and PHP code, but this is new for me.

If I can get your help retreive some lines I think I'll be able to do the rest.

Once again I'm sorry and thank you for your help!!!
You do not have the required permissions to view the files attached to this post.
rucanunes
Posts: 24
Joined: December 20th, 2017, 10:28 pm

Re: Can someone please help me?

Post by rucanunes »

Hum... This is strange!! Today it worked... !!!

Today I'm going to try to add a title and change the size.
This was a GREAT help for me. Thank you balala!!!

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

Re: Can someone please help me?

Post by balala »

You're welcome.
Usually if the skins using WebParser measures (like this one) don't work, restarting Rainmeter many times help. Probably evening you shut down your computer, then when restarted it in the morning, the problem got solved.
Some details here: https://forum.rainmeter.net/viewtopic.php?p=136507#p136507
I'm glad if it's working as you waited. If you have any further question, please feel free to ask.
rucanunes
Posts: 24
Joined: December 20th, 2017, 10:28 pm

Re: Can someone please help me?

Post by rucanunes »

I'm now goint to try and add a title, change the backgroud color and font size.

You're a great guy balala! Thank you so much!!!
User avatar
balala
Rainmeter Sage
Posts: 16147
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can someone please help me?

Post by balala »

rucanunes wrote:You're a great guy balala!
Also thanks for the appreciations.
rucanunes
Posts: 24
Joined: December 20th, 2017, 10:28 pm

Re: Can someone please help me?

Post by rucanunes »

And I'm dumb!! Two hours and I can't ger the text aligned and the same font.. Damn!! :oops:
I'm trying to incorporate the Amino style here...

Code: Select all

[Rainmeter]

AccurateText=1
ContextTitle=Open Config Menu
ContextAction=[!ActivateConfig #RootConfig#\Config]

[MetaData]
Name=Amnio: Notes
Author=JosephB2000
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 4.0

[Variables]

@includeStyles=#@#Styles.inc

@includeVariables=#@#Variables.inc

Item=.*(?(?=.*<td class=).*"column-1">(.*)</td><td class="column-2">(.*)</td><td class="column-3">(.*)</td>)
Subst="<font color=#.*>":"","</font>":"","<s>":"","</s>":""

;-------------------------------------------
; MEASURES
;-------------------------------------------

[MeasureNote]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#NotesPath#
Disabled=0
Separator=¶
Subfolders=0

;-------------------------------------------
; MAIN APPEARANCE
;-------------------------------------------

[InvisibleNotesBackground]
Meter=String
W=#NotesWidth#
H=#NotesHeight#
SolidColor=0,0,0,1

[NotesTitle]
Meter=String
MeterStyle=FontStyleVegurRegular
Text=#NotesTitle#
FontSize=16

[NotesIcon]
Meter=String
X=(#NotesWidth# - 18)
Y=8
W=10
H=10
SolidColor=#MainColour#,150
Hidden=1

[NotesDivider]
Meter=String
Y=26
W=#NotesWidth#
H=2
SolidColor=#MainColour#,150

[NotesText]
Meter=String
MeasureName=MeasureNote
MeterStyle=FontStyleVegurRegular
FontColor=#MainColour#,150
FontSize=10
ClipString=1

[StringStyle]
FontColor=#MainColour#,150
FontSize=10
FontFace=FontStyleVegurRegular
Text=%1

[MeasureRainmeter]
Measure=WebParser
UpdateRate=900
Url=http://www.aev-valbom.org/convocatorias-publica-2017-2018/feed/
RegExp=(?siU)#Item##Item##Item##Item##Item#
DecodeCharacterReference=3

[MeasureNr1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=1

[MeasureConvocatorias1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=2

[MeasureInseridoEm1]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=3

[MeasureNr2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=4

[MeasureConvocatorias2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=5

[MeasureInseridoEm2]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=6

[MeasureNr3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=7

[MeasureConvocatorias3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=8

[MeasureInseridoEm3]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=9

[MeasureNr4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=10

[MeasureConvocatorias4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=11

[MeasureInseridoEm4]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=12

[MeasureNr5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=13

[MeasureConvocatorias5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
RegExpSubstitute=1
Substitute=#Subst#
StringIndex=14

[MeasureInseridoEm5]
Measure=WebParser
Url=[MeasureRainmeter]
DecodeCharacterReference=3
StringIndex=15

[MeterNr1]
Meter=STRING
MeasureName=MeasureNr1
MeterStyle=NotesText
X=15
Y=5
W=20
StringAlign=Center

[MeterConvocatorias1]
Meter=STRING
MeasureName=MeasureConvocatorias1
MeterStyle=NotesText
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias1]
DynamicVariables=1

[MeterInseridoEm1]
Meter=STRING
MeasureName=MeasureInseridoEm1
MeterStyle=NotesText
X=550r
Y=0r
W=80
StringAlign=LEFT

[MeterNr2]
Meter=STRING
MeasureName=MeasureNr2
MeterStyle=NotesText
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias2]
Meter=STRING
MeasureName=MeasureConvocatorias2
MeterStyle=NotesText
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias2]
DynamicVariables=1

[MeterInseridoEm2]
Meter=STRING
MeasureName=MeasureInseridoEm2
MeterStyle=NotesText
X=550r
Y=0r
W=80
StringAlign=LEFT

[MeterNr3]
Meter=STRING
MeasureName=MeasureNr3
MeterStyle=NotesText
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias3]
Meter=STRING
MeasureName=MeasureConvocatorias3
MeterStyle=NotesText
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias3]
DynamicVariables=1

[MeterInseridoEm3]
Meter=STRING
MeasureName=MeasureInseridoEm3
MeterStyle=NotesText
X=550r
Y=0r
W=80
StringAlign=LEFT

[MeterNr4]
Meter=STRING
MeasureName=MeasureNr4
MeterStyle=NotesText
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias4]
Meter=STRING
MeasureName=MeasureConvocatorias4
MeterStyle=NotesText
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias4]
DynamicVariables=1

[MeterInseridoEm4]
Meter=STRING
MeasureName=MeasureInseridoEm4
MeterStyle=NotesText
X=550r
Y=0r
W=80
StringAlign=LEFT

[MeterNr5]
Meter=STRING
MeasureName=MeasureNr5
MeterStyle=NotesText
X=15
Y=2R
W=20
StringAlign=Center

[MeterConvocatorias5]
Meter=STRING
MeasureName=MeasureConvocatorias5
MeterStyle=NotesText
X=15r
Y=0r
W=295
StringAlign=LEFT
ToolTipText=[MeasureConvocatorias5]
DynamicVariables=1

[MeterInseridoEm5]
Meter=STRING
MeasureName=MeasureInseridoEm5
MeterStyle=NotesText
X=550r
Y=0r
W=80
StringAlign=LEFT


[NotesDivider]
Meter=String
Y=26
W=#NotesWidth#
H=2
SolidColor=#MainColour#,150
You do not have the required permissions to view the files attached to this post.