ceol 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/README.md +11 -8
- data/ceol.gemspec +1 -1
- data/exe/ceol +16 -7
- data/lib/ceol/controller.rb +12 -0
- data/lib/ceol/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c2bb2847b33125328b25d8cd4ff89da3dcc5819e22a55c86af385ae97c41166
|
4
|
+
data.tar.gz: 4cdeca6e7a4d4686aae81f7e4271a742153936f5e0c456a427e6f44fec17f608
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e339cd55fbaaadd7454b79a5602dd2f845ba0767be67d62b3de956e1cd4801232f5ea4d300e34977985bbe5ac2d4556adc0a9ef09a8d44254443813d9c5f3ec4
|
7
|
+
data.tar.gz: 385794fbee15ae1502324a9c4ac2ece05a5d75b12e4055d203c2965163901d6341b2a4ec209142ec4be2bb80af542e66e4108674645b5cc2d2b9796ef4b889b2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.5.1] - 2022-11-05
|
4
|
+
|
5
|
+
- Update required ruby version to 2.7.0 or newer
|
6
|
+
|
7
|
+
## [0.5.0] - 2022-11-05
|
8
|
+
|
9
|
+
- Add `mute` and `unmute` commands
|
10
|
+
- Add command to set volume directly
|
11
|
+
|
3
12
|
## [0.4.0] - 2022-10-19
|
4
13
|
|
5
14
|
- Add `digital` command to select digital in
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -33,14 +33,17 @@ or define a `CEOL_IPADDR` environment variable with the ip address of your CEOL
|
|
33
33
|
In the command line run the executable:
|
34
34
|
|
35
35
|
```
|
36
|
-
$ ceol + #
|
37
|
-
$ ceol ++ #
|
38
|
-
$ ceol - #
|
39
|
-
$ ceol -- #
|
40
|
-
$ ceol
|
41
|
-
$ ceol
|
42
|
-
$ ceol
|
43
|
-
$ ceol
|
36
|
+
$ ceol + # Turns the volume up by 1
|
37
|
+
$ ceol ++ # Turns the volume up by 2 and so on
|
38
|
+
$ ceol - # Turns the volume down by 1
|
39
|
+
$ ceol -- # Turns the volume down by 2 and so on
|
40
|
+
$ ceol 12 # Sets the volume to 12 (or any other value in the range 0..60)
|
41
|
+
$ ceol off # Powers off to standby
|
42
|
+
$ ceol on # Powers on from standby
|
43
|
+
$ ceol digital # Selects digital in
|
44
|
+
$ ceol analog # Selects analog 1 in
|
45
|
+
$ ceol mute # Mutes output
|
46
|
+
$ ceol unmute # Unmutes output
|
44
47
|
```
|
45
48
|
|
46
49
|
## Development
|
data/ceol.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = "A CLI for controlling a Denon CEOL DRA-N5/RCD-N8 system."
|
12
12
|
spec.homepage = "https://github.com/rbgrouleff/ceol"
|
13
13
|
spec.license = "MIT"
|
14
|
-
spec.required_ruby_version = ">= 2.
|
14
|
+
spec.required_ruby_version = ">= 2.7.0"
|
15
15
|
|
16
16
|
#spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
17
17
|
|
data/exe/ceol
CHANGED
@@ -14,15 +14,24 @@ Ceol::Controller.control do |controller|
|
|
14
14
|
controller.digital_in
|
15
15
|
when "analog"
|
16
16
|
controller.analog_1
|
17
|
+
when "mute"
|
18
|
+
controller.mute
|
19
|
+
when "unmute"
|
20
|
+
controller.unmute
|
17
21
|
else
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
22
|
+
begin
|
23
|
+
volume = Integer(commands, 10).clamp(0..60)
|
24
|
+
controller.volume = volume
|
25
|
+
rescue ArgumentError
|
26
|
+
commands.each_char do |command|
|
27
|
+
case command
|
28
|
+
when "+"
|
29
|
+
controller.volume_up
|
30
|
+
when "-"
|
31
|
+
controller.volume_down
|
32
|
+
end
|
33
|
+
sleep(0.5)
|
24
34
|
end
|
25
|
-
sleep(0.5)
|
26
35
|
end
|
27
36
|
end
|
28
37
|
end
|
data/lib/ceol/controller.rb
CHANGED
@@ -36,6 +36,14 @@ module Ceol
|
|
36
36
|
write("SIAUXD")
|
37
37
|
end
|
38
38
|
|
39
|
+
def mute
|
40
|
+
write("MUON")
|
41
|
+
end
|
42
|
+
|
43
|
+
def unmute
|
44
|
+
write("MUOFF")
|
45
|
+
end
|
46
|
+
|
39
47
|
def off
|
40
48
|
write("PWSTANDBY")
|
41
49
|
end
|
@@ -44,6 +52,10 @@ module Ceol
|
|
44
52
|
write("PWON")
|
45
53
|
end
|
46
54
|
|
55
|
+
def volume=(volume)
|
56
|
+
write("MV#{volume.clamp(0..60)}")
|
57
|
+
end
|
58
|
+
|
47
59
|
def volume_down
|
48
60
|
write("MVDOWN")
|
49
61
|
end
|
data/lib/ceol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ceol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rasmus Bang Grouleff
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -50,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.
|
53
|
+
version: 2.7.0
|
54
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - ">="
|