* 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.
* Print error on exception and tweak GPIO setup
* Restart script on timeout
* Add GPIO.cleanup to restart() function
* Use interrupts instead of polling input pin state