Skip to content

[HowTo] Creating a skin for your feed

nek7u edited this page Dec 21, 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 on the Rainmeter then Load the FeedMoe\MyFeed\Skin.ini

 

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. Duplicate the News_Google.US folder

  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 Type       Description               Examples      
FEED_URL string,
required value
RSS 2.0/Atom or RSS 1.0 Feed URL FEED_URL=https://news.yahoo.com/rss
ITEM_LINK_SUBSTITUTE string,
blank allowed
"pattern":"replacement", this value is for security purposes. This example, it verify the <link> address of each <item> and if it does not match, the <item> 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 topics 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. You can't specify decimal colors. (255,153,0) convertacolor.com 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. You can't specify decimal colors. (255,153,0) convertacolor.com COLOR_BACKGROUND_HEADER_LIGHT=FF9900

Measure Substitute - Rainmeter Docs
Regular expressions

  1. Save the Skin.ini file and close 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.