https://github.com/initialed85/zmote
Some Python stuff for use with the Zmote
https://github.com/initialed85/zmote
home-automation python zmote
Last synced: 3 months ago
JSON representation
Some Python stuff for use with the Zmote
- Host: GitHub
- URL: https://github.com/initialed85/zmote
- Owner: initialed85
- License: mit
- Created: 2017-10-29T06:57:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T23:48:11.000Z (over 6 years ago)
- Last Synced: 2025-11-29T09:11:25.386Z (4 months ago)
- Topics: home-automation, python, zmote
- Language: Python
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Unofficial zmote.io interface
=======================
This module serves as a Python interface for the [zmote.io](http://zmote.io/)
IoT gadget- it's basically a USB-powered, WiFI connected IR blaster.
The module was written using the
[zmote.io API documentation](http://www.zmote.io/apis) and tested against two
real devices.
----
#### Overview
This module supports the discovery of devices via multicast and interacting
with devices via HTTP or TCP; in all instances communication is directly
with the device (and not via the zmote.io cloud application).
#### To install for use standalone/in your project
pip install zmote
##### To passively discover all devices on your network until timeout (30 seconds)
python -m zmote.discoverer
##### To actively discover two devices on your local network
python -m zmote.discoverer -l 2 -a
##### To passively discover a particular device on your local network (e.g. in case of DHCP)
python -m zmote.discoverer -u CI001f1234
##### To put a device into learn mode via TCP
python -m zmote.connector -t tcp -d 192.168.1.1 -c learn
##### To tell a device to send an IR signal via HTTP
python -m zmote.connector -t http -d 192.168.1.1 -c send -p 1:1,0,36000,1,1,32,32,64,32,32,64,32,3264
### To install for further development
Prerequisites:
* [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/])
#### Clone the repo
git clone https://github.com/initialed85/zmote
cd zmote
#### Build the virtualenv
mkvirtualenv zmote
pip install -r requirements-dev.txt
#### Run the tests
py.test -v