bartbutenaers / node-red-contrib-calc Goto Github PK
View Code? Open in Web Editor NEWA Node-Red node to perform basic mathematical operations
License: Apache License 2.0
A Node-Red node to perform basic mathematical operations
License: Apache License 2.0
The constant field is integer only. Please make it support floating point.
I'm using Node-Red v1.1.0 from within Home Assistant, and find that I'm unable to enter a number for the rounding option - it always reverts to zero. I downloaded the node from the Manage Palette menu.
(This issue seems to have been reported previously for an earlier version of Node-Red, and was subsequently closed. It's a very handy node and thanks to the Developer for providing it.)
Jim
Great calculator for Node Red, question regarding the round upwards/downwards. Would it be possible to ad a feature to round on decimals, for example:
0.86 -> 0.9
0.84 -> 0.8
Many thanks, keep up the great work!
Great addition to node-red.
It would be great to have percentage calculation like using a percentage value instead of the constant in the constant field.
This way, the output would be the payload after the percentage addition/subtraction.. and so forth.
Is this built in, the docs only mention an array passed in.
Is there a way to build and store an array for averages in nodered?
Maybe batch every x, or some global buffer?
Not sure how persistent data works in nodered, but it would be nice to have a small bucket for math operations. Oddly enough I see values in my average but i have no idea how its working/storing subsequent msgs
You call this node calc
, yet in the palette it is called calculator
.
There is another node with a very similar name and it makes it annoying not having the node name match the name in the palette.
https://flows.nodered.org/node/node-red-contrib-calculate
On your example page, the node's icon isn't show - just a blank function node.
The actual node has a calculator icon.
That too throws a spanner in the works when trying to find it.
Hi there - really useful addition to Node-RED, but was disappointed to see that log10 was left out. Any chance it could be included in a release in the near future? Thanks!
I have a small feature request.
You have used https://en.wiktionary.org/wiki/%CE%A3 as symbol for this node.
As this node does much more than calculating the sum of numbers, I think that a "calculator" icon would be better.
when you got the time and mood please add a truncate option for decimals too, the round to decimals is rounding up/down, while a trunc option could cut from 5 decimals to 2 decimals without rounding. (ex. 3.19 round to 1 decimal is 3.2 but trunc to 1 decimal is 3.1)
thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.