skip to navigation
skip to content

ControlMyPi 0.1.4

Client library for ControlMyPi scripts.

ControlMyPi 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})

p = [ [ ['E','echobox','send'],['S','echo','-'] ] ]
conn = ControlMyPi('', 'pwd', 'tiny', 'Tiny', p, on_msg)
if conn.start_control():
                raw_input("Press Enter to finish\n")

Please read the documentation links on ControlMyPi for more help.

File Type Py Version Uploaded on Size
ControlMyPi-0.1.4.tar.gz (md5) Source 2014-12-19 16KB