It is currently September 21st, 2019, 5:32 am

WebParser

Help with creating, editing & fixing problems with skins
LaRubia
Posts: 2
Joined: April 20th, 2019, 9:40 am

WebParser

LaRubia » April 20th, 2019, 10:01 am

Hello!
I have a problem with this plugin. I have the URL of an image that is updated every so often (it's a radar image to see the time). But I do not get it. If someone can help me, please ...
This is my skin (it's very simple but it does not show me the image of the web):
_________________________
[Rainmeter]
Update=900

[Variables]
URL=https://es.sat24.com/image?type=visual5Complete&region=sp&timestamp

[RadarMeasure]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#URL#
Download=1
FinishAction=!RainmeterRedraw

[MeterMaskedImage]
Meter=Image
MeasureName=RadarMeasure
W=845
H=615
ImageTint=90,104,113
_________________________

Thank you!!!
mak_kawa
Posts: 244
Joined: December 30th, 2015, 9:47 am

Re: WebParser

mak_kawa » April 20th, 2019, 10:50 am

Add following line to [RadarMeasure].
DownloadFile=image.jpg
LaRubia
Posts: 2
Joined: April 20th, 2019, 9:40 am

Re: WebParser

LaRubia » April 20th, 2019, 11:08 am

mak_kawa wrote:
April 20th, 2019, 10:50 am
Add following line to [RadarMeasure].
DownloadFile=image.jpg
Wow that's cool!!
I've been trying to solve it for days! Many thanks and especially for the speed.

Thanks greetings
User avatar
raiguard
Posts: 642
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: WebParser

raiguard » April 20th, 2019, 4:19 pm

As an aside, using the Rainmeter prefix on bangs is no longer necessary (as of several years ago). So you could replace the line with this:

FinishAction=[!Redraw]
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017
User avatar
balala
Rainmeter Sage
Posts: 8631
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: WebParser

balala » April 20th, 2019, 9:25 pm

And beside raiguard's comment, two other details:
  • Update=900? Why? Usually on most skins the default Update=1000 is the best choice. On skins using WebParser measure, even more. In such cases it is almost forbidden to change the default update. The skin will work, even if you're using other update, but this can cause headache. Doesn't worth.
  • Although a while ago WebParser was a plugin, now it is an internal measure. So, you don't have to use both the Measure and the Plugin options on the [RadarMeasure] measure, but a simple Measure=WebParser. So, the measure, instead of this:

    Code: Select all

    [RadarMeasure]
    Measure=Plugin
    Plugin=Plugins\WebParser.dll
    Url=#URL#
    Download=1
    DownloadFile=image.jpg
    FinishAction=!Redraw
    should look like:

    Code: Select all

    [RadarMeasure]
    Measure=WebParser
    Url=#URL#
    Download=1
    DownloadFile=image.jpg
    FinishAction=!Redraw