It is currently April 27th, 2024, 8:32 am

How to incorporate widgets into Rainmeter plugin

General topics related to Rainmeter.
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to incorporate widgets into Rainmeter plugin

Post by Yincognito »

LeonelMetz wrote: January 12th, 2024, 7:29 am I have been using a script to track cryptocurrency prices, specifically the Crypto market cap, but it has stopped working for the past two days. I was wondering if there is a way to incorporate the widgets commonly found on various websites into Rainmeter plugin. The widget code typically appears like this:

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 appreciate any assistance or guidance regarding this matter. Thank you in advance!
I don't think using (javascript) parts of ever changing sites is feasible or possible in a Rainmeter plugin, but alternatively, you could use khanhas' WebView plugin to display the webpage at some specific address itself (similar to having the browser on that page in a Rainmeter skin):
https://forum.rainmeter.net/viewtopic.php?t=39233
Obviously, this will have some limitations in terms of usability as a classic Rainmeter skin, but it will bring such widgets in the skin. It will be your decision whether you'll find it acceptable or not.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
tass_co
Posts: 518
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: How to incorporate widgets into Rainmeter plugin

Post by tass_co »

LeonelMetz wrote: January 12th, 2024, 7:29 am I have been using a script to track cryptocurrency prices, specifically the Crypto market cap, but it has stopped working for the past two days. I was wondering if there is a way to incorporate the widgets commonly found on various websites into Rainmeter plugin. The widget code typically appears like this:

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 appreciate any assistance or guidance regarding this matter. Thank you in advance!
If you don't insist on using scripts, there is another way.

There are a few links below. They use to Webparser plugin

https://forum.rainmeter.net/viewtopic.php?f=27&t=26610

https://forum.rainmeter.net/viewtopic.php?p=140458&hilit=crypto#p140458
I don't know where i going from here, but i promise it won't be boring... :great: