lightwaverf 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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' )
|