summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xproj.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/proj.py b/proj.py
index 3b61160..a85b38c 100755
--- a/proj.py
+++ b/proj.py
@@ -42,12 +42,16 @@ for i in range(1, args_len):
pj.set_power(True)
elif sys.argv[i] == "off":
pj.set_power(False)
+ elif sys.argv[i] == "get":
+ print(pj.get_power())
else:
print("Command not understood.")
elif first_part == "mute":
if sys.argv[i] == "on":
- pj.set_power(True)
+ pj.set_mute(True)
elif sys.argv[i] == "off":
- pj.set_power(False)
+ pj.set_mute(False)
+ elif sys.argv[i] == "get":
+ print(pj.get_mute())
else:
print("Command not understood.")