omaha wrote:Can u do (.rmskin) please ?
No, certainly I can't and don't want! As arty_fish wrote above:
https://forum.rainmeter.net/viewtopic.php?p=49194#p49194
But I'll try to help, to create it together.
So, first we'll need a URL to get the exchange rates. For a such task, I used once a xml provided by the European Central Bank:
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml
Because on this URL you get an xml, it'll be easy to work with. We'll read the exchange rates for the last five trading dates.
Now, the following code will read those rates, showing them as a table. The graph is not yet created (this will be the next step):
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
Curreny=USD
[MeasureDatesCurrencies]
Measure=Plugin
Plugin=WebParser
UpdateRate=1800
Url=http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml
RegExp="(?siU)</gesmes:Sender><Cube><Cube time="(.*)">.*<Cube currency="#Curreny#" rate="(.*)"/>.*<Cube time="(.*)">.*<Cube currency="#Curreny#" rate="(.*)"/>.*<Cube time="(.*)">.*<Cube currency="#Curreny#" rate="(.*)"/>.*<Cube time="(.*)">.*<Cube currency="#Curreny#" rate="(.*)"/>.*<Cube time="(.*)">.*<Cube currency="#Curreny#" rate="(.*)"/>"
[MeasureDate1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=1
[MeasureCurrency1]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=2
[MeasureDate2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=3
[MeasureCurrency2]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=4
[MeasureDate3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=5
[MeasureCurrency3]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=6
[MeasureDate4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=7
[MeasureCurrency4]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=8
[MeasureDate5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=9
[MeasureCurrency5]
Measure=Plugin
Plugin=WebParser
Url=[MeasureDatesCurrencies]
StringIndex=10
[MeterCurrency]
MeasureName=MeasureDate1
MeasureName2=MeasureCurrency1
MeasureName3=MeasureDate2
MeasureName4=MeasureCurrency2
MeasureName5=MeasureDate3
MeasureName6=MeasureCurrency3
MeasureName7=MeasureDate4
MeasureName8=MeasureCurrency4
MeasureName9=MeasureDate5
MeasureName10=MeasureCurrency5
Meter=STRING
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1 %2#CRLF#%3 %4#CRLF#%5 %6#CRLF#%7 %8#CRLF#%9 %10
A great advantage of this approach is that changing the Currency variable, can easily show the exchange rate of any other traded currency.
Now, please take a look at this code and tell me what you think, will this meet your needs?