Skip to content

Commit 1afe45d

Browse files
committed
First Commit
0 parents  commit 1afe45d

File tree

4 files changed

+1850
-0
lines changed

4 files changed

+1850
-0
lines changed

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2010, Issac Kelly
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the tastypie nor the
12+
names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL tastypie BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rst

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
============
2+
WeMo Hacking
3+
============
4+
5+
I've spent some time reverse engineering my WeMo switch. It's pretty cool and I figured out how to get it to do what I wanted. It's based on UPnP, which I found the miranda
6+
tool to be the best (closest to working with WeMo, and easiest to read)
7+
8+
I had to make some modifications to the miranda package to get it working, and to get it properly reporting the details of the device.
9+
10+
To use, download, cd into the wemo folder and open a python intepreter::
11+
12+
$ python
13+
>>> from wemo import on, off, get
14+
Entering discovery mode for 'upnp:rootdevice', Ctl+C to stop...
15+
16+
Error updating command completer structure; some command completion features might not work...
17+
Error updating command completer structure; some command completion features might not work...
18+
****************************************************************
19+
SSDP reply message from 192.168.1.133:49153
20+
XML file is located at http://192.168.1.133:49153/setup.xml
21+
Device is running Linux/2.6.21, UPnP/1.0, Portable SDK for UPnP devices/1.6.6
22+
****************************************************************
23+
24+
Discover mode halted...
25+
>>> get()
26+
True
27+
>>> on()
28+
True
29+
>>> off()
30+
True
31+
>>> get()
32+
False
33+
>>> on()
34+
True
35+
>>>

0 commit comments

Comments
 (0)