Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1572

Feeds & Internet Data • Re: Market Prices

$
0
0
With my 6 stocks watchlist now I still get 6 times Calc: Extra operation in the error log!
I can't stand nasty niggling error messages in the log either.

So as Syd Barret wrote for The Piper at the Gates of Dawn "Let’s try it another way..."

1) In StockSymbols.inc

Code:

Label-1="-"Symbol1=.DJIDecPlaces1=1Label-2="-"Symbol2=.FTSEDecPlaces2=2Label-3="-"Symbol3=1CG-AUDecPlaces3=3etc. etc.
2) In MarketPrices.ini

Code:

[mIndex1_Price]Measure=WebParserUrl=[InfoIndex1]StringIndex=2;-- set the Decimal PlacesRegExpSubstitute=1Substitute="(.*\.\d{#DecPlaces1#})\d*":"\1" , "\.$":""...[LabelPrice1]Meter=STRINGMeasureName=mIndex1_PriceMeterStyle= sTextRight | sColorSetGrayx=#Col2XPos#
3) In MetMeaTemplate.inc

Code:

[mIndex^1^_Price]Measure=WebParserUrl=[InfoIndex^1^]StringIndex=2;-- set the Decimal PlacesRegExpSubstitute=1Substitute="(.*\.\d{#DecPlaces^1^#})\d*":"\1" , "\.$":""...[LabelPrice_^1^]Meter=STRINGMeasureName=mIndex^1^_PriceMeterStyle= sTextRight | sColorSetGrayx=#Col2XPos#
Much simpler and no more error messages. However, the Substitute will not round the price up correctly as the lua script did.

"...Free games for May, See Emily play"

Statistics: Posted by Mordasius — Today, 6:57 am



Viewing all articles
Browse latest Browse all 1572

Trending Articles