Code Monkey home page Code Monkey logo

htcpcpd's Introduction

欢迎来到HTCPCD

这是一个来自2013年的项目,来源于一个HTTP的一个梗:418 I‘m a teapot。要使用这个项目,你只需要准备一个Arduino开发板、LED灯和一个茶壶。由于项目古老,不确定其是否还可以继续使用。 由于这是一个来自十年前的的项目,且README是法语的。在十年后的今天我搜索到了这个项目,并且对他进行汉化。原 项目地址

HTCPCPD 是 HTCPCP 协议的实现 通过HTTP控制咖啡机。欲了解更多详情,请 转到项目网页(当然,在今天这个网址已经404了) 这是RFC 2324的网址:https://www.rfc-editor.org/rfc/rfc2324

HTCPCP 使用

Arduino的安装

要安装Arduino代码,只需通过Arduino IDE编译代码即可并使用IDE将其传输到Arduino。Arduino必须保持与HTCPCPD的服务端实时通信。

服务器和客户端使用情况

先决条件

HTCPCPD服务端和客户端的唯一先决条件是已安装 Python 2.7。

安装

对于服务器和客户端安装,您必须转到HTCPCPD的根目录,然后输入以下命令:

python2 setup.py install

启动服务端

要启动服务端,只需输入以下命令:

htcpcpd -c htcpcpd.ini

其中“htcpcpd.ini”是配置文件。

配置文件所写的默认端口是8000。

配置文件中的“pidfile”表示HTCPCD服务的pid,方便结束HTCPCD的进程。

配置文件中的“logfile”用于设置HTCPCPD服务端日志位置。

启动客户端

要使用客户端,只需输入以下命令:

htcpcp-client localhost 8000

这两个参数都不强制性使用。第一个表示HTCPCPD服务端地址,第二个表示服务端端口。

License

该项目使用 GPL V3许可 可在此处查看 : http://www.gnu.org/licenses/gpl-3.0.txt

htcpcpd's People

Contributors

freud14 avatar gelendir avatar luochancy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.