Skip to content

Commit 4395bbc

Browse files
Update README.md
1 parent 29cb2bd commit 4395bbc

File tree

1 file changed

+69
-17
lines changed

1 file changed

+69
-17
lines changed

README.md

Lines changed: 69 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ piir --help
9494

9595
Output will be like:
9696
```
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+
97104
usage: piir
98105
--remote, -r CONFIGFILE
99106
[--feature, -f NAME=VALUE]
@@ -106,32 +113,77 @@ examples: piir --help
106113
piir --remote tv_sony --feature action=TURN_ON
107114
```
108115

109-
Getting list of all available remotes is collected simply by calling piir:
116+
Specific help on available features for a particular remote can be achieved by:
110117
```
111-
piir
118+
piir --remote hvac_panasonic --help
112119
```
113120

114121
Output will be like:
115122
```
116-
Missing configfile setting
117-
Available configuration files in /root/piir/conf/remotes/:
118-
hvac_panasonic
119-
...
120-
Available configuration files in /usr/local/share/piir/conf/remotes/:
121-
hvac_panasonic
122-
...
123-
```
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
124173
125-
Specific help for a particular remote can be achieved by:
126-
```
127-
piir --remote hvac_panasonic --help
128-
```
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]
129179
130-
Output will be like:
131-
```
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
132184
```
133185

134-
A live example running the tool would be:
186+
A working example that runs the tool is:
135187
```
136188
piir --remote hvac_panasonic --feature temperature=21 --feature mode=HEAT --feature option=AUTO --feature fan=AUTO --feature updown=HIGH --feature leftrights=MIDDLE --verbose=DEBUG
137189
```

0 commit comments

Comments
 (0)