0.7.0 • Published 6 years ago

feed-wallpaper v0.7.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

feedWallpaper.js

Build Status npm version License: MIT Dependencies

Little node.js utility / npm package to scrape an image from a photo blog (or whatever RSS feed) and set it as a desktop wallpaper. The script looks for the newest entry in an RSS feed, get's the first linked image and fetches the (hopefully) full size image behind the link.

I use this to change my desktop wallpaper to the newest photo from the great Thoschmi Photos blog (http://thoschmiphotos.blogspot.com/) on a daily basis.

Should work on Windows, Linux and MacOS.

Prerequisites

Node.js >= 8.9 (latest lts supporting async/await and object rest spread)

Run from Command Line (via npm)

install the package

npm install -g feed-wallpaper

and run

npx feed-wallpaper [-e <engine>] [URL_OF_AN_RSS_FEED]

Run from Command Line (via git repo)

Installation

Download the package and run

npm install

Usage

node feed-wallpaper.js [-e <engine>] [URL_OF_AN_RSS_FEED]

Url defaults to (http://thoschmiphotos.blogspot.com/feeds/posts/default?alt=rss)

options:

-e --engine <e>   force wallpaper engine, valid values "wallpaper" (default) and "wallpaperjs"

e.g.

node feed-wallpaper.js
node feed-wallpaper.js -e wallpaperjs -v http://thoschmiphotos.blogspot.com/feeds/posts/default?alt=rss

also see wallpaper wallpaperjs

Use npm Package in your node project

Installation

npm install feed-wallpaper

Usage

const FeedWallpaper = require('feed-wallpaper');
(async () => await (new FeedWallpaper(URL_OF_AN_RSS_FEED, ENGINE)).setWallpaper())();

e.g.

const FeedWallpaper = require('feed-wallpaper');
(async () => await (new FeedWallpaper()).setWallpaper())();
const FeedWallpaper = require('feed-wallpaper');
(async () => await (new FeedWallpaper('http://thoschmiphotos.blogspot.com/feeds/posts/default?alt=rss', 'wallpaperjs')).setWallpaper())();

or see feed-wallpaper.js

License

Licensed under MIT license

Copyright (c) 2018 Andreas Schmidt

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.7.0

6 years ago

0.6.5

6 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago