控制FreshRoastSR700咖啡烘焙机的Python模块。

freshroastsr700的Python项目详细描述


https://travis-ci.org/Roastero/freshroastsr700.svg?branch=masterhttps://coveralls.io/repos/Roastero/freshroastsr700/badge.svg?branch=master&service=githubDocumentation Status

控制FreshRoastSR700咖啡烘焙机的Python模块。

用法

importtimeimportmultiprocessingimportfreshroastsr700# freshroastsr700 uses multiprocessing under the hood.# call multiprocessing.freeze_support() if you intend to# freeze your app for packaging.multiprocessing.freeze_support()# Create a roaster object.roaster=freshroastsr700.freshroastsr700()# Conenct to the roaster.roaster.connect()# Set roasting variables.roaster.heat_setting=3roaster.fan_speed=9roaster.time_remaining=20# Begin roasting.roaster.roast()# This ensures the example script does not end before the roast.time.sleep(30)# Disconnect from the roaster.roaster.disconnect()

API和文档

完整的代码文档和freshroastsr700通信协议的分解可以在freshroastsr700.readthedocs.org找到。新鲜烤肉SR700可直接从homeroastingsupplies.com的制造商处购买。

安装

运行以下命令可以安装此软件包的最新版本:

pip install freshroastsr700

请注意,在OS X和Windows系统上,您需要安装Te Chiheng CH341驱动程序,以便FreshRoastSR700模块与硬件对话。最简单的方法是下载openbroast安装程序包,它捆绑了这些驱动程序。

版本历史记录

版本0.2.4-2017年10月

  • Resolves feature request documented in issue #31 freshroastsr700 object can now be instantiated with manual control of the software-based heater algorithm. Tested in Ubuntu 16.04.

版本0.2.3-2017年5月

  • Resolves issues #22, 23, 24 and 25, and 29 (the latter introduced by 0.2.2). Added logic to handle hardware connects and hardware disconnects properly in all supported OSes. Software now supports multiple connect()-disconnect() cycles using the same freshroastsrs700 object instance. Tested in Windows 10 64-bit and Ubuntu 14.04.

版本0.2.2-2017年5月

  • [Introduced issue #29. Inoperable in Windows environments - do not use.]

版本0.2.1-2017年3月

  • Resolves issue #20 by managing hardware discovery logic in the comm process, eliminating the need for the thread heretofore associated with auto_connect. Openroast 1.2 (currently in development) now operates properly in Windows 10 64-bit, with this fix.

版本0.2.0-2017年3月

  • Completely rewritten PID control for tighter tracking against target temperature (when freshroastsr700 is instantiated with thremostat=True).
  • Callback functions for update_data_func and state_transition_func now called from a thread belonging to the process that instantiated freshroastsr700. This was necessary for Openroast version 1.2 code refactoring.
  • Reduced processor load for PID control as part of code refactoring.

版本0.1.1-2017年12月28日

  • Added support for python 2.7.

版本0.1.0

  • (no notes)

许可证

麻省理工学院执照。有关详细信息,请参阅此软件包中的许可证。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java RFID不完整输出?   java如何构造一个for循环来查找每个数组的第一个索引的总和   java Eclipse AST解析器正在删除我的规则   安卓如何在java中创建“可重写”配置?   java每次我向应用程序添加图像时,它都会崩溃   Java 8流到文件   EntityNotFoundException的java可能原因   java多线程为什么下面的程序表现得如此怪异?   java footprint soap api+mavenjaxb2plugin   java MongoDB锁定,直到找到结果   java重写Jtable选项卡行为转到下一个可编辑单元格   java关于方法和创建另一个方法   java将人脸与图像分离   java复制Spring批处理作业实例   java TextView不会更改为新设置的文本