这个程序或库可以通过电子邮件帐号下载洪流文件,并将洪流文件发送到传输Web控制器。
pet的Python项目详细描述
PI电子邮件传输[PET]
- 这个程序需要设置两个系列。电子邮件服务和 变速器的Web控制器
- 如果你下载任何关于覆盆子皮的文件会很酷的 通过传输
- 这个程序的全部功能取决于电子邮件服务和 传输。
- 就这么说吧。它只是连接电子邮件服务和传输 Web控制器
激励
- 我不想在我的笔记本和智能手机上浪费资源。因为 当运行Torrent时,它完全是热的。
建议
- 基本上,这个程序是为减少笔记本电脑资源而设计的。 因此,我建议在raspberry pi上运行此程序。
- 使用此程序与dropbox或googledrive一起访问 下载的媒体文件。
- 如果你能在你的智能手机上使用电子邮件通知服务, 良好的互动。
安装
$gitclonehttps://github.com/drake-jin/pi-email-transmission$cdpi-email-transmission$pipinstall-e.
配置
- 设置传输网络控制器设置
- 如果你使用Dropbox或GoogleDrive。将目录重定向到那里。
- 必须检查您是否有帐户信息和主机,端口
- 检查您可用的电子邮件帐户IMAP和SMTP协议
- 此应用程序需要通过IMAP、SMTP协议进行传输。
- 因此,必须设置IMAP和SMTP协议 电子邮件帐户。
- 设置pi电子邮件传输的config.json文件
# config.json{"check_interval":10,"log_level":"DEBUG","email":{"imap":"imap.gmail.com:993","smtp":"smpt.gmail.com:465""folder":"pi-imap-transmission","user":"{email_id}@gmail.com","password":"{email_password}"},"transmission":{"user":"{trnsmsn_id}","password":"{trnsmsn_passwd}","host":"http://localhost:9091"}}
- 设置环境变量
$exportPET_HOME=/home/likemilk/workspace/pi-email-transmission
- 最后,您可以在 执行此命令
$pythonsetup.pytest# Have to finish setting Configurations!
配置图像
电子邮件google
通过电子邮件发送谷歌配置
变速器GTK
变速器配置
工作进展如何?
# *It's just psuedo code. not a real code*classService(Thread):while(True):time.sleep(config['interval_check'])# 1. read all of e-mails and check UNSEEN email# 2. get torrent file and add it on tranmission through pay load# 3. send email about complete or failed# 4. send seen flagtorrentList=email.get_torrent('(UNSEEN)')fortorrentintorrentList:if(transmission.add_torrent(torrent)):email.send('add_complete',torrent)else:email.send('add_fail',torrent)email.flag('(SEEN)',torrent.email_id)# 1. read all of Trnasmission download Queue.# 2. get Completed entry and delete the entry.# 3. send email about complete.torrentList=transmission.get_completed('Completed')fortorrentintorrentList:if(transmission.delete_torrent(torrent)):email.send('download_complete')else:email.send('delete_error')
联系我
- dydwls121200@gmail.com是我的邮件
- 欢迎公关或成为贡献者。我想和你一起玩编码游戏。
- 非常欢迎反馈和任何问题。