It is currently April 24th, 2024, 12:34 am
Currency USDPLN
-
- Posts: 28
- Joined: October 27th, 2021, 11:34 am
- Location: Poland
Re: Currency USDPLN
I write with a translator, so maybe something is not stylistically
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Currency USDPLN
Ok, here is the code using the first source (https://www.bankier.pl/waluty/kursy-walut/forex/USDPLN). It is pretty simple, showing only the current value accessible on the site. As you can see, I simplified the code, renouncing for instance to the child WebParser measures and keeping only the parent measure ([MeasureCurrency]). For this I added the StringIndex=1 option directly to this measure. Here is the code:
Code: Select all
[Metadata]
Name=Currency
Description=A gadget to see currencys exchange rate
Version=1
Author=kehtron1
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
SkinWidth=130
SkinHeight=65
[Variables]
FontName=Segoe UI
FontSize=24
;----------------------------------------
[MeasureCurrency]
Measure=WebParser
Url=https://www.bankier.pl/waluty/kursy-walut/forex/USDPLN
RegExp=(?siU)<div class="right textNowrap">.*<div class="profilLast">(.*)</div>.*<div class="change down">
StringIndex=1
UpdateRate=600
[MeterCurrency]
Meter=String
MeasureName=MeasureCurrency
X=65
Y=32
FontSize=#FontSize#
FontColor=255,255,255,255
stringAlign=CenterCenter
AntiAlias=1
Text=%1
-
- Posts: 28
- Joined: October 27th, 2021, 11:34 am
- Location: Poland
Re: Currency USDPLN
Beautifully.
Can I change the font style to a more decorative Caladea.
I typed -
and it didn't change the font. Do you need to change anything else to change the font?
You entered author - kehtron1
.You should fill in your details, I was just asking for a favor.
Best regards
Mariusz
Can I change the font style to a more decorative Caladea.
I typed -
Code: Select all
[Variables]
FontName = Caladea
FontSize = 24
You entered author - kehtron1
.You should fill in your details, I was just asking for a favor.
Best regards
Mariusz
Last edited by balala on October 28th, 2021, 5:34 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Posts: 28
- Joined: October 27th, 2021, 11:34 am
- Location: Poland
Re: Currency USDPLN
I made this simple wallpaper for my daughter, she likes water and travels.
She will know how much cash to prepare before her next departure.
In clock is Font Caladea.
She will know how much cash to prepare before her next departure.
In clock is Font Caladea.
Code: Select all
[HOUR]
MeasureName=MeasureTime
Meter=STRING
StringStyle=BOLD
X=96
Y=80
FontColor=255,255,255,190
FontSize=37
FontFace=Caladea
StringAlign=CENTER
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
Last edited by balala on October 28th, 2021, 5:34 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Currency USDPLN
Yeah, sorry, add a FontFace=#FontName# option to the [MeterCurrency] meter. I suppose it was there but I removed it somehow in meantime. My bad...
Also don't forget to refresh the skin when you add / change something like this. Does it work now?
Yeah, don't worry. Be you the author.
-
- Posts: 28
- Joined: October 27th, 2021, 11:34 am
- Location: Poland
Re: Currency USDPLN
Now it has changed. Thank you.
And so that something about yourself.
I trained judo in my youth. In 1975, as the Walter Rzeszów team, we were friends with the Romanian team from Sibiu.
I was as a boy and I was fighting with a boy named Ion at the time.
I lost the fight and I remember my name because I like tennis and play and watch and your very good player has the same name as Ion Tiriac.
End of memories.
Thank you very much for your help.
I do not know what is wished in Romania, therefore all the best.
Best regards
Mariusz
And so that something about yourself.
I trained judo in my youth. In 1975, as the Walter Rzeszów team, we were friends with the Romanian team from Sibiu.
I was as a boy and I was fighting with a boy named Ion at the time.
I lost the fight and I remember my name because I like tennis and play and watch and your very good player has the same name as Ion Tiriac.
End of memories.
Thank you very much for your help.
I do not know what is wished in Romania, therefore all the best.
Best regards
Mariusz
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Currency USDPLN
Glad if you got it working as expected.kehtron1 wrote: ↑October 28th, 2021, 5:52 pm Now it has changed. Thank you.
And so that something about yourself.
I trained judo in my youth. In 1975, as the Walter Rzeszów team, we were friends with the Romanian team from Sibiu.
I was as a boy and I was fighting with a boy named Ion at the time.
I lost the fight and I remember my name because I like tennis and play and watch and your very good player has the same name as Ion Tiriac.
End of memories.
Thank you very much for your help.
I do not know what is wished in Romania, therefore all the best.
Best regards
Mariusz
Just incidentally, I was born in 1975.
Thank you for the wishes. Wish the same for you too.
-
- Posts: 28
- Joined: October 27th, 2021, 11:34 am
- Location: Poland
Re: Currency USDPLN
Hi
In euphoria, I forgot about one more.
Windows 8.1(C) appears in the HDD1 display
Can this be changed to Windows 10(C)?
Sorry
In euphoria, I forgot about one more.
Windows 8.1(C) appears in the HDD1 display
Can this be changed to Windows 10(C)?
Code: Select all
[Rainmeter]
Author=Liquid.Tension (Original Author: Janbure), modified by Tatenokai
AppVersion=14000
;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin
[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=
;End of added Metadata
[Variables]
@include=#SKINSPATH#\Newspaper\UserVariables.inc
fontColor.Text=0,0,0
FontName=Segoe UI
FontHeight=12
AntiAlias=1
;===========================================
; HDD Meter
;===========================================
[Mse_DriveUsed]
Measure=FreeDiskSpace
Drive="#Drive1#:"
InvertMeasure=1
[Mse_DriveFree]
Measure=FreeDiskSpace
Drive="#Drive1#:"
[Mse_DriveSize]
Measure=FreeDiskSpace
Drive="#Drive1#:"
Total=1
[MeterLabelHDD1]
Meter=STRING
MeasureName=Mse_DriveUsed
X=5
Y=-5
FontColor=0,0,0
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
Text="#Drive1Name#"
AntiAlias=1
;y5
[MeterUsedHDD1Text%]
MeasureName=Mse_DriveUsed
Meter=STRING
X=5
Y=20r
FontColor=0,0,0,200
FontSize=11
StringAlign=LEFT
StringStyle=BOLD
FontFace=#FontName#
Text="%1%"
Percentual=1
AntiAlias=1
AutoScale=1
[MeterUsedHDD1BarBack]
Meter=IMAGE
X=73r
Y=6r
W=140
H=10
ImageName=#SKINSPATH#Newspaper\HDD\bar.png
ImageAlpha=110
[MeterUsedHDD1Bar]
Meter=BAR
MeasureName=Mse_DriveUsed
X=2r
Y=2r
W=140
H=10
BarImage=#SKINSPATH#Newspaper\HDD\bar_fill.png
BarOrientation=Horizontal
ImageAlpha=200
[MeterUsedHDD1Text]
MeasureName=Mse_DriveUsed
MeasureName2=Mse_DriveSize
Meter=STRING
X=220
Y=30
FontColor=0,0,0
FontSize=8
StringAlign=Right
FontFace=#FontName#
Text="(%1B used / %2B)"
AntiAlias=1
AutoScale=1
Sorry
You do not have the required permissions to view the files attached to this post.
Last edited by balala on October 28th, 2021, 6:47 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Currency USDPLN
Not having all your variables and resources it's a little bit hard to say, however I suppose the name (based on the posted screenshot, it's Windows 8.1 (C:, not Windows 8.1(C) as you say) is saved as the Drive1Name variable. Most probably it is kept into the Newspaper\UserVariables.inc file. Open that file and look for the Drive1Name=Windows 8.1 (C:) variable. If you find it, rewrite it as you want.
Just a side note: it is not a good idea to have to manually enter the name (I suppose it should be the label of the drive). If it indeed is the label, a proper FreeDiskSpace measure should be used to get the real label. However if for any reason you want to show the Windows 10 (C:) string, eneter it there. If on the other hand you want to get the real label, please let me know.
-
- Posts: 28
- Joined: October 27th, 2021, 11:34 am
- Location: Poland
Re: Currency USDPLN
Hi
It was enough to change Newspaper \ UserVariables.inc
It's OK.
Best regards
Mariusz
It was enough to change Newspaper \ UserVariables.inc
It's OK.
Best regards
Mariusz