PiSrf: Added decimal places option + stop bugfix + more keywords (#816)

* Added decimal places option + bugfix + keywords

Added option to output more decimal places. When no decimal places are configured output stays the same for full backward compatibility.

Fixed bug that on restart flows error "Error stopping node: Close timed out" occured. Also removed sudo, because no need to run code with root rights. On systems where you need password for sudo it wouldn't run then. 

Added Keywords for "HC-SR04" and "SR04", because this module is fully compatible with this node.

* Added decimal places option + bugfix + keywords

Added option to output more decimal places. When no decimal places are configured output stays the same for full backward compatibility.

Fixed bug that on restart flows error "Error stopping node: Close timed out" occured. Also removed sudo, because no need to run code with root rights. On systems where you need password for sudo it wouldn't run then. 

Added Keywords for "HC-SR04" and "SR04", because this module is fully compatible with this node.

* Added decimal places option + bugfix + keywords

Added option to output more decimal places. When no decimal places are configured output stays the same for full backward compatibility.

Fixed bug that on restart flows error "Error stopping node: Close timed out" occured. Also removed sudo, because no need to run code with root rights. On systems where you need password for sudo it wouldn't run then. 

Added Keywords for "HC-SR04" and "SR04", because this module is fully compatible with this node.
This commit is contained in:
JsBergbau
2021-07-08 09:32:55 +02:00
committed by GitHub
parent 4859a8bcc0
commit 245109940c
5 changed files with 22 additions and 10 deletions

View File

@@ -4,4 +4,4 @@ python_cmd='python3'
command -v python3 > /dev/null || python_cmd=`python`
BASEDIR=$(dirname $0)
sudo $python_cmd -u $BASEDIR/nrsrf.py $@
exec $python_cmd -u $BASEDIR/nrsrf.py $@