It is currently March 29th, 2024, 10:55 am

WebParser

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

WebParser

Post by LaRubia »

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: 908
Joined: December 30th, 2015, 9:47 am

Re: WebParser

Post by mak_kawa »

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

Re: WebParser

Post by LaRubia »

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: 660
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: WebParser

Post by raiguard »

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: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: WebParser

Post by balala »

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