Skip to content

[HowTo] Creating a skin for your feed

nek7u edited this page Sep 19, 2021 · 19 revisions
Summary
  1. Duplicate the FeedMoe\News_Google.US folder and rename to FeedMoe\MyFeed

  2. Modify the FeedMoe\MyFeed\Skin.ini with 📝text editor

FEED_URL=https://www.example.com/rss
ITEM_LINK_SUBSTITUTE="(?si)^(?(?!https://(?:[0-9a-z-]+\.)?example\.com/).+)":""
  1. Execute Refresh all in the Rainmeter then Load the FeedMoe\MyFeed\Skin.ini

Example of creating a skin for your feed

Creating a BBC World News feed skin

  1. Click the Rainmeter icon at the bottom-right of the desktop.

  2. Select the FeedMoe of the Skin tab

  3. Right-click the FeedMoe then Click the Open folder

  4. Dupulicate the News_Google.US folder under the same directory

  5. Rename the News_Google.US - Copy to News_BBC.co.uk

  6. Open the News_BBC.co.uk\Skin.ini file with text editor

  7. Modify the values in the [Variables] section

FEED_URL=https://feeds.bbci.co.uk/news/world/rss.xml
ITEM_LINK_SUBSTITUTE="(?si)^(?(?!https://(?:[0-9a-z-]+\.)?bbc\.co\.uk/).+)":""

FEED_TITLE=
ITEM_TITLE_SUBSTITUTE=
COLOR_BACKGROUND_HEADER_DARK=9D0A0E
COLOR_BACKGROUND_HEADER_LIGHT=9D0A0E

💡 Skin.ini files are encoded as UTF-16 LE BOM

Variables of a Skin.ini
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
  <item>
    <title>Entry 2</title>
    <link>https://www.example.com/blog/post/2</link>
  </item>
  <item>
    <title>Entry 1</title>
    <link>https://www.example.com/blog/post/1</link>
  </item>
</channel>
</rss>
Variable Name Value Type Description Examples
FEED_URL string,
required value
RSS2.0/Atom or RSS1.0 Feed URL FEED_URL=https://news.yahoo.com/rss
ITEM_LINK_SUBSTITUTE string,
blank allowed
"pattern":"replacement", this value is for security purposes. In this example, it verify the each URL of articles and if it does not match, the article will not be displayed. ITEM_LINK_SUBSTITUTE="(?si)^(?(?!https://(?:[0-9a-z-]+\.)?yahoo\.com/).+)":""
FEED_TITLE string,
blank allowed
You can define your own title to the skin header. FEED_TITLE=Yahoo! News
ITEM_TITLE_SUBSTITUTE string,
blank allowed
"pattern":"replacement", this value is for keyword filtering or shortening a word. You can hide the articles those you don't need. ITEM_TITLE_SUBSTITUTE="(?si)^.*?\b(?:alpha|beta)\b.*":""
COLOR_BACKGROUND_HEADER_DARK hexadecimal numbers,
blank allowed
[Red:00-FF][Green:00-FF][Blue:00-FF], Color for Dark mode theme. Decimal numbers (255, 153, 0) are not allowed. COLOR_BACKGROUND_HEADER_DARK=FF9900
COLOR_BACKGROUND_HEADER_LIGHT hexadecimal numbers,
blank allowed
[Red:00-FF][Green:00-FF][Blue:00-FF], Color for Light mode theme. Decimal numbers (255, 153, 0) are not allowed. COLOR_BACKGROUND_HEADER_LIGHT=FF9900

Measure Substitute - Rainmeter Docs
Regular expressions

  1. Save the Skin.ini file and exit the editor

  2. Click the Rainmeter icon at the bottom-right of the desktop.

  3. Click the Refresh all button

  4. Browse the FeedMoe > News_BBC.co.uk select the Skin.ini and click the Load button.

  5. TWO YEARS LATER..., the skin will be displayed.