Skip to content

Commit ba94d3c

Browse files
Merge branch 'master' of https://github.com/mortenmathiasen/piir
2 parents 72772b7 + 4395bbc commit ba94d3c

File tree

1 file changed

+119
-4
lines changed

1 file changed

+119
-4
lines changed

README.md

Lines changed: 119 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,27 @@ To be able to transmit IR signal you need an IR led, either:
3939

4040
### Compilation
4141

42-
Get latest PIGPIO library:
42+
Update package list:
4343
```
4444
sudo apt update
45+
```
46+
47+
Install PIGPIO library:
48+
```
4549
sudo apt install -y pigpio
4650
```
4751

48-
Download the PIIR software from [https://github.com/mortenmathiasen/piir](https://github.com/mortenmathiasen/piir) and compile it:
52+
Install Autotools to enable compilation
53+
```
54+
sudo apt-get install -y autoconf automake libtool
55+
```
56+
57+
Download the PIIR software from [https://github.com/mortenmathiasen/piir](https://github.com/mortenmathiasen/piir):
58+
```
59+
git clone https://github.com/mortenmathiasen/piir.git
60+
```
61+
62+
Now you can compile it
4963
```
5064
cd piir
5165
./autogen.sh
@@ -69,9 +83,110 @@ make check
6983

7084
## Deployment
7185

72-
You can deploy the PIIR tool to any live system.
86+
You can deploy the PIIR tool to any live system. Either you can compile the sourced code directly on the live system as explained above or you can compile it on another development system and then move the execution file to your live system.
87+
88+
## How to use
89+
90+
You kan get command line help running:
91+
```
92+
piir --help
93+
```
94+
95+
Output will be like:
96+
```
97+
Available configuration files in /home/pi/piir/conf/remotes/:
98+
hvac_panasonic
99+
...
100+
Available configuration files in /usr/local/share/piir/conf/remotes/:
101+
hvac_panasonic
102+
...
103+
104+
usage: piir
105+
--remote, -r CONFIGFILE
106+
[--feature, -f NAME=VALUE]
107+
[--verbose, -v (TRACE|DEBUG|INFO|WARN|ERROR|FATAL|NOTHING)]
108+
[--help, -h]
109+
110+
examples: piir --help
111+
piir --remote hvac_panasonic --help
112+
piir --remote hvac_panasonic --feature temperature=21
113+
piir --remote tv_sony --feature action=TURN_ON
114+
```
115+
116+
Specific help on available features for a particular remote can be achieved by:
117+
```
118+
piir --remote hvac_panasonic --help
119+
```
120+
121+
Output will be like:
122+
```
123+
Features in config file /home/pi/piir/conf/remotes/hvac_panasonic.json:
124+
temperature:
125+
8
126+
10
127+
16
128+
17
129+
18
130+
19
131+
20
132+
21
133+
22
134+
23
135+
24
136+
25
137+
26
138+
27
139+
28
140+
29
141+
30
142+
mode:
143+
AUTO
144+
HEAT
145+
COOL
146+
FAN
147+
OFF
148+
option:
149+
AUTO
150+
QUIET
151+
POWERFUL
152+
fan:
153+
AUTO
154+
VERYSLOW
155+
SLOW
156+
MEDIUM
157+
FAST
158+
VERYFAST
159+
updown:
160+
AUTO
161+
VERYLOW
162+
LOW
163+
MIDDLE
164+
HIGH
165+
VERYHIGH
166+
leftright:
167+
AUTO
168+
VERYLEFT
169+
LEFT
170+
MIDDLE
171+
RIGHT
172+
VERYRIGHT
173+
174+
usage: piir
175+
--remote, -r CONFIGFILE
176+
[--feature, -f NAME=VALUE]
177+
[--verbose, -v (TRACE|DEBUG|INFO|WARN|ERROR|FATAL|NOTHING)]
178+
[--help, -h]
179+
180+
examples: piir --help
181+
piir --remote hvac_panasonic --help
182+
piir --remote hvac_panasonic --feature temperature=21
183+
piir --remote tv_sony --feature action=TURN_ON
184+
```
73185

74-
Either you can compile the sourced code directly on the live system as explained above or you can compile it on another development system and then move the execution file to your live system.
186+
A working example that runs the tool is:
187+
```
188+
piir --remote hvac_panasonic --feature temperature=21 --feature mode=HEAT --feature option=AUTO --feature fan=AUTO --feature updown=HIGH --feature leftrights=MIDDLE --verbose=DEBUG
189+
```
75190

76191
## Built With
77192

0 commit comments

Comments
 (0)