Code Monkey home page Code Monkey logo

pytach's Introduction

PyTach

Python library for communicating with GlobalCache iTach IR/RF device.

Features

  • Command line interface
  • REST interface
  • Web interface
  • Arduino I/O

Command line usage

Control device

pytach.py device <device> <command>

List available devicese with pytach.py --help

Activity

pytach.py activity <activity> <command>

List available activities with pytach.py --help

Start web server

pytach.py --web

Accessible on localhost:8080

Start Arduino listener

pytach.py --arduino

Installation

Debian

cd /opt
sudo su - 
git clone https://github.com/gotling/PyTach.git
cd PyTach
pip install -r requirements.txt

Standalone development server

Make PyTach available at http://server:8080

ln -s /opt/PyTach/scripts/pytach-init.sh /etc/init.d/pytach
chmod +x /etc/init.d/pytach
update-rc.d pytach defaults
service pytach start

nginx + uWSGI (recommended)

Make PyTach available at http://server/pytach

apt-get install uwsgi uwsgi-plugin-python nginx
ln -s /opt/PyTach/scripts/pytach-uwsgi.ini /etc/uwsgi/apps-enabled/
service uwsgi restart

Add content of scripts/nginx-config to /etc/nginx/sites-available/default

service nginx restart

Arduino listener

Make Arduino listener start on boot.

ln -s /opt/PyTach/scripts/pytach-arduino-init.sh /etc/init.d/pytach-arduino
chmod +x /etc/init.d/pytach-arduino
update-rc.d pytach-arduino defaults
service pytach-arduino start

Acknowledgements

Bottle

Copyright © 2012 Marcel Hellkamp

http://bottlepy.org/

License: MIT License

docopt

Copyright © 2012 Vladimir Keleshev

http://docopt.org/

License: MIT License

microajax

Copyright © 2008 Stefan Lange-Hegermann

https://code.google.com/p/microajax/

License: BSD License

Pure

Copyright © 2014 Yahoo! Inc

http://purecss.io/

License: BSD License

pySerial

Copyright © 2001-2013 Chris Liechti

http://pyserial.sourceforge.net/

License: Python Software Foundation License

pytach

Copyright © 2012 Mark McWilliams

https://github.com/moolicious/pytach

License: MIT License

pytach's People

Contributors

gotling avatar jimcondon avatar

Stargazers

 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.