Skip to content

Converts RSS feed into format understood by LaMetric smart clock

License

Notifications You must be signed in to change notification settings

RauliL/lametric-rss-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lametric-rss-formatter

Converts RSS feed into format understood by LaMetric smart clock.

Installation

$ yarn add lametric-rss-formatter

Usage

const express = require('express');
const { format } = require('lametric-rss-formatter');

const app = express();

app.get('/', (req, res) =>
  format({ url: 'https://www.reddit.com/.rss' })
    .then((result) => res.send(result))
);

Options

You can pass additional options to the format function:

Option Default value Description
icon nothing Name of the LaMetric icon to display for each item.
max 5 Maximum number of entries to display from the RSS feed.

About

Converts RSS feed into format understood by LaMetric smart clock

Topics

Resources

License

Stars

Watchers

Forks