码迷,mamicode.com
首页 > 其他好文 > 详细

3D打印服务器Octoprint配置步骤

时间:2017-07-08 17:57:20      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:upload   data   glob   int   eth   this   settings   ram   rtu   

Octoprint服务器可以用其它计算机或移动装置,透过局域网络或云端来控制打印机。

官方文档:http://docs.octoprint.org/en/master/

    技术分享

OctoPrint

OctoPrint provides a responsive web interface for controlling a 3D printer (RepRap, Ultimaker, …). It is Free Software and released under the GNU Affero General Public License V3.
Its website can be found at octoprint.org. 

Installation

Installation instructions for installing from source for different operating systems can be found on the wiki.
If you want to run OctoPrint on a Raspberry Pi you might want to take a look at OctoPi which is a custom SD card image that includes OctoPrint plus dependencies.

Dependencies

OctoPrint depends on a couple of python modules to do its job. Those are automatically installed when installing OctoPrint via setup.py:

python setup.py install 

You should also do this every time after pulling from the repository, since the dependencies might have changed.
OctoPrint currently only supports Python 2.7.

Usage

Running the setup.py script installs the octoprint script in your Python installation’s scripts folder (which depending on whether you installed OctoPrint globally or into a virtual env will be on your PATHor not). The following usage examples assume that said octoprint script is on your PATH.
You can start the server via

octoprint  

By default it binds to all interfaces on port 5000 (so pointing your browser to http://127.0.0.1:5000will do the trick). If you want to change that, use the additional command line parameters host andport, which accept the host ip to bind to and the numeric port number respectively. If for example you want the server to only listen on the local interface on port 8080, the command line would be 

octoprint –host=127.0.0.1 –port=8080 

Alternatively, the host and port on which to bind can be defined via the configuration.
If you want to run OctoPrint as a daemon (only supported on Linux), use

octoprint –daemon {start|stop|restart} [–pid PIDFILE] 

If you do not supply a custom pidfile location via –pid PIDFILE, it will be created at/tmp/octoprint.pid.
You can also specify the configfile or the base directory (for basing off the uploads, timelapse andlogs folders), e.g.:
octoprint –config /path/to/another/config.yaml –basedir /path/to/my/basedir
See octoprint –help for further information.
OctoPrint also ships with a run script in its source directory. You can also invoke that to start up the server, it takes the same command line arguments as the octoprint script.

Configuration

If not specified via the commandline, the configfile config.yaml for OctoPrint is expected in the settings folder, which is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at~/Library/Application Support/OctoPrint on MacOS.
A comprehensive overview of all available configuration settings can be found on the wiki. Please note that the most commonly used configuration settings can also easily be edited from OctoPrint’s settings dialog.

来源: https://github.com/foosel/OctoPrint#octoprint

3D打印服务器Octoprint配置步骤

标签:upload   data   glob   int   eth   this   settings   ram   rtu   

原文地址:http://www.cnblogs.com/JarvisCJ/p/7137291.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!