Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
node-red-contrib-voltage_undivider
Advanced tools
A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value.
Node-RED A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value.
Install with node-red Palette Manager or,
Run the following command in your Node-RED user directory - typically ~/.node-red
:
npm install node-red-contrib-voltage_undivider
A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value. Just insert the node in between two others. Then the voltage received can be corrected, undivided, to show voltage before the physical voltage devider.
Define the msg property name you wish. The name you select (msg.example) will also be the output property
The payload must be a number! Anything else will try to be parsed into a number and rejected if that fails.Select the voltage scale for the Input. Voltages from diffrent sources may be represented in diffrent scales. Example; a ADC (Anolog to Digital Converter may output in mV. You must select the correct input voltage scale or your output will be wrong.
Select the resistor scale for the resistor used. Then enter the resistance.
Select the resistor scale for the resistor used. Then enter the resistance.
Select the voltage scale you want for the Output. If you have selected the correct scale on the input the output scale you have selected will be automaticly converted to the voltage you want.
If you would like your output to be rounded then select the level you want. Note: if you choose not to round the maximum integer length is 15 digits. The maximum length after a decimals is 17 digits.
Simple examples showing how to use the voltage_undivider.
[{"id":"6c3f0ba9.131de4","type":"change","z":"7edb64d7.2216cc","name":"Anolog Digital Converter","rules":[{"t":"set","p":"payload","pt":"msg","to":"3.25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":320,"wires":[["5ad1bd27.e1b3b4"]]},{"id":"c0a340e7.a8288","type":"debug","z":"7edb64d7.2216cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":320,"wires":[]},{"id":"1782d03a.4e4ae","type":"inject","z":"7edb64d7.2216cc","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":320,"wires":[["6c3f0ba9.131de4"]]},{"id":"5ad1bd27.e1b3b4","type":"voltage_undivider","z":"7edb64d7.2216cc","name":"","Voltage_Input":"V-Volts","Resistor_1":"1.1","Resistor_1Types":"Ω-Ohm","Resistor_2":"2.1","Resistor_2Types":"Ω-Ohm","Voltage_Output":"V-Volts","Round_Output":"Thousandths","x":530,"y":320,"wires":[["c0a340e7.a8288"]]}]
Please report bugs and feel free to ask for new features directly on GitHub.
This project is licensed under Apache 2.0 license.
_Need a node? _Need automation work? _Need computers to flip switches?
Contact me at meeki007@gmail.com
Thanks to SunValleyFoods for being a buisness that supports opensource. They needed this node for a monitoring and automation project for their equipment.
0.0.0 = (majorchange) . (new_feature) . (bugfix-simple_mod)
version 0.8.9 Property option added to node bug fix for checks if null value
version 0.7.8 updated help txt updated images updated example code
version 0.7.7 fixed install command
version 0.7.6 First Public release
FAQs
A Node to un-divide a voltage that was divided prior to taking a reading to protect a input when reading its value.
We found that node-red-contrib-voltage_undivider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.