lightwaverf 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lightwaverf.rb +4 -3
- metadata +1 -1
data/lib/lightwaverf.rb
CHANGED
@@ -478,9 +478,10 @@ class LightWaveRF
|
|
478
478
|
debug and ( p 'Executing send on device: ' + device + ' in room: ' + room + ' with ' + ( state ? 'state ' + state : 'no state' ))
|
479
479
|
|
480
480
|
|
481
|
-
|
482
|
-
|
483
|
-
|
481
|
+
# starting to optionally move some functionality out of here
|
482
|
+
alternativeScript = self.get_config['pywaverf']
|
483
|
+
if alternativeScript and File.exist?( alternativeScript )
|
484
|
+
cmd = "#{alternativeScript} \"#{room}\" \"#{device}\" \"#{state}\" \"#{debug}\""
|
484
485
|
debug and ( p cmd )
|
485
486
|
p `#{cmd}`
|
486
487
|
debug and ( p self.time 'done python' )
|