Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1065

Feeds & Internet Data • Re: ScoreCards

$
0
0
I would be tempted to have any measures that are dependent on WebParser measure values be set to "disabled", and then have a FinishAction on the WebParser measure(s) "enable" the dependent measures. That may eliminate the starting errors.
Mostly, he does. And where he didn't have, I set up stuff accordingly in an adjusted .ini, e.g. the relevant part:

Code:

[MeasureTimezone]Measure=WebParserURL=http://worldtimeapi.org/api/ipRegExp=(?siU).*"utc_offset":"(.*):00",FinishAction=[!SetOption MeasureTime Disabled "0"][!UpdateMeasure "MeasureTime"][!SetOption MeasureOffsetDateTime Disabled "0"][!UpdateMeasure "MeasureOffsetDateTime"]Disabled=1DynamicVariables=1[MeasureTimezone1]Measure=PluginPlugin=WebParserUrl=[MeasureTimezone]StringIndex=1[MeasureTime]Measure=TimeFormat=%b %#d, %Y %#I:%M %pTimeStamp=[MeasureEventDate] TimeStampFormat=%Y-%m-%dT%H:%MDisabled=1DynamicVariables=1[MeasureOffsetDateTime]Measure=TimeTimeStamp=([MeasureTime:Timestamp] + ([MeasureTimezone1] * 3600))Format=%#m/%#d - %#I:%M %pDisabled=1DynamicVariables=1
Thing is, the timestamp in the last two measures still use references that don't have a value yet at the time of the initial skin parsing (MeasureTime is missing and creating that extra operation in formulas, by the way; MeasureEventDate is a child belonging to a previous WebParser that was previously enabled as well). That's why I thought some default / dummy values there, followed by setting the options to the actual values or formulas might be another way to deal with this. Unless one also has to !CommandMeasure the WebParsers in addition to updating their options' values.

P.S. The way he enables the measures is his own, not mine, in case you wonder.
EDIT: Quick addition of a MeasureEventDate replacement, e.g.:

Code:

[MeasureEventDate]Measure=StringString=2024-09-16T19:00Z

Statistics: Posted by Yincognito — Today, 7:47 pm



Viewing all articles
Browse latest Browse all 1065

Trending Articles