Explorar el Código

Announce garage door activations, if a username is provided

Zachary Kotlarek hace 13 años
padre
commit
f33925a694
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      dmx/garage.pl

+ 5 - 0
dmx/garage.pl

@@ -98,6 +98,11 @@ while (1) {
 	# Update the relay
 	if ($update) {
 
+		# Annouce the command
+		if ($exists{'GARAGE_CMD'}) {
+			DMX::say('Garage door activated by ' . $exists{'GARAGE_CMD'});
+		}
+
 		# Toggle
 		$state = 'ACTIVATE';
 		DMX::applyDataset($DIM{$state}, $state, $OUTPUT_FILE);