控制FreshRoastSR700咖啡烘焙机的Python模块。
freshroastsr700的Python项目详细描述
控制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)
许可证
麻省理工学院执照。有关详细信息,请参阅此软件包中的许可证。