summaryrefslogtreecommitdiff
path: root/src/sound_sensor_node.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound_sensor_node.py')
-rwxr-xr-xsrc/sound_sensor_node.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound_sensor_node.py b/src/sound_sensor_node.py
index c5f21a3..d9a8999 100755
--- a/src/sound_sensor_node.py
+++ b/src/sound_sensor_node.py
@@ -27,6 +27,7 @@ if __name__ == '__main__':
node = SoundSensorNode(name=config['node']['name'],
pinname=config['node']['pin'],
+ threshold=config['node']['threshold'] if 'threshold' in config['node'] else 1,
server_addr=server_addr,
**kwargs)
node.run()