Skip to main content

Client library for ControlMyPi scripts.

Project description

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

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 for more help.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ControlMyPi-0.1.4.tar.gz (16.7 kB view details)

Uploaded Source

File details

Details for the file ControlMyPi-0.1.4.tar.gz.

File metadata

  • Download URL: ControlMyPi-0.1.4.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ControlMyPi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 43d9de9d0f1da9fce2cf0991043f533133e9b4b02168e2fa3759a2170c4dcbb3
MD5 0e5a9627b25a8d468d517a05d0b9986f
BLAKE2b-256 568adc3ce6ebc08945bd22446c7e1d445c520aaeb855f3d68258ec7925892b68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page