-
Notifications
You must be signed in to change notification settings - Fork 7
/
EXAMPLES.txt
105 lines (61 loc) · 2.31 KB
/
EXAMPLES.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
python-openzwave
****************
You don't need to install (but building it) python-openzwave to test
examples.
ozwsh
=====
A shell manager for your ZWave network. It use urwid and louie python
extensions. If needed, type the following command to install them :
sudo pip install urwid louie
Start ozwsh with :
./ozwsh.sh --device=/dev/yourzwavestick
It allows you to :
* Reset controller (hard and soft) and add/remove
device/controller
* Change node informations (name, location, ... )
* view and change values informations
* view and change group informations
* Full management of scenes, switches, dimmers and sensors
It's a shell like manager. You can visit your zwave network using the
command cd. All available commands are displayed on every screens. You
can use the tab keys to switch between the view panel and the edit
panel and the up and down ones to view all informations.
For the developpers : this a good example on how to use the api.
Update are sent to uwird widget using louie notifications. ZWave data
updates are done in the set, add, delete, remove, ... methods.
There is some others examples, to test them :
cd examples
./build_examples.sh
This will install all the needed files used by the examples in a
temporary directory.
api_demo
========
A test demo for the api : it list all nodes/values on your network,
trying to identify your switches, dimmers and sensors.
Start it with :
./api_demo.py --device=/dev/yourzwavestick
test_lib
========
A test demo for the library : connect to the network and sniff for
notifications.
Start it with :
./test_lib.py --device=/dev/yourzwavestick --sniff=30
api_snif
========
A test demo for the api : connect to the api and sniff for louie
signal from it.
Start it with :
./api_sniff.py --device=/dev/yourzwavestick --sniff=30
memory_use
==========
Try to evaluate the memory use of the api.
Start it with :
./memory_use.py --device=/dev/yourzwavestick
Other examples
==============
manager : my first try to use uwird. I don't think I will developp it
anymore. Feel free to fork it.
The old directory contains examples of py-openzwave (the ancestor of
python-openzwave), feel free to upgrade them.
If you develop some examples using python-openzwave library, send us
the sources, they will be addes to examples.