ControlMyPi-0.1.4
توضیحات
Client library for ControlMyPi scripts.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ControlMyPi-0.1.4 |
| نام | ControlMyPi |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeremy Blythe |
| ایمیل نویسنده | jerbly@controlmypi.com |
| آدرس صفحه اصلی | http://www.controlmypi.com/ |
| آدرس اینترنتی | https://pypi.org/project/ControlMyPi/ |
| مجوز | LICENSE.txt |
=============
Control My Pi
=============
`ControlMyPi <http://www.controlmypi.com>`_ provides a web based service to allow simple Python
scripts to be controlled from a panel over the Internet. Your
Python script defines a widget layout of labels, buttons, status
indicators and more for ControlMyPi to display. When a button is
clicked your script will get a message. If you have some status to
report, your script can send that to ControlMyPi at any time and
it'll be pushed out to your web browser.
Simple echo example::
import logging
from controlmypi import ControlMyPi
def on_msg(conn, key, value):
if key == 'echobox':
conn.update_status({'echo':'Echo: '+value})
logging.basicConfig(level=logging.ERROR)
p = [ [ ['E','echobox','send'],['S','echo','-'] ] ]
conn = ControlMyPi('jid@dom.com', 'pwd', 'tiny', 'Tiny', p, on_msg)
if conn.start_control():
try:
raw_input("Press Enter to finish\n")
finally:
conn.stop_control()
Please read the documentation links on `ControlMyPi <http://www.controlmypi.com>`_ for more help.
نحوه نصب
نصب پکیج whl ControlMyPi-0.1.4:
pip install ControlMyPi-0.1.4.whl
نصب پکیج tar.gz ControlMyPi-0.1.4:
pip install ControlMyPi-0.1.4.tar.gz