It is currently April 19th, 2024, 9:07 am

Embeding a dynamically updating html image in a skin?

General topics related to Rainmeter.
broohaha
Posts: 3
Joined: September 27th, 2014, 7:01 pm

Embeding a dynamically updating html image in a skin?

Post by broohaha »

I trade stocks and I need to constantly keep an eye on an especially important stock index, SPY. I typically pull up an SPY chart (which updates automatically) by going to this website:

http://elite.finviz.com/quote.ashx?t=SPY&ty=c&ta=0&p=i3

It's possible to go direct to the image and skip all the other stuff on the page as well:

http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=i3&s=l

(note that the image is static now but usually updates dynamically over the course of the trading day)

My question is how I would create a rainmeter skin that lets me embed this image into a rainmeter frame which I can then adjust the "always on top", transparency, etc. features. Seems like it should be a relatively simple thing to code but in my googling I was unable to find out how to do it.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Embeding a dynamically updating html image in a skin?

Post by jsmorley »

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeasureImage]
Measure=Plugin
Plugin=WebParser
URL=http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=i3&s=l
Download=1

[MeterImage]
Meter=Image
MeasureName=MeasureImage
ImageAlpha=150
2014-09-27_152305.jpg
You do not have the required permissions to view the files attached to this post.
broohaha
Posts: 3
Joined: September 27th, 2014, 7:01 pm

Re: Embeding a dynamically updating html image in a skin?

Post by broohaha »

jsmorley wrote:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeasureImage]
Measure=Plugin
Plugin=WebParser
URL=http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=i3&s=l
Download=1

[MeterImage]
Meter=Image
MeasureName=MeasureImage
ImageAlpha=150
2014-09-27_152305.jpg
perfect, thank you!
broohaha
Posts: 3
Joined: September 27th, 2014, 7:01 pm

Re: Embeding a dynamically updating html image in a skin?

Post by broohaha »

Actually one more question - I would like to "stack" the daily chart on top of the 3-minute chart. The links to each chart are below:

http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=d&s=l
http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=i3&s=l

I tried to put together something that would work but the result only displays the daily chart, not the 3-minute chart:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeasureImage1]
Measure=Plugin
Plugin=WebParser
URL=http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=d&s=l
Download=1

[MeasureImage2]
Measure=Plugin
Plugin=WebParser
URL=http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=i3&s=l
Download=1

[MeterImage]
Meter=Image
MeasureName=MeasureImage1
MeasureName=MeasureImage2
any ideas?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Embeding a dynamically updating html image in a skin?

Post by jsmorley »

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeasureImage1]
Measure=Plugin
Plugin=WebParser
URL=http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=d&s=l
Download=1

[MeasureImage2]
Measure=Plugin
Plugin=WebParser
URL=http://elite.finviz.com/chart.ashx?t=SPY&ty=c&ta=0&p=i3&s=l
Download=1

[MeterImage1]
Meter=Image
MeasureName=MeasureImage1

[MeterImage2]
Meter=Image
MeasureName=MeasureImage2
Y=2R