exe/yee in xilight-0.1.8 vs exe/yee in xilight-0.1.9
- old
+ new
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
require "xilight"
require "dry/cli"
-require 'pry-byebug'
+
module Xilight
module CLI
def self.config_path
File.join(Dir.home, ".config", ".yeelights")
@@ -242,10 +242,10 @@
"on -l 3 # start color flow on light #3"
]
def call(light: 0, name: nil, **)
light =::Xilight::CLI.get_light(light, name)
flow_expression = COLORS.values.first(12).each_slice(2).map(&:first).map do |(r,g,b)|
- "1000,2,#{::Xilight::CLI.rgb_to_i(r,g,b)},100"
+ "4000,1,#{::Xilight::CLI.rgb_to_i(r,g,b)},100"
end.join(',')
light.start_cf(0, 1, flow_expression)
end
end
\ No newline at end of file