It is currently February 23rd, 2024, 5:00 am

Rainmeter plugin cryptocurrency tracking widget

General topics related to Rainmeter.
donaldusry
Posts: 1
Joined: January 30th, 2024, 11:11 am

Rainmeter plugin cryptocurrency tracking widget

Post by donaldusry »

Greetings,

I have been using a script to track cryptocurrencies, but it seems to have stopped working for the past two days (Crypto market capgeometry dash subzero).

I am wondering if there is a way to incorporate widgets, like the ones found on various websites, into the Rainmeter plugin. The widgets I am referring to have the following code:

Code: Select all

<script src="https://widgets.coingecko.com/coingecko-coin-market-ticker-list-widget.js"></script>
<coingecko-coin-market-ticker-list-widget coin-id="bitcoin" currency="usd" locale="fr"></coingecko-coin-market-ticker-list-widget>
I would greatly appreciate any assistance you can provide. Thank you in advance.
Last edited by donaldusry on January 31st, 2024, 1:41 am, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16007
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Rainmeter plugin cryptocurrency tracking widget

Post by balala »

donaldusry wrote: January 30th, 2024, 11:13 am I am wondering if there is a way to incorporate widgets, like the ones found on various websites, into the Rainmeter plugin. The widgets I am referring to have the following code:
I didn't enter too deeply in this question, but what I think is you should try to get information from the provided URL (https://widgets.coingecko.com/coingecko-coin-market-ticker-list-widget.js) using WebParser measures. If you do this, you can show the information into your skin.
If you don't know how to do this, you can get assistance here, just let us know first if this is what you want to do, because "incorporate widgets" doesn't make too much sense.
User avatar
Yincognito
Rainmeter Sage
Posts: 6781
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Rainmeter plugin cryptocurrency tracking widget

Post by Yincognito »

donaldusry wrote: January 30th, 2024, 11:13 am Greetings,

I have been using a script to track cryptocurrencies, but it seems to have stopped working for the past two days (Crypto market cap).

I am wondering if there is a way to incorporate widgets, like the ones found on various websites, into the Rainmeter plugin. The widgets I am referring to have the following code:

Code: Select all

<script src="https://widgets.coingecko.com/coingecko-coin-market-ticker-list-widget.js"></script>
<coingecko-coin-market-ticker-list-widget coin-id="bitcoin" currency="usd" locale="fr"></coingecko-coin-market-ticker-list-widget>
I would greatly appreciate any assistance you can provide. Thank you in advance.
The .js script doesn't help at all in this case, and cannot be used since it's just a bunch of Javascript functions that are meant to manipulate the widgets you mentioned and don't contain any data nor can be used by Rainmeter in a meaningful way. There are two choices here:
- you can try to scrape the site that provides the desired data using WebParser measures and replicate its appearance as a Rainmeter skin using meters
- you can use the WebView plugin for Rainmeter to directly display such webpages into a Rainmeter skin (this will limit a bit your control over the skin)
Either way, the details you posted are insufficient and such an "incorporation" is not exactly as you think it is. You can't just "plug in" stuff made for other platforms into Rainmeter, you have to work a little bit to retrieve and display what you need in a way that Rainmeter can handle. In that sense, we can help with samples or advice so you can understand how to do it, but will not do that work for you.

In this specific case, you'd probably want to use the URL and other options of a WebParser measure to scrape https://www.coingecko.com/ (basically, using regular expressions to find and extract the desired data from that site's page source). Depending on the desired amount of data, it can become a slightly more complex or lengthy process. You'd probably want to make the visuals of the skin match the widget at https://www.coingecko.com/en/widgets/coin_market_ticker_list_widget or make it look even better.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth