-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpioneer.cli.php
executable file
·36 lines (34 loc) · 1.39 KB
/
pioneer.cli.php
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
#!/usr/bin/php
<?php
/* pioneer.cli.php :: Pioneer VSX-1022-K (Future) CLI Tool
* Part of Quinn Ebert's "Pioneer Rebel" Software Project
*
* DISCLAIMER:
* "Pioneer Rebel" is a software project wholly unaffiliated with Pioneer
* Electronics. In no way is "Pioneer Rebel" authorized, supported,
* acknowledged, or endorsed by Pioneer Electronics. FURTHERMORE, you use
* this software project AT YOUR OWN RISK. The possibility indeed exists
* that bugs exist in this software which could lead to catastrophic
* failure of your Pioneer Electronics equipment. In no event shall Quinn
* Ebert or Pioneer Electronics be held in any way liable for malfunction,
* damage, or destruction to your personal property (including but not
* limited to personal property created and/or manufactured by Pioneer
* Electronics) arising from your use of (or failure to use) this project.
*/
require 'pioneer.lib.php';
//$olA = pvRebel_getVolVal('192.168.1.Xyz');
//$olB = pvRebel_getVolPct('192.168.1.Xyz');
//$olC = pvRebel_getMuting('192.168.1.Xyz');
//$olD = pvRebel_getSource('192.168.1.Xyz');
//echo("VAL: $olA\nPCT: $olB\n");
/*if ($olC!==false) {
// Just remember, 1022-K uses '0' for muted and '1' for un-muted,
// reverse of what you might expect:
if ( $olC ) {
echo("The receiver isn't muted!\n");
} else {
echo("The receiver *is* muting!\n");
}
}*/
//echo("$olD\n");
?>