zkqcommon / KPush

A push server for kindle based on https://3lib.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KPush

定制个人专属的Kindle电子书推送服务

安装

KPush需要安装版本8.0以上的Node环境,相关信息请戳这里

$ npm i -g kpush

当然,也可以直接通过npx安装使用,具体配置看下面使用帮助

$ npx kpush -o localhost -p 8081

使用

帮助:

Usage: kpush [options]

Options:
  -V, --version          output the version number
  -c, --config <string>  set kpush custom config
  -o, --host <string>    set kpush server listening host
  -p, --port <number>    set kpush server listening port
  -s, --smtp <string>    set stmp server of pushing mail
  -u, --user <string>    set user of pushing mail
  -w, --pass <string>    set password of pushing mail
  -k, --kindle <string>  set user of kindle received mail
  -h, --help             output usage information

所有设置都会自动保存,再次使用时无需再进行设置

配置设置并启动:

# 可以只设置其中几项
$ kpush -o localhost -p 8081 -s smtp.163.com -u test@163.com -w test -k test@kindle.cn

以自定义配置启动:

# 请提供配置的绝对路径,以自定义配置启动时将忽略其他设置选项
$ kpush -c /usr/local/kpush/config.json

配置格式如下,字段含义见帮助:

{
  "host": "localhost",
  "port": "8081",
  "smtp": "smtp.163.com",
  "user": "test@163.com",
  "pass": "test",
  "kindle": "test@kindle.cn"
}

启动后,浏览器访问KPush服务器监听端口即可使用,推荐移动端进行访问

mobi源更换

这里默认用了Z-Library作为mobi电子书源,感谢一下。若更换其他mobi源,请自行fork以后重写app/models/index.js中getList和getUrl方法,约定见注释

About

A push server for kindle based on https://3lib.net/

License:MIT License


Languages

Language:JavaScript 57.7%Language:Vue 39.5%Language:HTML 2.9%