forked from joe-trellick/PyMetaWatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
60 lines (39 loc) · 1.38 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Original code by Travis Goodspeed https://github.com/travisgoodspeed/PyMetaWatch
Forked from Joe Hughes https://github.com/joehughes/PyMetaWatch
Supports:
- bluetooth or tty connections
- auto-reconnect
- control over all buttons
- basic mapping of buttons to shell commands
- sending images
- sending text
Python dependencies:
- PIL (for sending images and text)
- config
Usage:
Default (uses serial mode - drops into idle mode)
python pymw.py --<type> <device> <mode>
------------------------------------
Device/Type Selection
TTY Serial
python pymw.py --serial </dev/tty.device>
Bluetooth
python pymw.py --bt <watch-address>
-----------------------------------
Modes
Interactive mode (enables all buttons and maps them to shell commands defined in pywm.cfg)
python pymw.py --<type> <device> interactive
Command line mode (send and image)
python pymw.py --<type> <device> --image <image.bmp>
Command line mode (send text)
python pymw.py --<type> <device> --text "some text"
Test Mode (continuously sends a testbuffer)
python pymw.py --<type> <device> testbuffer
-----------------------------------
These URLs are handy,
http://www.dpin.de/~nils/metawatch
http://www.metawatch.org/development.html
http://retrovirus.com/incr/2011/09/metawatch-hacks-resources/
Image sources:
dalek.bmp was derived from Dalek Stencil by Styrr
http://styrr.deviantart.com/art/Dalek-stencil-178678725