It is currently January 22nd, 2022, 5:49 am

Show image from url

Help with creating, editing & fixing problems with skins
fudio101
Posts: 2
Joined: January 14th, 2022, 11:28 am

Show image from url

Post by fudio101 »

I am trying to create a weather widget using https://wttr.in/ page and get png images from there. But I can't display the image on the desktop.
This is my code:

Code: Select all

[MeasureImageDownload]
Measure=Plugin
Plugin=WebParser
Url=https://wttr.in/T%C3%A2y%20S%C6%A1n_0tqp_transparency=150.png
Download=1
DownloadFile=current.jpg
UpdateDivider=15

[MeterImage]
Meter=Image
MeasureName=MeasureImageDownload
DynamicVariables=1
User avatar
jsmorley
Developer
Posts: 22450
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Show image from url

Post by jsmorley »

Not sure. It works fine for me...

Code: Select all

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

[Variables]

[MeasureImageDownload]
Measure=Plugin
Plugin=WebParser
Url=https://wttr.in/T%C3%A2y%20S%C6%A1n_0tqp_transparency=150.png
Download=1
DownloadFile=current.jpg
UpdateDivider=15

[MeterImage]
Meter=Image
MeasureName=MeasureImageDownload
DynamicVariables=1

1.png


Try restarting Rainmeter.
You do not have the required permissions to view the files attached to this post.
fudio101
Posts: 2
Joined: January 14th, 2022, 11:28 am

Re: Show image from url

Post by fudio101 »

jsmorley wrote: January 14th, 2022, 11:42 am Not sure. It works fine for me...

Code: Select all

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

[Variables]

[MeasureImageDownload]
Measure=Plugin
Plugin=WebParser
Url=https://wttr.in/T%C3%A2y%20S%C6%A1n_0tqp_transparency=150.png
Download=1
DownloadFile=current.jpg
UpdateDivider=15

[MeterImage]
Meter=Image
MeasureName=MeasureImageDownload
DynamicVariables=1


1.png



Try restarting Rainmeter.
Yep. I don't know but this don't work with portable version. Im reinstall Rainmeter
User avatar
Active Colors
Moderator
Posts: 952
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Show image from url

Post by Active Colors »

fudio101 wrote: January 14th, 2022, 11:57 am Yep. I don't know but this don't work with portable version. Im reinstall Rainmeter
Navigate to system tray,
Click right mouse button on Rainmeter icon,
Choose "About"
it will open the Log tab which should show problems with your skin.
What errors do you see there?


IMPORTANT: Make sure all the options on the bottom of this window are chosen: Error, Warning, Notice, Debug.
If any of the options were not chosen, then: choose them, refresh your skin, and check the log again - now it should show what problem you are getting with your skin.
User avatar
balala
Rainmeter Sage
Posts: 13719
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Show image from url

Post by balala »

fudio101 wrote: January 14th, 2022, 11:33 am I am trying to create a weather widget using https://wttr.in/ page and get png images from there. But I can't display the image on the desktop.
Most probably if the code doesn't have further meters, when you refresh / activate the skin its size is 0 (before the WebPareser measure gets the image). When the WebParser measure downloads the image, the skin is not resized to properly show the image.
To fix this try to add a DynamicWindowSize=1 option to the [Rainmeter] section.

Additional note: even if a while ago WebPasre was a plugin, in meantime it became an internal measure and should be used accordingly. So replace the Measure=Plugin / Plugin=WebParser option pair of the [MeasureImageDownload] measure with the single Measure=WebParser option.