Jump to content

Rainmeter οδηγός βήμα βήμα


Recommended Posts

Μπορεις να εχεις ολες τις μεταβλητες απο τα skins σε ενα αρχειο και να το καλεις στην αρχη του κωδικα ωστε να μην χρειαζεται καθε φορα να ψαχνεις για να αλλαξεις κατι.

Π.χ στην αρχη του καθε skin


[Variables]
@include=#SKINSPATH#theme/Variables.inc

καλει το αρχειο variables.inc απο τον φακελο theme (ετσι εχω ονομασει τον φακελο με τα skins που εφτιαξα στο documents/ranimeter/skins)

variables.inc


[Variables]

;διαφορετικο update speed αναλογα τα skins για μικροτερο cpu load
update1=1000
update2=10000

WeatherCode=GRXX0019
Unit=c

;Tα links απο τα rss μου
Google=http://********************
RSS1=http://www.thelab.gr/external.php?type=rss2&forumids=6
RSS2=http://***************
RSS3=http://************
Atom=http://
Substitute="&":"&",""":"","&Quot;":"","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":""
SubstituteLink="&":"&","<![CDATA[":"","]]>":""

TwitUser=******
Pass=******

Drive1=C
Drive2=E
Drive3=F

monitorH=1080
NewsW=400

NetworkMaxDownload=1000000
NetworkMaxUpload=500000

;Για να εχουν ολα τα skins ομοιομορφα χρωματα και fonts
fontColor.Text=255, 255, 255, 160
FontEffectColor=0, 0, 0
graph.line1=255, 255, 255, 100
graph.line2=68, 137, 201, 100
bar.color=68, 137, 201, 100
border.color=255, 255, 255, 100
HoverColor=68, 137, 201, 100
FontName=Tahoma
FontHeight=8
AntiAlias=1

Ετσι στο καθε skin αρκει να βαλεις το ονομα της καθε μεταβλητης και αυτοματα καλει την αξια της απο το variables.inc


Update=#update1#
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#

Edited by Astakos
  • Like 2
Link to comment
Share on other sites

Stickied. Ευχαριστούμε για τον οδηγό rafail1994:)

Χαίρομαι που σας άρεσε .Τώρα ετοιμάζω πως να αλλάζουμε την γραμματοσειρά στα skins το τελειώνω και το ανεβάζω μέσα στο σαββατοκύριακο :T:

Link to comment
Share on other sites

Ας αφησω καπου εδω το RSS skin που εφτιαξα μηπως το χρειαζεται καποιος.

Ειναι rss gadget 10 γραμμων με δυνατοτητα να κλικαρουμε την ειδηση και να ανοιγει στον browser μας.

Αν δε δουλεψει με καποιο site χρειαζεται να παιξετε με το codepage ή με substitute/substitute link.(Με τον λαμπη παντως δουλευει μια χαρα.)


[Variables]
@include=#SKINSPATH#theme/Variables.inc
LineHeight=14

[Rainmeter]
DynamicWindowSize=1
Update=#update2#


[MeasureRSS1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=#RSS1#
RegExp="(?siU)<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*<item>"
Substitute=#Substitute#
UpdateRate=900
StringIndex=1
Debug=1
CodePage=1253

[MeasureRSS1Link]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=2

[MeasureRSS1Item1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=3

[MeasureRSS1Link1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=4

[MeasureRSS1Item2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=5

[MeasureRSS1Link2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=6

[MeasureRSS1Item3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=7

[MeasureRSS1Link3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=8

[MeasureRSS1Item4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=9

[MeasureRSS1Link4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=10

[MeasureRSS1Item5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=11

[MeasureRSS1Link5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=12

[MeasureRSS1Item6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=13

[MeasureRSS1Link6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=14

[MeasureRSS1Item7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=15

[MeasureRSS1Link7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=16

[MeasureRSS1Item8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=17

[MeasureRSS1Link8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=18

[MeasureRSS1Item9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=19

[MeasureRSS1Link9]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=20

[MeasureRSS1Item10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=21

[MeasureRSS1Link10]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=[MeasureRSS1]
Substitute=#Substitute#
StringIndex=22


[DIVIDER2]
Meter=Image
W=290
H=1
X=5
Y=(#LineHeight#+5)
SolidColor=#FontColor.Text#

[MeterRSS1Title]
Meter=String
MeasureName=MeasureRSS1
X=5
Y=5
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=BOLD
FontColor=#fontColor.Text#
StringEffect=SHADOW
FontEffectColor=#FontEffectColor#
LeftMouseDownAction=[MeasureRSS1Link]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover1][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover1][!RainmeterRedraw]

[MeterRSS1Item1]
Meter=String
MeasureName=MeasureRSS1Item1
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link1]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover2][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover2][!RainmeterRedraw]

[MeterRSS1Item2]
Meter=String
MeasureName=MeasureRSS1Item2
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link2]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover3][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover3][!RainmeterRedraw]

[MeterRSS1Item3]
Meter=String
MeasureName=MeasureRSS1Item3
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link3]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover4][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover4][!RainmeterRedraw]

[MeterRSS1Item4]
Meter=String
MeasureName=MeasureRSS1Item4
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link4]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover5][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover5][!RainmeterRedraw]


[MeterRSS1Item5]
Meter=String
MeasureName=MeasureRSS1Item5
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link5]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover6][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover6][!RainmeterRedraw]

[MeterRSS1Item6]
Meter=String
MeasureName=MeasureRSS1Item6
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link6]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover7][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover7][!RainmeterRedraw]

[MeterRSS1Item7]
Meter=String
MeasureName=MeasureRSS1Item7
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link7]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover8][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover8][!RainmeterRedraw]

[MeterRSS1Item8]
Meter=String
MeasureName=MeasureRSS1Item8
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link8]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover9][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover9][!RainmeterRedraw]

[MeterRSS1Item9]
Meter=String
MeasureName=MeasureRSS1Item9
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link9]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover10][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover10][!RainmeterRedraw]

[MeterRSS1Item10]
Meter=String
MeasureName=MeasureRSS1Item10
X=5
Y=R
W=#NewsW#
H=#LineHeight#
ClipString=1
StringStyle=NORMAL
FontFace=#FontName#
FontSize=#FontHeight#
FontColor=#FontColor.Text#
antialias=1
LeftMouseDownAction=[MeasureRSS1Link10]
MouseOverAction=!Execute [!RainmeterShowMeter MeterHover11][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterHideMeter MeterHover11][!RainmeterRedraw]



[MeterHover1]
Meter=Image
X=5
Y=6
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover2]
Meter=Image
X=5
Y=(#LineHeight#+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover3]
Meter=Image
X=5
Y=(#LineHeight#*2+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover4]
Meter=Image
X=5
Y=(#LineHeight#*3+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover5]
Meter=Image
X=5
Y=(#LineHeight#*4+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover6]
Meter=Image
X=5
Y=(#LineHeight#*5+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover7]
Meter=Image
X=5
Y=(#LineHeight#*6+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover8]
Meter=Image
X=5
Y=(#LineHeight#*7+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover9]
Meter=Image
X=5
Y=(#LineHeight#*8+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover10]
Meter=Image
X=5
Y=(#LineHeight#*9+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

[MeterHover11]
Meter=Image
X=5
Y=(#LineHeight#*10+7)
W=#NewsW#
H=#LineHeight#
SolidColor=#HoverColor#
Hidden=1

Για να δουλεψει χρειαζεται τον variables.inc που ανεφερα μερικα post πιο πανω.

Εναλλακτικα βαζετε τα variables στην αρχη του skin.

Pic

  • Like 1
Link to comment
Share on other sites

ρε παιδια μια ερωτηση!! υπαρχει gadget στο rain meter που να δειχνει θερμοκρασια cpu - gpu? εννοειται φανταζομαι θα πρεπει να τρεχει κανενα coretemp η hwmon στο background. εψαξα αλλα δεν βρηκα κατι

Link to comment
Share on other sites

Για cpu χιλιαδες..

Για gpu αν στην δειχνει το speedfan μπορω να σου γραψω τον κωδικα.Ειναι πολυ απλο.

Με ενδιαφέρει και έμενα.......Προσπάθησα να το κάνω και κάθε φορά μου βγάζει πρόβλημα και δεν μου εμφανίζει σωστά την θερμοκρασία.

Link to comment
Share on other sites

Παρακατω ειναι το μερος του κωδικα του cpu skin μου που μετραει core temp μεσω speedfan.

Απλα ανοιγεις speedfan και μετρας με την σειρα ποιο ειναι το temp που σε ενδιαφερει

Στο παρακατω παραδειγμα ειναι το 9 και θετω

SpeedFanNumber=9

trial and error.. (δυστηχως στην ati μου το speedfan δεν βρισκει τον σενσορα της)


[MeasureSpeedTemp0]
Measure=Plugin
Plugin=Plugins/SpeedFanPlugin.dll
SpeedFanType=TEMPERATURE
SpeedFanNumber=9

[l.temper]
Meter=STRING
MeasureName=MeasureSpeedTemp0
X=185
Y=0r
StringAlign=RIGHT
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=#FontEffectColor#
AntiAlias=1
PostFix="°C"

Επισης μπορει να μετραει τα rpm απο τα fans

Π.χ για το psu fan


[MeasureSpeedFan0]
Measure=Plugin
Plugin=Plugins/SpeedFanPlugin.dll
SpeedFanType=FAN
SpeedFanNumber=6

[Fan]
Meter=STRING
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=#FontEffectColor#
AntiAlias=1
Text="PSU :"

[Fan%1]
X=80
Meter=STRING
MeasureName=MeasureSpeedFan0
StringAlign=RIGHT
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
FontEffectColor=#FontEffectColor#
AntiAlias=1
Text="%1 rpm"

Edited by Astakos
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...