Skip to content
/ PyTach Public
forked from gotling/PyTach

Python library for communicating with GlobalCache iTach IR/RF device

License

Notifications You must be signed in to change notification settings

mrtnkhl/PyTach

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python library for communicating with GlobalCache iTach IR/RF device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 46.6%
  • Smarty 26.6%
  • Shell 11.1%
  • JavaScript 10.4%
  • CSS 5.3%