Tucsky / aggr

Cryptocurrency trades aggregator
https://charts.aggr.trade/
GNU General Public License v3.0
855 stars 244 forks source link

Use "embed website" pane's +/- scale buttons to change simple image scale #215

Closed VanessaE closed 2 years ago

VanessaE commented 2 years ago

In one of the panes of my layout, I have the Fear & Greed Index, in particular their main image, which they provide a direct link to for embedding purposes.

The URL of interest is https://alternative.me/crypto/fear-and-greed-index.png

As you can see, this is merely a simple PNG image file, not part of any kind of size-responsive webpage. Unfortunately, it only comes in one large size, which aggr displays at 100%, regardless of the scale set by the +/- buttons, so most of it ends up out of frame on my layout, thus:

image

It would be very useful if the aforementioned scale buttons could apply to this image (provided one is linking directly to an image file, as I am).

Incidentally, since that's just a simple image, the F&G website expects the user to periodically reload it to get updates, but to do that here requires reloading the whole v3.aggr.trade webpage (which means a bandwidth cost, I'm sure), so maybe it would also be a good idea to add an option to the "embed" pane to reload it every so often, without involving reloading the whole web page.

Database/layout file: aggr-lrnm.txt

Tucsky commented 2 years ago

2022-05-11 13 01 02

Very useful 👍🏼

VanessaE commented 2 years ago

yay! 🥳