Raspberry Pi Cloud Printer

2017/05/30


About Raspberry Pi Cloud Printer


Raspberry Pi Cloud Printer(RPCP) 是一个基于web.py服务器框架打造的,运行在Raspberry Pi微型电脑上的由TheXYZLab打造的网络云打印平台(CloudPrint的延伸)。支持任意平台(PC/Linux/Mac/iOS/Android)的打印作业提交

Hardware


  • Raspberry Pi
  • 一个打印机
  • 网线/网卡
  • 电源

Prerequisites


  • 安装好CUPS
  • 安装好对应打印机驱动
  • 安装好Python3
  • 适配好无线网卡
  • 在CUPS上添加打印机
  • 下载RPCP的Git仓库
apt-get install cups
apt-get install hplip (For HP printer)
---
git clone https://github.com/William-An/RaspCloudPrint.git
OR
wget https://github.com/William-An/RaspCloudPrint/archive/master.zip
---
// For HP: some HP printers demand HP-Plugin, you can download from http://hplip.sourceforge.net/plugin.conf
// For adding printers: you need to modify /etc/cups/cupsd.conf so that you can access the control menu through http

How to run

cd <git repo dir> && sudo python3 server.py 80

Procedure


  1. 用户访问printerip/upload上传文件
  2. 服务器会暂时存放文件并使用lp命令以默认配置打印
  3. 服务器清除缓存的文件并重定向至printerip/upload
  4. 若有错误,服务器会重定向至printerip/upload,可以访问printerip/log查看,下载打印日志

Future


  1. 添加更多打印文档形式的支持,目前(v1.0)仅支持pdf
  2. 添加打印参数的调整(e.g. 双面,横向),目前仅支持以默认形式打印
  3. 添加一个1602A LCD以显示打印文档的参数

Error


若发现Bugs,请联系China_Aisa@live.com 或把问题POST在Github的issue板块。

Acknowledge


Flaticon -> Tab icon
web.py -> Server framework
html5up -> HTML Template

Contact


E-Mail: China_Aisa@live.com
Github: William-An
TheXYZLab: Official Site | Github Organization

初稿 2017/05/30
© 2017 TheXYZLab

最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容