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

Feeds & Internet Data • Re: Simple Bitcoin Tracker

$
0
0
revised the bitcoin tracking code with chat gpt 4 because it was not working, (not a coder) no api key needed or anything, no idea what I'm doing but it should ... maybe not keep breaking anymore with this code. essentially told chatgpt to load the page and have the code visualize the numbers and print them as text rather than whatever it was doing, seems to have gotten around the issue of it only displaying the first value, refreshes on a 60 second timer

Code:

License=GPLv3[Rainmeter]Update=1000 ; This updates the skin every secondAccurateText=1[Metadata]Name=Bitcoin TrackerAuthor=DeofolVersion=1.0Information=Displays the current Bitcoin price in USD.[Variables]fontName=Comic Sans MStextSize=20textSizeLarge=24colorText=255,255,255,205width=300height=200URL=https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usdRegExp="bitcoin\":\{\"usd\":([\d.]+)"[MeasureJSON]Measure=PluginPlugin=WebParserURL=#URL#RegExp=#RegExp#UpdateRate=60 ; This makes the WebParser measure update every 60 secondsDynamicVariables=1FinishAction=[!UpdateMeasure MeasureBitcoinPrice][!UpdateMeter *][!Redraw][MeasureBitcoinPrice]Measure=PluginPlugin=WebParserURL=[MeasureJSON]StringIndex=1[MeterBackground]Meter=ImageW=#width#H=#height#SolidColor=0,0,0,150[MeterTitle]Meter=STRINGX=(#width#/2)Y=20W=#width#H=30FontSize=#textSizeLarge#FontColor=#colorText#FontFace=#fontName#FontWeight=BoldStringAlign=CenterCenterAntiAlias=1Text="BITCOIN/USD"DynamicVariables=1[MeterPrice]Meter=STRINGMeasureName=MeasureBitcoinPriceX=(#width#/2)Y=60W=#width#H=#height#FontSize=#textSize#FontColor=#colorText#FontFace=#fontName#FontWeight=BoldStringAlign=CenterCenterAntiAlias=1Text="$%1"DynamicVariables=1

Statistics: Posted by MilkyMooCow — Today, 11:19 am



Viewing all articles
Browse latest Browse all 781

Trending Articles