From cb1ba09b2a36767afea74460947963542a04be53 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 21 Feb 2023 13:08:20 -0600 Subject: update proj.py to also allow getting status --- proj.py | 8 ++++++-- 1 file 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.") -- cgit v1.2.3