https://github.com/avennn/daily-wallpaper
⏱️A cli tool for fetching Bing wallpapers regularly
https://github.com/avennn/daily-wallpaper
bing crawler cron daemon nodejs wallpaper
Last synced: 4 months ago
JSON representation
⏱️A cli tool for fetching Bing wallpapers regularly
- Host: GitHub
- URL: https://github.com/avennn/daily-wallpaper
- Owner: avennn
- License: mit
- Created: 2020-03-27T12:58:05.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T14:19:35.000Z (almost 2 years ago)
- Last Synced: 2025-10-22T08:41:02.798Z (8 months ago)
- Topics: bing, crawler, cron, daemon, nodejs, wallpaper
- Language: TypeScript
- Homepage:
- Size: 801 KB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# daily-wallpaper
[](https://www.npmjs.com/package/dwp)
[](https://github.com/avennn/daily-wallpaper)
[](https://github.com/avennn/daily-wallpaper)
[](./package.json)
[](./LICENSE)
A nodejs cli tool for fetching Bing wallpapers regularly
## Installation
```sh
npm install -g dwp
```
or
```sh
yarn global add dwp
```
## Usage
Start a cron job.
```bash
dwp start
```
Stop all cron jobs.
```bash
dwp stop
```
Show cron jobs.
```sh
dwp list
```
Show logs.
```sh
dwp log
```
### Options
- `-v, --version`
Show current version.
- `-h, --help`
Show help info.
### Options for `start` command
- `-W, --width `
Set wallpaper's width. Not required. `width` and `height` would be automatically acquired with [nc-screen](https://github.com/avennn/nc-screen).
- `-H, --height `
Set wallpaper's height. Not required.
- `-i, --interval `
Interval between two fetching actions, with format `[digit][unit]`. For example, `1h` means fetching wallpaper per hour. Unit supports `s`(second), `m`(minute), `h`(hour), `d`(day). Default `1d`. Not suggest to set a very small value, otherwise leading problem.
- `-m, --max `
Keep latest `max` wallpapers in the directory. Default `3`.
- `-s, --startup`
Auto start after your computer launched. Plan to support.
- `--no-startup`
Not auto start after your computer launched. Plan to support.
### Options for `log` command
- `-n, --num `
How many rows of log will be shown. Default `500`.
- `-e, --error`
Show logs with a log level upper than `error`.
## Issues and Contributing
Please contact with me if you have any question. Welcome to confirm an issue or contribute.
## Author
[Thomas Leung](https://github.com/avennn)
## License
[MIT](./LICENSE)