Code: Select all
[Rainmeter]
Update=20
DefaultUpdateDivider=50
AccurateText=1
DynamicWindowSize=1
[Metadata]
Name=NewsFeed Reader (Marquee)
Author=Youkai1977
Version=03-21.V1 <> 30.03.2021
Information=This Meter is a Part of M.A.R.S.- 2021 Skin Package
License=Creative Commons Attribution-Non-Commercial-Share Alike 4.0
;==================================================
;=== VARIABLES & STYLES ===========================
;==================================================
[Variables]
@include=newsfeeddata.inc
;==============================================================
;=== VOICE OUTPUT =============================================
;==============================================================
;=== ==
;=== FOR MORE INFO TO SPEECH-PLUGIN ==
;=== https://forum.rainmeter.net/viewtopic.php?f=127&t=31161 ==
;=== ==
;==============================================================
[VoiceOutput]
Measure=PLUGIN
Plugin=Speech
Name=#VoiceName#
;Index=#IndexName#
;Gender=#VoiceGender#
Debug=#DebugModus#
Volume=#VoiceVolume#
Rate=#SpeechRate#
UpdateDivider=-1
;==================================================
;=== MEASURES NEWS FEED & MARQUEE =================
;==================================================
;=== MEASURES NEWS FEED ===========================
[mRSS]
Measure=WEBPARSER
URL=#RSSUrl#
RegExp=(?siU)<lastBuildDate>(.*)</lastBuildDate>.*<description>(.*)</description>#NF1#(?(?=.*<item)#NF2##NF3##NF4##NF5#)
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
DecodeCharacterReference=3
UpdateRate=1200
StringIndex=1
Debug=1
OnChangeAction=[!EnableMeasureGroup mCHILDS][!UpdateMeasure mNFRUpdateTime][!SetOption HEADNAME FontColor "#Color4##Alpha1#"][!UpdateMeter HEADNAME][!ShowMeter HEADNAME][!UpdateMeterGroup FEED][!Redraw]
FinishAction=[!EnableMeasure mLBTSF][!UpdateMeasure mLBTSF][!UpdateMeterGroup FEED][!Redraw][!CommandMeasure VoiceOutput "#NewsUpdSpeech#"][!ShowMeter NewsFeed][!EnableMeasure mXPos][!UpdateMeasure mXPos][!Delay 4000][!SetOption HEADNAME FontColor "#Color3##Alpha1#"][!UpdateMeter HEADNAME][!Redraw]
[mRSSNPN]
Measure=WEBPARSER
URL=[mRSS]
StringIndex=2
Disabled=1
Group=mCHILDS
[mRSSItem1]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=3
Disabled=1
Group=mCHILDS
[mRSSItem2]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=4
Disabled=1
Group=mCHILDS
[mRSSItem3]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=5
Disabled=1
Group=mCHILDS
[mRSSItem4]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=6
Disabled=1
Group=mCHILDS
[mRSSItem5]
Measure=WEBPARSER
URL=[mRSS]
Substitute="'":"'",""":"","&Quot;":"","&":"&","<br>":"","![CDATA[":"","]]":"","...":"","<":"",">":"","/PRE>":"","PRE>":"","<":"","'":"'","ä":"ä","ö":"ö","–":"–"
StringIndex=7
Disabled=1
Group=mCHILDS
;=== MEASURE NFR-SKIN-UPDATE TIME STAMP (mNFRUT) ==
;=== MEASURE NFR-SITE-BUILD TIME STAMP (mLBTSF) ==
[mNFRUT]
Measure=TIME
Format=%d.%m.%Y [\x00B7] %H:%M:%S
TimeStampLocale=#TSL#
FormatLocale=#FL#
UpdateDivider=-1
Disabled=1
Group=mCHILDS
[mLBTSF]
Measure=TIME
Format=%d.%m.%Y [\x00B7] %H:%M:%S
TimeStamp=[mRSS]
TimeStampFormat=%a, %d %b %Y %H:%M:%S GMT
DynamicVariables=1
Disabled=1
;=== MEASURE MARQUEE FUNCTION =====================
[mXPos]
Measure=LOOP
StartValue=#StartPos#
EndValue=-[NewsFeed:W]
Increment=#Direction#
LoopCount=0
DynamicVariables=1
UpdateDivider=1
Disabled=1
;##################################################
;##################################################
;##################################################
;##################################################
;##################################################
;##################################################
;==================================================
;=== LAYER POS. & LAST NFR-UPD LINE ===============
;==================================================
[LAYERxPosText]
Meter=STRING
MeterStyle=StLAYER
X=0
Y=0
[NFRUpdText]
Meter=STRING
MeterStyle=StNFRUPDATE
X=200
Y=r
;==================================================
;=== HEAD NEWS FEED READER (Side Lines) ===========
;==================================================
[HEADLINES]
Meter=SHAPE
X=0
Y=20
Shape=Rectangle 0,0,8,8 | Extend ModifiersS1
Shape2=Line 8,4,26,4 | Extend ModifiersL1
Shape3=Rectangle 26,0,8,8 | Extend ModifiersS1
;-----
Shape4=Rectangle 0,16,8,8 | Extend ModifiersS2
Shape5=Line 8,20,26,20 | Extend ModifiersL2
Shape6=Rectangle 26,16,8,8 | Extend ModifiersS2
;-----
Shape7=Rectangle ([HEADNAME:W] + 48),0,8,8 | Extend ModifiersS1
Shape8=Rectangle ([HEADNAME:W] + 48),0,8,8 | Extend ModifiersS1
Shape9=Rectangle ([HEADNAME:W] + 48),16,8,8 | Extend ModifiersS2
Shape10=Rectangle ([HEADNAME:W] + 48),16,8,8 | Extend ModifiersS2
;-----
Shape11=Rectangle 872,0,8,8 | Extend ModifiersS1
Shape12=Line 854,4,872,4 | Extend ModifiersL1
Shape13=Rectangle 846,0,8,8 | Extend ModifiersS1
;-----
Shape14=Rectangle 872,16,8,8 | Extend ModifiersS2
Shape15=Line 854,20,872,20 | Extend ModifiersL2
Shape16=Rectangle 846,16,8,8 | Extend ModifiersS2
ModifiersS1=StrokeWidth 0 | Fill Color #Color3##Alpha2#
ModifiersL1=StrokeWidth 2 | StrokeColor #Color3##Alpha2#
ModifiersS2=StrokeWidth 0 | Fill Color #Color3##Alpha1#
ModifiersL2=StrokeWidth 2 | StrokeColor #Color3##Alpha1#
DynamicVariables=1
UpdateDivider=-1
Group=FEED
[HEADNAME]
Meter=STRING
MeterStyle=StHEAD
X=41
Y=r
MouseOverAction=[!SetOption HEADNAME FontColor "#Color4##Alpha1#"][!UpdateMeter HEADNAME][!Redraw]
MouseLeaveAction=[!SetOption HEADNAME FontColor "#Color3##Alpha1#"][!UpdateMeter HEADNAME][!Redraw]
LeftMouseUpAction=[#vURL#]
;==================================================
;=== MARQUEE NEWS FEED READER =====================
;==================================================
;=== CONTAINER NEWS FEED ==========================
[CONTAINER_NFR]
Meter=SHAPE
X=0
Y=r
Shape=Line ([HEADNAME:W] + 63),0,839,0 | StrokeWidth 47 | StrokeColor #Color0##Alpha1#
DynamicVariables=1
UpdateDivider=-1
LeftMouseDoubleClickAction=[#vURL#]
Group=FEED
;=== MARQUEE NEWS FEED ============================
[NewsFeed]
Meter=STRING
MeterStyle=StNEWS
X=[mXPos]r
Y=r