It is currently November 29th, 2020, 8:03 pm

gold ticker?

Share and get help with Plugins and Addons
ElideN
Posts: 5
Joined: December 11th, 2010, 7:38 am

gold ticker?

Post by ElideN »

is there a precious metal ticker?

http://www.quote.com/us/futures/metals.action

kinda wanna use this link but it dont work with dick's stock tickers.
User avatar
jsmorley
Developer
Posts: 21552
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: gold ticker?

Post by jsmorley »

Don't know of one. Guess you could write a skin that parses that website, but unless there is an RSS or ATOM feed available, that is a recipe for failure over time. Screen scrapping a website is a bad way to go.
ElideN
Posts: 5
Joined: December 11th, 2010, 7:38 am

Re: gold ticker?

Post by ElideN »

i found 3 stock tickers but it dunno how to use these url in there.

stock ticker:
http://customize.org/rainmeter/skins/70454
http://customize.org/rainmeter/skins/61266
http://customize.org/rainmeter/skins/63619

gold and silver url:
http://www.quote.com/us/futures/chart.action?s=GC+Z0
http://www.quote.com/us/futures/chart.action?s=SI+Z0

i tried posting it where the quote would be but when i refresh the skin it turns out blank. maybe u can figure it out.
ElideN
Posts: 5
Joined: December 11th, 2010, 7:38 am

Re: gold ticker?

Post by ElideN »

my aim is elidenk

my vent is hard2own.dyndns.org 3784
shiraz07
Posts: 68
Joined: June 21st, 2009, 3:00 pm

Re: gold ticker?

Post by shiraz07 »

user8635
Posts: 1
Joined: December 6th, 2013, 9:03 pm

Re: gold ticker?

Post by user8635 »

I modded the Market Prices skin so it will track Gold (XA-USD) and Silver (XAG-USD) spot prices on it's ticker.

I couldn't attach the skin .ini file so I put it on nopaste. Just download the Market Prices skin, if you haven't yet, an open the MarketPricesB-8quotes.ini in the MarketPrices skin folder and replace it with the code from the nopaste link.

http://nopaste.info/cc4c235971.html

Enjoy!
cruelty
Posts: 4
Joined: April 20th, 2014, 6:22 pm

Re: gold ticker?

Post by cruelty »

user8635 wrote:I modded the Market Prices skin so it will track Gold (XA-USD) and Silver (XAG-USD) spot prices on it's ticker.

I couldn't attach the skin .ini file so I put it on nopaste. Just download the Market Prices skin, if you haven't yet, an open the MarketPricesB-8quotes.ini in the MarketPrices skin folder and replace it with the code from the nopaste link.

http://nopaste.info/cc4c235971.html

Enjoy!
skin just shows dow, s&p etc and gold/silver at the button, but all prices are 0
theonetrueace
Posts: 7
Joined: March 23rd, 2014, 3:23 pm

Re: gold ticker?

Post by theonetrueace »

This is a hacked up script I added too without cleaning up. It might have the stuff you are looking for...

Code: Select all

; Made by Sek0n ( Reddit: /u/Sek0n - Bitcointalk: Sek0n )
; Feel free to msg me for whatever reason.
; Donate if you feel like it, Or don't. :)
;        BTC: 1LZ3Tw5MiaeqFcU51Na4ckbxVHGT2MaPUV
;        LTC: LRZfvUrpRkQcYoig5WHnmmdT9ccdBCUJZN
;
;                                           ~Requires~
; To use this, you need to have Rainmeter and the Gnometer Suite installed.
; Rainmeter: http://rainmeter.net/cms/
; Gnometer:  http://rainmeter.net/cms/SuitesGnometer
;
;
;                                            ~Install~
; To install, just extract the zip into your Gnometer folder. (ex: C:\Users\yourname\Documents\Rainmeter\Skins\Gnometer )
;
;
;                                            ~OPTIONS~
; Currencies:
; --- Scroll down to the that exchanges section and follow the directions to change the currency there.
;
; Disable/Enable and exchange:
; --- Scroll to that exchanges section(the one near the bottom of the file) and comment each line out.
;        (To comment out a line put a semicolon at the beginning of it.)
;
; Change Color/Size:
; --- Enable the SETTINGS skin in the Gnometer folder in Rainmeter. Everything's easily changable there.
;
; Note: You may have to close Rainmeter and reopen it for some prices to show up the first time.


[Rainmeter]
Author=Sek0n
AppVersion=2003000
Update=1000
BackgroundMode=1
MiddleMouseUpAction=!Refresh

[Metadata]
Description=Displays latest BTC Market price.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.2

[Variables]
skin.Style=Horizontal
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
decimals=2



; ----------------------------------
; BitCoinCharts ----------------------------
; ----------------------------------

[MeasureMtG]
Measure=Plugin
Plugin=WebParser.dll
; Change BTCUSD to the currency of your choice.
; Example: Url=https://data.mtgox.com/api/2/BTCAUD/money/ticker_fast
; USD, AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, JPY, NZD, PLN, RUB, SEK, SGD, THB, NOK, CZK
Url=http://api.bitcoincharts.com/v1/weighted_prices.json
RegExp=(?siU)"24h": "(.*)"
UpdateRate=30

[MeasureMtGPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureMtG]
StringIndex=1

[MeasureMtGCalc]
Measure=Calc
Formula=MeasureMtGPrice*1



; ----------------------------------
; BTC-E ----------------------------
; ----------------------------------

[MeasureBTCE]
Measure=Plugin
Plugin=WebParser.dll
; Change btc_usd to the currency of your choice.
; Example: Url=https://btc-e.com/api/2/btc_rur/ticker
; btc_usd, btc_rur, btc_eur, ltc_btc, ltc_usd, ltc_rur, nmc_btc, nvc_btc, usd_rur, eur_usd, trc_btc, ppc_btc, ftc_btc
Url=https://btc-e.com/api/2/btc_usd/ticker
RegExp=(?siU)last":(.*),"buy"
UpdateRate=30

[MeasureBTCEPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBTCE]
StringIndex=1

[MeasureBTCECalc]
Measure=Calc
Formula=MeasureBTCEPrice*1



; ----------------------------------
; CampBX ---------------------------
; ----------------------------------

[MeasureCBX]
Measure=Plugin
Plugin=WebParser.dll
Url=http://campbx.com/api/xticker.php
RegExp=(?siU)Trade":"(.*)"
UpdateRate=30

[MeasureCBXPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCBX]
StringIndex=1

[MeasureCBXCalc]
Measure=Calc
Formula=MeasureCBXPrice*1



; ----------------------------------
; BitStamp -------------------------
; ----------------------------------

[MeasureBStamp]
Measure=Plugin
Plugin=WebParser.dll
Url=https://www.bitstamp.net/api/ticker/
RegExp=(?siU)"last": "(.*)", "timestamp"
UpdateRate=30

[MeasureBStampPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBStamp]
StringIndex=1

[MeasureBStampCalc]
Measure=Calc
Formula=MeasureBStampPrice*1


; ----------------------------------
; Styles ---------------------------
; ----------------------------------

@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc

[sPopup]
Hidden=0

[sTextL]
Hidden=0

[sTextL2]
W=(#skin.Width#-165)
Hidden=0

[sTextR]
W=(#skin.Width#-20)
Text="%1B/%2B"
Autoscale=1
Hidden=0

[sSeperator]
Hidden=0

; ----------------------------------
; Title
; ----------------------------------

[Line]
Meter=IMAGE
MeterStyle=sLine

[Icon]
Meter=IMAGE
MeterStyle=sIcon
;ImageName=Bitcoin.png

[Title]
Meter=STRING
MeterStyle=sTitle
;Text="Bitcoin"

[Subtitle]
Meter=STRING
MeterStyle=sSubtitle
;Text=Current Price

; ----------------------------------
; MtGox Text -----------------------
; ----------------------------------

[MeterMtGLabel]
Meter=STRING
MeterStyle=sTextL
Y=#h.Item#
Text="Bitcoin:"

[MeterMtGPrice]
MeasureName=MeasureMtGCalc
Meter=STRING
MeterStyle=sTextR
ClipString
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator1]
Meter=IMAGE
MeterStyle=sSeperator

; ----------------------------------
; CampBX Text  ---------------------
; ----------------------------------

[MeterCBXLabel]
Meter=STRING
MeterStyle=sTextL
Text="Dow Jones:"
Y=5r

[djiaparse]
Measure=Plugin
Plugin=WebParser
URL="http://www.marketwatch.com/investing/index/DJIA"
RegExp="(?siU)class=\"data bgLast\">(.*),.*<\/p"
StringIndex=1

[djiaparse2]
Measure=Plugin
Plugin=WebParser
URL="http://www.marketwatch.com/investing/index/DJIA"
RegExp="(?siU)class=\"data bgLast\">.*,(.*)<\/p"
StringIndex=1

[djiacalc]
Measure=Calc
Formula=(djiaparse*1000)+djiaparse2


[MeterCBXPrice]
MeasureName=djiacalc
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator2]
Meter=IMAGE
MeterStyle=sSeperator

; ----------------------------------
; Oil Text  ----------------------
; ----------------------------------

[MeterBTCELabel]
Meter=STRING
MeterStyle=sTextL
Text="Crude Oil:"
Y=5r

[oilparse]
Measure=Plugin
Plugin=WebParser
URL="http://www.oil-price.net/TABLE2/gen.php?lang=en"
RegExp="(?siU)<span style=\\\"color: #000000\\\">\$(.*)<\\/span>"
StringIndex=1

[oilcalc]
Measure=Calc
Formula=oilparse*1


[MeterBTCEPrice]
MeasureName=oilcalc
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator3]
Meter=IMAGE
MeterStyle=sSeperator


; ----------------------------------
; Gold Text --------------------
; ----------------------------------

[MeterBStampLabel]
Meter=STRING
MeterStyle=sTextL
Text="Gold Spot:"
Y=5r


[goldparse]
Measure=Plugin
Plugin=WebParser
URL="http://www.monex.com/liveprices"
RegExp="(?siU)Monex Spot Gold</a></td>.*<td class="numeric">(.*)</td>"
StringIndex=1
Substitute=",":""

[MeterBStampPrice]
MeasureName=goldparse
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator4]
Meter=IMAGE
MeterStyle=sSeperator


; ----------------------------------
; Silver Text --------------------
; ----------------------------------

[MeterSilverLabel]
Meter=STRING
MeterStyle=sTextL
Text="Silver Spot:"
Y=5r


[SilverParse]
Measure=Plugin
Plugin=WebParser
URL="http://www.monex.com/liveprices"
RegExp="(?siU)Monex Spot Silver</a></td>.*<td class="numeric">(.*)</td>"
StringIndex=1
Substitute=",":""

[MeterSilverPrice]
MeasureName=SilverParse
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator5]
Meter=IMAGE
MeterStyle=sSeperator


; ----------------------------------
; Silver Text --------------------
; ----------------------------------

[MeterPlatinumLabel]
Meter=STRING
MeterStyle=sTextL
Text="Platinum Spot:"
Y=5r


[PlatinumParse]
Measure=Plugin
Plugin=WebParser
URL="http://www.monex.com/liveprices"
RegExp="(?siU)Monex Spot Platinum</a></td>.*<td class="numeric">(.*)</td>"
StringIndex=1
Substitute=",":""

[MeterPlatinumPrice]
MeasureName=PlatinumParse
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator6]
Meter=IMAGE
MeterStyle=sSeperator

cruelty
Posts: 4
Joined: April 20th, 2014, 6:22 pm

Re: gold ticker?

Post by cruelty »

please see my description of problem on your deviantart page about your bitcoin ticiker.

edit: if I replace your script as per instructsions earlier in the thread, I get a similiar problem: http://gyazo.com/ce0542182bf04e3dc34313614a8ff648
cruelty
Posts: 4
Joined: April 20th, 2014, 6:22 pm

Re: gold ticker?

Post by cruelty »

theonetrueace wrote:This is a hacked up script I added too without cleaning up. It might have the stuff you are looking for...

Code: Select all

; Made by Sek0n ( Reddit: /u/Sek0n - Bitcointalk: Sek0n )
; Feel free to msg me for whatever reason.
; Donate if you feel like it, Or don't. :)
;        BTC: 1LZ3Tw5MiaeqFcU51Na4ckbxVHGT2MaPUV
;        LTC: LRZfvUrpRkQcYoig5WHnmmdT9ccdBCUJZN
;
;                                           ~Requires~
; To use this, you need to have Rainmeter and the Gnometer Suite installed.
; Rainmeter: http://rainmeter.net/cms/
; Gnometer:  http://rainmeter.net/cms/SuitesGnometer
;
;
;                                            ~Install~
; To install, just extract the zip into your Gnometer folder. (ex: C:\Users\yourname\Documents\Rainmeter\Skins\Gnometer )
;
;
;                                            ~OPTIONS~
; Currencies:
; --- Scroll down to the that exchanges section and follow the directions to change the currency there.
;
; Disable/Enable and exchange:
; --- Scroll to that exchanges section(the one near the bottom of the file) and comment each line out.
;        (To comment out a line put a semicolon at the beginning of it.)
;
; Change Color/Size:
; --- Enable the SETTINGS skin in the Gnometer folder in Rainmeter. Everything's easily changable there.
;
; Note: You may have to close Rainmeter and reopen it for some prices to show up the first time.


[Rainmeter]
Author=Sek0n
AppVersion=2003000
Update=1000
BackgroundMode=1
MiddleMouseUpAction=!Refresh

[Metadata]
Description=Displays latest BTC Market price.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.2

[Variables]
skin.Style=Horizontal
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
decimals=2



; ----------------------------------
; BitCoinCharts ----------------------------
; ----------------------------------

[MeasureMtG]
Measure=Plugin
Plugin=WebParser.dll
; Change BTCUSD to the currency of your choice.
; Example: Url=https://data.mtgox.com/api/2/BTCAUD/money/ticker_fast
; USD, AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, JPY, NZD, PLN, RUB, SEK, SGD, THB, NOK, CZK
Url=http://api.bitcoincharts.com/v1/weighted_prices.json
RegExp=(?siU)"24h": "(.*)"
UpdateRate=30

[MeasureMtGPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureMtG]
StringIndex=1

[MeasureMtGCalc]
Measure=Calc
Formula=MeasureMtGPrice*1



; ----------------------------------
; BTC-E ----------------------------
; ----------------------------------

[MeasureBTCE]
Measure=Plugin
Plugin=WebParser.dll
; Change btc_usd to the currency of your choice.
; Example: Url=https://btc-e.com/api/2/btc_rur/ticker
; btc_usd, btc_rur, btc_eur, ltc_btc, ltc_usd, ltc_rur, nmc_btc, nvc_btc, usd_rur, eur_usd, trc_btc, ppc_btc, ftc_btc
Url=https://btc-e.com/api/2/btc_usd/ticker
RegExp=(?siU)last":(.*),"buy"
UpdateRate=30

[MeasureBTCEPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBTCE]
StringIndex=1

[MeasureBTCECalc]
Measure=Calc
Formula=MeasureBTCEPrice*1



; ----------------------------------
; CampBX ---------------------------
; ----------------------------------

[MeasureCBX]
Measure=Plugin
Plugin=WebParser.dll
Url=http://campbx.com/api/xticker.php
RegExp=(?siU)Trade":"(.*)"
UpdateRate=30

[MeasureCBXPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCBX]
StringIndex=1

[MeasureCBXCalc]
Measure=Calc
Formula=MeasureCBXPrice*1



; ----------------------------------
; BitStamp -------------------------
; ----------------------------------

[MeasureBStamp]
Measure=Plugin
Plugin=WebParser.dll
Url=https://www.bitstamp.net/api/ticker/
RegExp=(?siU)"last": "(.*)", "timestamp"
UpdateRate=30

[MeasureBStampPrice]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureBStamp]
StringIndex=1

[MeasureBStampCalc]
Measure=Calc
Formula=MeasureBStampPrice*1


; ----------------------------------
; Styles ---------------------------
; ----------------------------------

@Include2=#ROOTCONFIGPATH#SETTINGS\Style#skin.Style#.inc

[sPopup]
Hidden=0

[sTextL]
Hidden=0

[sTextL2]
W=(#skin.Width#-165)
Hidden=0

[sTextR]
W=(#skin.Width#-20)
Text="%1B/%2B"
Autoscale=1
Hidden=0

[sSeperator]
Hidden=0

; ----------------------------------
; Title
; ----------------------------------

[Line]
Meter=IMAGE
MeterStyle=sLine

[Icon]
Meter=IMAGE
MeterStyle=sIcon
;ImageName=Bitcoin.png

[Title]
Meter=STRING
MeterStyle=sTitle
;Text="Bitcoin"

[Subtitle]
Meter=STRING
MeterStyle=sSubtitle
;Text=Current Price

; ----------------------------------
; MtGox Text -----------------------
; ----------------------------------

[MeterMtGLabel]
Meter=STRING
MeterStyle=sTextL
Y=#h.Item#
Text="Bitcoin:"

[MeterMtGPrice]
MeasureName=MeasureMtGCalc
Meter=STRING
MeterStyle=sTextR
ClipString
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator1]
Meter=IMAGE
MeterStyle=sSeperator

; ----------------------------------
; CampBX Text  ---------------------
; ----------------------------------

[MeterCBXLabel]
Meter=STRING
MeterStyle=sTextL
Text="Dow Jones:"
Y=5r

[djiaparse]
Measure=Plugin
Plugin=WebParser
URL="http://www.marketwatch.com/investing/index/DJIA"
RegExp="(?siU)class=\"data bgLast\">(.*),.*<\/p"
StringIndex=1

[djiaparse2]
Measure=Plugin
Plugin=WebParser
URL="http://www.marketwatch.com/investing/index/DJIA"
RegExp="(?siU)class=\"data bgLast\">.*,(.*)<\/p"
StringIndex=1

[djiacalc]
Measure=Calc
Formula=(djiaparse*1000)+djiaparse2


[MeterCBXPrice]
MeasureName=djiacalc
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator2]
Meter=IMAGE
MeterStyle=sSeperator

; ----------------------------------
; Oil Text  ----------------------
; ----------------------------------

[MeterBTCELabel]
Meter=STRING
MeterStyle=sTextL
Text="Crude Oil:"
Y=5r

[oilparse]
Measure=Plugin
Plugin=WebParser
URL="http://www.oil-price.net/TABLE2/gen.php?lang=en"
RegExp="(?siU)<span style=\\\"color: #000000\\\">\$(.*)<\\/span>"
StringIndex=1

[oilcalc]
Measure=Calc
Formula=oilparse*1


[MeterBTCEPrice]
MeasureName=oilcalc
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator3]
Meter=IMAGE
MeterStyle=sSeperator


; ----------------------------------
; Gold Text --------------------
; ----------------------------------

[MeterBStampLabel]
Meter=STRING
MeterStyle=sTextL
Text="Gold Spot:"
Y=5r


[goldparse]
Measure=Plugin
Plugin=WebParser
URL="http://www.monex.com/liveprices"
RegExp="(?siU)Monex Spot Gold</a></td>.*<td class="numeric">(.*)</td>"
StringIndex=1
Substitute=",":""

[MeterBStampPrice]
MeasureName=goldparse
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator4]
Meter=IMAGE
MeterStyle=sSeperator


; ----------------------------------
; Silver Text --------------------
; ----------------------------------

[MeterSilverLabel]
Meter=STRING
MeterStyle=sTextL
Text="Silver Spot:"
Y=5r


[SilverParse]
Measure=Plugin
Plugin=WebParser
URL="http://www.monex.com/liveprices"
RegExp="(?siU)Monex Spot Silver</a></td>.*<td class="numeric">(.*)</td>"
StringIndex=1
Substitute=",":""

[MeterSilverPrice]
MeasureName=SilverParse
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator5]
Meter=IMAGE
MeterStyle=sSeperator


; ----------------------------------
; Silver Text --------------------
; ----------------------------------

[MeterPlatinumLabel]
Meter=STRING
MeterStyle=sTextL
Text="Platinum Spot:"
Y=5r


[PlatinumParse]
Measure=Plugin
Plugin=WebParser
URL="http://www.monex.com/liveprices"
RegExp="(?siU)Monex Spot Platinum</a></td>.*<td class="numeric">(.*)</td>"
StringIndex=1
Substitute=",":""

[MeterPlatinumPrice]
MeasureName=PlatinumParse
Meter=STRING
MeterStyle=sTextR
ClipString=0
AutoScale=0
Text="%1"
NumOfDecimals=#DECIMALS#

[Seperator6]
Meter=IMAGE
MeterStyle=sSeperator

so now with gnometer properly installed and bitcointicker working, the hacked script you posted still unfortunately doesn't work.

I've replaced MarketPricesB-8quotes.ini with your code. When loading skin it doesn't appear. Same when I made a new folder in rainmeter\skin and created a .ini with your code.

please provide install instructions.

edit: but ofc, file needs to be placed in subfolder of gnometer, cheers!