It is currently April 20th, 2024, 4:37 pm
Display image from web
-
- Posts: 13
- Joined: November 11th, 2017, 3:06 am
Re: Display image from web
That was the issue. I completely restarted rainmeter and it started working.
-
- Rainmeter Sage
- Posts: 16150
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Display image from web
This is a known issue of WebParser measures: https://forum.rainmeter.net/viewtopic.php?f=5&t=26117&p=136507&p136507#p136507
Glad you got it working.
-
- Posts: 13
- Joined: November 11th, 2017, 3:06 am
Re: Display image from web
One follow up question. Everything is working now, but I'd like to disable updating if I'm not looking at it. Ideally, triggered by screen idle time, screen saver, screen off, screen lock, or just setting a time frame. Is there any way to accomplish this?
-
- Rainmeter Sage
- Posts: 16150
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Display image from web
Not sure I follow. There is a WebParser measure, which downloads the image ([MeasureImage]). Would you like to update this measure only when one of the mentioned events happens? Please give me a few details on what would you like to accomplish.
-
- Posts: 13
- Joined: November 11th, 2017, 3:06 am
Re: Display image from web
Right now it is set to update every 10min. IDEALLY, I would only like it to be updating every 10min while I am sitting at the computer. When it is idle, screen idle, saver, off, locked, or at night, I'd like it to pause the update
-
- Rainmeter Sage
- Posts: 16150
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Display image from web
Ah, I see now.
So, here is an extremely simple workaround. You need to add the following measure:
Code: Select all
[MeasureIdle]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IDLE_TIME
You have to figure out the number of seconds after which if the computer is idle, the WbParser measure won't be updated. Add the following options to the above [MeasureIdle] measure:The time in seconds since the last mouse or keyboard input to the operating system.
Code: Select all
[MeasureIdle]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IDLE_TIME
IfCondition=(#CURRENTSECTION#>60)
IfTrueAction=[!SetOption MeasureImage UpdateRate "86400"][!UpdateMeasure "MeasureImage"]
IfFalseAction=[!SetOption MeasureImage UpdateRate "600"][!UpdateMeasure "MeasureImage"]
Feel free to modify the above values, if needed.
Is this alright now?
-
- Posts: 13
- Joined: November 11th, 2017, 3:06 am
Re: Display image from web
AH, I didn't know about the conditional statements in rainviewer. I did see the IDLE plugin. This sounds like a good path, I'll try it out and play around with it.
Thanks!
Thanks!
-
- Rainmeter Sage
- Posts: 16150
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Display image from web
https://docs.rainmeter.net/manual-beta/measures/general-options/ifconditions/
Such a plugin doesn't exist in fact. Actually it is the SysInfo plugin, with the SysInfoType=IDLE_TIME option.
Ok, just please let me know when you check ot, if it is what you need for.