It is currently October 5th, 2024, 5:01 pm

FeedReader w/ sorting

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: FeedReader w/ sorting

Post by Kaelri »

I have a... let's call it an "alpha" version of a new Reader script that supports both combining and sorting feeds. See here.
User avatar
Mordasius
Posts: 1178
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: FeedReader w/ sorting

Post by Mordasius »

TheLeGend wrote:Is it possible to add tool-tip display <description> of RSS feed on mouse hover?
Yes it would be possible to add a tool-tip displaying the <description> of each item. I didn't include it because I usually find the the title is enough to decide whether or not to click on the link and display the full article. I also think that tooltips make a bit of a mess of the display when you have a small font size.
Kaelri wrote:I have a... let's call it an "alpha" version of a new Reader script that supports both combining and sorting feeds.
I'll give that a thrashing when I can as I think there were a few buggets in the previous PM'd version. Can't remember exactly what the problem was but think it had something to do with the way i was trying to sort by date using:

Code: Select all

	-- SORT FEEDS BY DATE					
		local SortedFeed = {}
		for k,v in ipairs( Feed ) do table.insert( SortedFeed, k, v ) end	
		table.sort(SortedFeed, function(a,b) return a.Date > b.Date end)	
jlar0che
Posts: 1
Joined: February 25th, 2015, 6:19 pm

Re: FeedReader w/ sorting

Post by jlar0che »

I'm wondering if it is possible to display more than 5 feeds. Also wondering if it is possible to change the width of FeedReader

Thanks!
User avatar
Mordasius
Posts: 1178
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: FeedReader w/ sorting

Post by Mordasius »

You can change the width by altering the variable PanelWidth in FeedReader-Sorted.ini. The default of PanelWidth=300 gives the skin a width of 300 pixels.

An extra feed can be added by pasting the following measures and meters immediately after the corresponding measures and meters with number '5' in them:

Code: Select all

[Grabber6State]
Measure=CALC
Formula=#CurrentFeed#=6
DynamicVariables=1

[MeasureFeed6]
Measure=Plugin
Plugin=WebParser
Url=#URL6#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(6)"]
UpdateRate=#UpdateRate6#

[Grabber6]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber6State]
FontFace=Wingdings 2
Text='z'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(6)"
Then change MeasureName in [MeasureReader] to

Code: Select all

MeasureName=MeasureFeed|MeasureFeed2|MeasureFeed3|MeasureFeed4|MeasureFeed5|MeasureFeed6
You then need to open FeedReader-Sorted.lua and change for f = 1,5 do to for f = 1,6 do on line 44

Code: Select all

	-- SET THE CUSTOM TITLES
	for f = 1,6 do 
		Feeds[f].CustomTitle = SKIN:GetVariable('CustomTitle'..f) or nil
    end
Finally, click on the yellow icon in the bottom right of the skin to add the new feed name, title and UpdateRate in uservariables.inc

Code: Select all

CustomTitle6="Added feed 6" 
URL6=http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml
UpdateRate6=1200
If you need more than six feeds just repeat the above and change all the '6's to '7's and so on.
srepper
Posts: 3
Joined: October 3rd, 2018, 1:26 pm

Re: FeedReader w/ sorting

Post by srepper »

hey
i get strange signs, what can i do ?
Image

My code of UserVariables.inc:
[Variables]
;-> put the URL's for news feeds here along with an optional Custom title and the update rate for each feed. (UpdateRate=1800 = update every 30 minutes). Enclose any Custom Titles with "".

CustomTitle1="heise"
URL1=https://www.heise.de/newsticker/heise.rdf
UpdateRate1=1200


CustomTitle2="Golem"
URL2=https://rss.golem.de/rss.php?feed=RSS2.0
UpdateRate2=3606


CustomTitle3="Geist"
URL3=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Geist.xml
UpdateRate3=4200


CustomTitle4="Spektrum"
URL4=https://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406
UpdateRate4=1200


CustomTitle5="Mensch"
URL5=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Mensch.xml
UpdateRate5=1800

CustomTitle6="Natur"
URL6=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Natur.xml
UpdateRate6=1800

CustomTitle7="Tagesschau"
URL7=http://www.tagesschau.de/xml/rss2
UpdateRate7=1800

CustomTitle8="Tagesschau"
URL8=http://www.tagesschau.de/xml/rss2
UpdateRate8=1800




;-> change NewItemMinutes to whatever you want to be marked as a 'new' item (NewItemMinutes=30 will mark anything less than 30 minutes old as a "new" item)
NewItemMinutes=60

My code of FeedReader-Sorted.ini:
[Rainmeter]
MiddleMouseUpAction=!Refresh
AccurateText=1

[Metadata]
Author=Kaelri adapted by Mordasius
Name=FeedReader-Sorted III
Version=080214
Information=Displays almost any Atom or RSS feed and sorts the items by date with the most recent at the top. Allows custom feed headings and trims down the Rainmeter Forum thread titles.
License=Creative Commons BY-NC-SA 3.0

[Variables]
@Include=#@#UserVariables.inc

;-> use these to change the layout and colour of feed items
PanelWidth=500
TextSize=10
TitleSize=10
ButtonSize=12
ColorText1=a1a1a1
Colortext2=8a8989
ColorHighlight=d3a843
Border=10
FeedY=30

;---- best not to change these
CurrentFeed=1
FeedTitle=Loading...
Item1Title=
Item2Title=
Item3Title=
Item4Title=
Item5Title=
Item6Title=
Item7Title=
Item8Title=
Item9Title=
Item10Title=
WebParserSubstitute="<![CDATA[":"","]]>":"","/PRE>":"","PRE>":"","&nbsp;":" ","'s Facebook Notifications":"","Top Stories - Google ":"", "&#x2019;":"'","&":"&"

;=== [ styles ]
[sFeedText]
FontSize=#TextSize#
FontFace=Calibri
StringStyle=BOLD
StringEffect=SHADOW
SolidColor=0,0,0,1
FontEffectColor=000000
MouseOverAction=[!SetOption "#CURRENTSECTION#" FontColor #ColorHighlight#bb][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" FontColor ""][!UpdateMeter #CURRENTSECTION#][!Redraw]
X=(#Border#*2)
Y=r
W=(#PanelWidth#-(#Border#*3))
H=18
AntiAlias=1
ClipString=1
Group=Feeds
DynamicVariables=1

[sColorSet1]
FontColor=#ColorText1#

[sColorSet2]
FontColor=#ColorText2#

[sNew]
FontSize=#TextSize#
FontFace=Calibri
FontColor=#ColorHighlight#b8
X=#Border#
Y=R
DynamicVariables=1

[sNew1]
Text="•"

[sNew0]

;=== [ feed change buttons ]
[Grabber1State]
Measure=CALC
Formula=#CurrentFeed#=1
DynamicVariables=1

[Grabber2State]
Measure=CALC
Formula=#CurrentFeed#=2
DynamicVariables=1

[Grabber3State]
Measure=CALC
Formula=#CurrentFeed#=3
DynamicVariables=1

[Grabber4State]
Measure=CALC
Formula=#CurrentFeed#=4
DynamicVariables=1

[Grabber5State]
Measure=CALC
Formula=#CurrentFeed#=5
DynamicVariables=1

[Grabber6State]
Measure=CALC
Formula=#CurrentFeed#=6
DynamicVariables=1

[Grabber7State]
Measure=CALC
Formula=#CurrentFeed#=7
DynamicVariables=1

[Grabber8State]
Measure=CALC
Formula=#CurrentFeed#=8
DynamicVariables=1


[GrabberStyle0]
FontColor=#ColorText2#

[GrabberStyle1]
FontColor=#ColorHighlight#bb

[sButtonStyle]
X=4R
FontColor=#ColorText2#
FontSize=#ButtonSize#
FontFace=Webdings
StringStyle=NORMAL
AntiAlias=1
DynamicVariables=1

;=== [ measures ]
[MeasureFeed]
Measure=Plugin
Plugin=WebParser
URL=#URL1#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(1)"]
UpdateRate=#UpdateRate1#

[MeasureFeed2]
Measure=Plugin
Plugin=WebParser
Url=#URL2#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure "MeasureReader" "Show(2)"
UpdateRate=#UpdateRate2#

[MeasureFeed3]
Measure=Plugin
Plugin=WebParser
Url=#URL3#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure "MeasureReader" "Show(3)"
UpdateRate=#UpdateRate3#

[MeasureFeed4]
Measure=Plugin
Plugin=WebParser
Url=#URL4#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(4)"]
UpdateRate=#UpdateRate4#

[MeasureFeed5]
Measure=Plugin
Plugin=WebParser
Url=#URL5#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(5)"]
UpdateRate=#UpdateRate5#

[MeasureFeed6]
Measure=Plugin
Plugin=WebParser
Url=#URL6#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(6)"]
UpdateRate=#UpdateRate6#

[MeasureFeed7]
Measure=Plugin
Plugin=WebParser
Url=#URL7#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(7)"]
UpdateRate=#UpdateRate7#

[MeasureFeed8]
Measure=Plugin
Plugin=WebParser
Url=#URL8#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(8)"]
UpdateRate=#UpdateRate8#













;=== [ lua script ]
[MeasureReader]
Measure=Script
ScriptFile=FeedReader-Sorted.lua
MeasureName=MeasureFeed|MeasureFeed2|MeasureFeed3|MeasureFeed4|MeasureFeed5|MeasureFeed6|MeasureFeed7|MeasureFeed8
WriteHistory=0
KeepOldItems=0
MinItems=10
MaxItems=65
FinishAction=[!UpdateMeterGroup Feeds][!Redraw]

;=== [ meters ]
[Background]
Meter=IMAGE
SolidColor=281c01aa
H=238
W=#PanelWidth#
UpdateDivider=-1

[InnerBackground]
Meter=IMAGE
SolidColor=0e0a00
X=2
Y=2
H=234
W=(#PanelWidth#-4)
UpdateDivider=-1

[TopLine]
Meter=IMAGE
SolidColor=#ColorHighlight#bb
X=#Border#
Y=(#FeedY#-6)
W=(#PanelWidth#-(#Border#*2))
H=1
UpdateDivider=-1

[FeedTitle]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
FontSize=#TitleSize#
X=#Border#
Y=(#FeedY#-24)
LeftMouseUpAction=["#FeedLink#"]
Text=#FeedTitle#
DynamicVariables=1

;=== [ bullets and feed items ]
[Item1New]
Meter=STRING
MeterStyle=sNew | sNew#Item1New#
Y=#FeedY#

[Item1]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Y=#FeedY#
Text=#Item1Title#
LeftMouseUpAction=["#Item1Link#"]

[Item2New]
Meter=STRING
MeterStyle=sNew | sNew#Item2New#

[Item2]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item2Title#
LeftMouseUpAction=["#Item2Link#"]

[Item3New]
Meter=STRING
MeterStyle= sNew | sNew#Item3New#

[Item3]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item3Title#
LeftMouseUpAction=["#Item3Link#"]

[Item4New]
Meter=STRING
MeterStyle=sNew | sNew#Item4New#

[Item4]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item4Title#
LeftMouseUpAction=["#Item4Link#"]

[Item5New]
Meter=STRING
MeterStyle=sNew | sNew#Item5New#

[Item5]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item5Title#
LeftMouseUpAction=["#Item5Link#"]

[Item6New]
Meter=STRING
MeterStyle=sNew | sNew#Item6New#

[Item6]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item6Title#
LeftMouseUpAction=["#Item6Link#"]

[Item7New]
Meter=STRING
MeterStyle=sNew | sNew#Item7New#

[Item7]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item7Title#
LeftMouseUpAction=["#Item7Link#"]

[Item8New]
Meter=STRING
MeterStyle=sNew | sNew#Item8New#

[Item8]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item8Title#
LeftMouseUpAction=["#Item8Link#"]

[Item9New]
Meter=STRING
MeterStyle=sNew | sNew#Item9New#

[Item9]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item9Title#
LeftMouseUpAction=["#Item9Link#"]

[Item10New]
Meter=STRING
MeterStyle=sNew | sNew#Item10New#

[Item10]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item10Title#
LeftMouseUpAction=["#Item10Link#"]

;=== [ buttons ]
[ArrowPrevious]
Meter=STRING
MeterStyle=sButtonStyle
FontSize=(#ButtonSize#+2)
X=(#Border#+4)
Y=5R
Text=7
LeftMouseUpAction=!CommandMeasure "MeasureReader" "ShowPrevious()"

[Grabber1]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber1State]
FontFace=Wingdings 2
Text='H'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(1)"

[Grabber2]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber2State]
FontFace=Wingdings 2
Text='G'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(2)"

[Grabber3]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber3State]
FontFace=Wingdings 2
Text='W'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(3)"

[Grabber4]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber4State]
FontFace=Wingdings 2
Text='N'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(4)"

[Grabber5]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber5State]
FontFace=Wingdings 2
Text='M'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(5)"

[Grabber6]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber6State]
FontFace=Wingdings 2
Text='N'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(6)"

[Grabber7]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber7State]
FontFace=Wingdings 2
Text='T'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(7)"

[Grabber8]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber8State]
FontFace=Wingdings 2
Text='?'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(8)"



[ArrowNext]
Meter=STRING
MeterStyle=sButtonStyle
FontSize=(#ButtonSize#+2)
Text=3
Y=-2r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "ShowNext()"

[MtEditVariables]
Meter=STRING
MeterStyle=sButtonStyle
FontFace=WingDings
FontSize=(#ButtonSize#+2)
FontColor=#ColorHighlight#88
ToolTipText="Edit Feeds"
Text=7
Y=-2r
X=(#PanelWidth#-24)
LeftMouseUpAction=["#ROOTCONFIGPATH#@Resources\UserVariables.inc"]
User avatar
Mordasius
Posts: 1178
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: FeedReader w/ sorting

Post by Mordasius »

This is because the skin needs the Wingdings 2 font to be installed on your computer. It is used by the statement [b]FontFace=Wingdings 2[/b] in Grabber's 1-8. The font comes with older versions of Microsoft Word but you can download it from here -> https://www.wfonts.com/font/wingdings-2
srepper
Posts: 3
Joined: October 3rd, 2018, 1:26 pm

Re: FeedReader w/ sorting

Post by srepper »

Thanks :D


can you help me by my new issue?

i wanted arrows but i get strange signs left and right



very nice skin i am very happy, it help me to get more time



Image
delete blogger account
User avatar
Mordasius
Posts: 1178
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: FeedReader w/ sorting

Post by Mordasius »

The arrows are set by FontFace=Webdings. I thought the Webdings font came with all versions of Windows. But if you haven't got it you can get it here -> https://www.fonts.com/font/microsoft-corporation/webdings/regular.

BTW, don't change the FontFace=Webdings or FontFace=Wingdings 2 lines. Just install the missing fonts.

Or, you can download the skin again from DA. I have just updated the .rmskin to include the fonts which may be missing from Windows 10.
srepper
Posts: 3
Joined: October 3rd, 2018, 1:26 pm

Re: FeedReader w/ sorting

Post by srepper »

hey thanks for you help!

i have a new issue :D
i have 14 feeds
from 9-14 overwrite doesn't refresh.
1-8 of the overwrites refreshs (works fine).
9-14 has the overwrite from the last (last overwrite from 1-8 feeds)

my code:
UserVariables.inc
[Variables]
;-> put the URL's for news feeds here along with an optional Custom title and the update rate for each feed. (UpdateRate=1800 = update every 30 minutes). Enclose any Custom Titles with "".

CustomTitle1="heise"
URL1=https://www.heise.de/newsticker/heise.rdf
UpdateRate1=1200


CustomTitle2="Golem"
URL2=https://rss.golem.de/rss.php?feed=RSS2.0
UpdateRate2=3606


CustomTitle3="Tarnkappe"
URL3=https://tarnkappe.info/feed/
UpdateRate3=4200


CustomTitle4="Spektrum"
URL4=https://www.spektrum.de/alias/rss/spektrum-de-rss-feed/996406
UpdateRate4=1200


CustomTitle5="Mensch"
URL5=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Mensch.xml
UpdateRate5=1800

CustomTitle6="Natur"
URL6=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Natur.xml
UpdateRate6=1800

CustomTitle7="Geist"
URL7=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Geist.xml
UpdateRate7=1800

CustomTitle8="Science and Medicine"
URL8=https://www.journals.elsevier.com/social-science-and-medicine/rss
UpdateRate8=1800

CustomTitle9="Newscientist"
URL9=http://feeds.newscientist.com/
UpdateRate9=1800

CustomTitle10="Science and Medicine"
URL10=http://stke.sciencemag.org/rss/current.xml
UpdateRate10=1800

CustomTitle11="Wissenschaft"
URL11=https://www.wissenschaft-aktuell.de/onTEAM/WSA-Weltraum.xml
UpdateRate11=1800

CustomTitle12="Tagesschau"
URL12=http://www.tagesschau.de/xml/rss2
UpdateRate12=1800

CustomTitle13="Alles Schall und Rauch"
URL13=http://alles-schallundrauch.blogspot.com/feeds/posts/default
UpdateRate13=1800

CustomTitle14="Deutsche Wirtschaftsnachrichten"
URL14=https://deutsche-wirtschafts-nachrichten.de/feed/
UpdateRate14=1800


;-> change NewItemMinutes to whatever you want to be marked as a 'new' item (NewItemMinutes=30 will mark anything less than 30 minutes old as a "new" item)
NewItemMinutes=60
FeedReader-Sorted.ini
[Rainmeter]
MiddleMouseUpAction=!Refresh
ContextAction=["#ROOTCONFIGPATH#@Resources\UserVariables.inc"]
ContextTitle=Change feed URLs
AccurateText=1

[Metadata]
Author=Mordasius
Name=FeedReader-Sorted III
Version=260215
Information=Uses a modified version of Kaleri's lua script to display almost any Atom or RSS feed and sort the items by date with the most recent at the top. Allows custom feed headings and trims down the Rainmeter Forum thread titles.
License=Creative Commons BY-NC-SA 3.0

[Variables]
@Include=#@#UserVariables.inc

;-> use these to change the layout and colour of feed items
PanelWidth=500
TextSize=10
TitleSize=11
ButtonSize=14
ColorText1=a1a1a1
Colortext2=8a8989
ColorHighlight=008000
Border=10
FeedY=30

;---- best not to change these
CurrentFeed=1
FeedTitle=Loading...
Item1Title=
Item2Title=
Item3Title=
Item4Title=
Item5Title=
Item6Title=
Item7Title=
Item8Title=
Item9Title=
Item10Title=
Item11Title=
Item12Title=
Item13Title=
Item14Title=
WebParserSubstitute="<![CDATA[":"","]]>":"","/PRE&gt;":"","PRE&gt;":"","&nbsp;":" ","'s Facebook Notifications":"","Top Stories - Google ":"", "&#x2019;":"'","&amp;":"&"

;=== [ styles ]
[sFeedText]
FontSize=#TextSize#
FontFace=Calibri
StringStyle=BOLD
StringEffect=SHADOW
SolidColor=0,0,0,1
FontEffectColor=000000
MouseOverAction=[!SetOption "#CURRENTSECTION#" FontColor #ColorHighlight#bb][!UpdateMeter #CURRENTSECTION#][!Redraw]
MouseLeaveAction=[!SetOption "#CURRENTSECTION#" FontColor ""][!UpdateMeter #CURRENTSECTION#][!Redraw]
X=(#Border#*2)
Y=r
W=(#PanelWidth#-(#Border#*3))
H=18
AntiAlias=1
ClipString=1
Group=Feeds
DynamicVariables=1

[sColorSet1]
FontColor=#ColorText1#

[sColorSet2]
FontColor=#ColorText2#

[sNew]
FontSize=#TextSize#
FontFace=Calibri
FontColor=#ColorHighlight#b8
X=#Border#
Y=R
DynamicVariables=1

[sNew1]
Text="•"

[sNew0]

;=== [ feed change buttons ]
[Grabber1State]
Measure=CALC
Formula=#CurrentFeed#=1
DynamicVariables=1

[Grabber2State]
Measure=CALC
Formula=#CurrentFeed#=2
DynamicVariables=1

[Grabber3State]
Measure=CALC
Formula=#CurrentFeed#=3
DynamicVariables=1

[Grabber4State]
Measure=CALC
Formula=#CurrentFeed#=4
DynamicVariables=1

[Grabber5State]
Measure=CALC
Formula=#CurrentFeed#=5
DynamicVariables=1

[Grabber6State]
Measure=CALC
Formula=#CurrentFeed#=6
DynamicVariables=1

[Grabber7State]
Measure=CALC
Formula=#CurrentFeed#=7
DynamicVariables=1

[Grabber8State]
Measure=CALC
Formula=#CurrentFeed#=8
DynamicVariables=1

[Grabber9State]
Measure=CALC
Formula=#CurrentFeed#=9
DynamicVariables=1

[Grabber10State]
Measure=CALC
Formula=#CurrentFeed#=10
DynamicVariables=1

[Grabber11State]
Measure=CALC
Formula=#CurrentFeed#=11
DynamicVariables=1

[Grabber12State]
Measure=CALC
Formula=#CurrentFeed#=12
DynamicVariables=1

[Grabber13State]
Measure=CALC
Formula=#CurrentFeed#=13
DynamicVariables=1

[Grabber14State]
Measure=CALC
Formula=#CurrentFeed#=14
DynamicVariables=1

[GrabberStyle0]
FontColor=#ColorText2#

[GrabberStyle1]
FontColor=#ColorHighlight#bb

[sButtonStyle]
X=4R
FontColor=#ColorText2#
FontSize=#ButtonSize#
FontFace=Webdings
StringStyle=NORMAL
AntiAlias=1
DynamicVariables=1

;=== [ measures ]
[MeasureFeed]
Measure=Plugin
Plugin=WebParser
URL=#URL1#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(1)"]
UpdateRate=#UpdateRate1#

[MeasureFeed2]
Measure=Plugin
Plugin=WebParser
Url=#URL2#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure "MeasureReader" "Show(2)"
UpdateRate=#UpdateRate2#

[MeasureFeed3]
Measure=Plugin
Plugin=WebParser
Url=#URL3#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=!CommandMeasure "MeasureReader" "Show(3)"
UpdateRate=#UpdateRate3#

[MeasureFeed4]
Measure=Plugin
Plugin=WebParser
Url=#URL4#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(4)"]
UpdateRate=#UpdateRate4#

[MeasureFeed5]
Measure=Plugin
Plugin=WebParser
Url=#URL5#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(5)"]
UpdateRate=#UpdateRate5#

[MeasureFeed6]
Measure=Plugin
Plugin=WebParser
Url=#URL6#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(6)"]
UpdateRate=#UpdateRate6#
; UpdateDivider=-1

[MeasureFeed7]
Measure=Plugin
Plugin=WebParser
Url=#URL7#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(7)"]
UpdateRate=#UpdateRate7#

[MeasureFeed8]
Measure=Plugin
Plugin=WebParser
Url=#URL8#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(8)"]
UpdateRate=#UpdateRate8#

[MeasureFeed9]
Measure=Plugin
Plugin=WebParser
Url=#URL9#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(9)"]
UpdateRate=#UpdateRate9#

[MeasureFeed10]
Measure=Plugin
Plugin=WebParser
Url=#URL10#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(10)"]
UpdateRate=#UpdateRate10#

[MeasureFeed11]
Measure=Plugin
Plugin=WebParser
Url=#URL11#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(11)"]
UpdateRate=#UpdateRate11#

[MeasureFeed12]
Measure=Plugin
Plugin=WebParser
Url=#URL12#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(12)"]
UpdateRate=#UpdateRate12#

[MeasureFeed13]
Measure=Plugin
Plugin=WebParser
Url=#URL13#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(13)"]
UpdateRate=#UpdateRate13#

[MeasureFeed14]
Measure=Plugin
Plugin=WebParser
Url=#URL14#
RegExp=(?siU)(.*)$
Substitute=#WebParserSubstitute#
FinishAction=[!CommandMeasure "MeasureReader" "Show(14)"]
UpdateRate=#UpdateRate14#

;=== [ lua script ]
[MeasureReader]
Measure=Script
ScriptFile=FeedReader-Sorted.lua
MeasureName=MeasureFeed|MeasureFeed2|MeasureFeed3|MeasureFeed4|MeasureFeed5|MeasureFeed6|MeasureFeed7|MeasureFeed8|MeasureFeed9|MeasureFeed10|MeasureFeed11|MeasureFeed12|MeasureFeed13|MeasureFeed14
WriteHistory=0
KeepOldItems=0
MinItems=10
MaxItems=65
FinishAction=[!UpdateMeterGroup Feeds][!Redraw]
UpdateDivider=-1

;=== [ meters ]
[Background]
Meter=IMAGE
SolidColor=281c01aa
H=238
W=#PanelWidth#
UpdateDivider=-1

[InnerBackground]
Meter=IMAGE
SolidColor=0e0a00
X=2
Y=2
H=234
W=(#PanelWidth#-4)
UpdateDivider=-1

[TopLine]
Meter=IMAGE
SolidColor=#ColorHighlight#bb
X=#Border#
Y=(#FeedY#-6)
W=(#PanelWidth#-(#Border#*2))
H=1
UpdateDivider=-1

[FeedTitle]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
FontSize=#TitleSize#
X=#Border#
Y=(#FeedY#-24)
LeftMouseUpAction=["#FeedLink#"]
Text=#FeedTitle#
DynamicVariables=1

;=== [ bullets and feed items ]
[Item1New]
Meter=STRING
MeterStyle=sNew | sNew#Item1New#
Y=#FeedY#

[Item1]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Y=#FeedY#
Text=#Item1Title#
LeftMouseUpAction=["#Item1Link#"]

[Item2New]
Meter=STRING
MeterStyle=sNew | sNew#Item2New#

[Item2]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item2Title#
LeftMouseUpAction=["#Item2Link#"]

[Item3New]
Meter=STRING
MeterStyle= sNew | sNew#Item3New#

[Item3]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item3Title#
LeftMouseUpAction=["#Item3Link#"]

[Item4New]
Meter=STRING
MeterStyle=sNew | sNew#Item4New#

[Item4]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item4Title#
LeftMouseUpAction=["#Item4Link#"]

[Item5New]
Meter=STRING
MeterStyle=sNew | sNew#Item5New#

[Item5]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item5Title#
LeftMouseUpAction=["#Item5Link#"]

[Item6New]
Meter=STRING
MeterStyle=sNew | sNew#Item6New#

[Item6]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item6Title#
LeftMouseUpAction=["#Item6Link#"]

[Item7New]
Meter=STRING
MeterStyle=sNew | sNew#Item7New#

[Item7]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item7Title#
LeftMouseUpAction=["#Item7Link#"]

[Item8New]
Meter=STRING
MeterStyle=sNew | sNew#Item8New#

[Item8]
Meter=STRING
MeterStyle=sFeedText | sColorSet2
Text=#Item8Title#
LeftMouseUpAction=["#Item8Link#"]

[Item9New]
Meter=STRING
MeterStyle=sNew | sNew#Item9New#

[Item9]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item9Title#
LeftMouseUpAction=["#Item9Link#"]

[Item10New]
Meter=STRING
MeterStyle=sNew | sNew#Item10New#

[Item10]
Meter=STRING
MeterStyle=sFeedText | sColorSet1
Text=#Item10Title#
LeftMouseUpAction=["#Item10Link#"]



;=== [ buttons ]
[ArrowPrevious]
Meter=STRING
MeterStyle=sButtonStyle
FontSize=(#ButtonSize#+2)
X=(#Border#+4)
Y=5R
Text=7
LeftMouseUpAction=!CommandMeasure "MeasureReader" "ShowPrevious()"

[Grabber1]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber1State]
FontFace=Calibri
Text='H|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(1)"

[Grabber2]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber2State]
FontFace=Calibri
Text='G|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(2)"

[Grabber3]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber3State]
FontFace=Calibri
Text='T|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(3)"

[Grabber4]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber4State]
FontFace=Calibri
Text='S|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(4)"

[Grabber5]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber5State]
FontFace=Calibri
Text='M|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(5)"

[Grabber6]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber6State]
FontFace=Calibri
Text='N|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(6)"

[Grabber7]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber7State]
FontFace=Calibri
Text='G|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(7)"

[Grabber8]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber8State]
FontFace=Calibri
Text='SM|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(8)"

[Grabber9]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber9State]
FontFace=Calibri
Text='NS|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(9)"

[Grabber10]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber10State]
FontFace=Calibri
Text='SM|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(10)"

[Grabber11]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber11State]
FontFace=Calibri
Text='W|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(11)"

[Grabber12]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber12State]
FontFace=Calibri
Text='T|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(12)"

[Grabber13]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber13State]
FontFace=Calibri
Text='ASR|'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(13)"

[Grabber14]
Meter=STRING
MeterStyle=sButtonStyle | GrabberStyle[Grabber14State]
FontFace=Calibri
Text='DWN'
Y=r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "Show(14)"




[ArrowNext]
Meter=STRING
MeterStyle=sButtonStyle
FontSize=(#ButtonSize#+2)
Text=8
Y=-2r
LeftMouseUpAction=!CommandMeasure "MeasureReader" "ShowNext()"

[MtEditVariables]
Meter=STRING
MeterStyle=sButtonStyle
FontFace=WingDings
FontSize=(#ButtonSize#+2)
FontColor=#ColorHighlight#88
ToolTipText="Edit Feeds"
Text=3
Y=-2r
X=(#PanelWidth#-24)
LeftMouseUpAction=["#ROOTCONFIGPATH#@Resources\UserVariables.inc"]

User avatar
Mordasius
Posts: 1178
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: FeedReader w/ sorting

Post by Mordasius »

srepper wrote: March 5th, 2019, 11:50 pm i have a new issue :D
i have 14 feeds
from 9-14 overwrite doesn't refresh.
1-8 of the overwrites refreshs (works fine).
9-14 has the overwrite from the last (last overwrite from 1-8 feeds)
I think the issue lies in the script file FeedReader-Sorted.lua. Scroll down to line 43 and change what is there to what is below (or just change the number '6' to '14').

Code: Select all

	-- SET THE CUSTOM TITLES
	for f = 1,14 do 
		Feeds[f].CustomTitle = SKIN:GetVariable('CustomTitle'..f) or nil
    end