It is currently September 17th, 2021, 12:33 pm

simple Bitcoins widget

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
haicim
Posts: 3
Joined: March 3rd, 2011, 12:32 pm

simple Bitcoins widget

Post by haicim »

for gnometer,
shows current sell value of 1 BTC, and a calculated value of [x number of coins * current btc].
uses mtgox, eg https://mtgox.com/api/1/BTCAUD/ticker
no need to login to anything at all, which I prefer.
and this is how it looks:
Image

variables, change to suit:
MYCOINS="12.123456"
how many coins you have.

CURRENCY="AUD"
your preferred currency (USD, AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, JPY, NZD, PLN, RUB, SEK, SGD, THB)

DECIMALS="2"
can be up to 6

Code: Select all

[Rainmeter]
Author=haicim
AppVersion=1003000
Update=1000
MouseActionCursor=0
MiddleMouseDownAction=!RainmeterDeactivateConfig
BackgroundMode=1

[Metadata]
Name=Bitcoins
Description=Shows bitcoin prices [mtgox].
Instructions=To change currency see the variables section. | Find this useful? Let me know! | Donate Bitcoins: | 1Fw7oypaYeXDKpkJTFFjns9UGf21NMvMcV
Version=1.3.0
License=Creative Commons BY-NC-SA 3.0

[Variables]
skin.Style=Horizontal
@Include=#ROOTCONFIGPATH#SETTINGS\Variables.inc
skin.Width=#width.Weather#


;variables to change:

;How many bitcoins you own:
MYCOINS="12.123456"

;currency symbols: USD, AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, JPY, NZD, PLN, RUB, SEK, SGD, THB
CURRENCY="AUD"

;up to 6
DECIMALS="2"

;thats it.



; MEASURES ====================================

[mtgox]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=1200
Url=https://mtgox.com/api/1/BTC#CURRENCY#/ticker
RegExp="(?siU)sell":{"value":"(.*)","value_int

[mtgox.value1]
Measure=Plugin
Plugin=WebParser.dll
Url=[mtgox]
StringIndex=1

[mtgox.value2]
Measure=Calc
Formula=mtgox.value1*1

[mtgox.value3]
Measure=Calc
Formula=mtgox.value1*#MYCOINS#
DynamicVariables=1


; STYLES ======================================

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

; METERS ======================================

[Line]
Meter=IMAGE
MeterStyle=sLine

[Icon]
Meter=IMAGE
MeterStyle=sIcon
ImageName="3200.png"

[Title]
Meter=STRING
MeterStyle=sTitle
Text=Bitcoins

[Subtitle]
Meter=STRING
MeterStyle=sSubtitle
MeasureName=mtgox.value2
Text="1 BTC  %1 #CURRENCY#"
NumOfDecimals=#DECIMALS#

[Subtitle2]
Meter=STRING
MeterStyle=sSubtitle
MeasureName=mtgox.value3
y=16r
DynamicVariables=1
Text="Total  %1 #CURRENCY#"
NumOfDecimals=#DECIMALS#
donate? :thumbup: 1Fw7oypaYeXDKpkJTFFjns9UGf21NMvMcV
You do not have the required permissions to view the files attached to this post.