New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the vis-functions are not called #454
Comments
Yes, the function is called Math.round ... there is no "round" in Javascript |
An in fact yes bindings are converted into mini javsscripts and eval'ed ... |
yes, there is no round in javascript, but vis owns a binding-function named round |
Oohh, ok learned something new :-)) @GermanBluefox ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. |
Still relevant |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. |
Describe the bug
in some cases the binding expression is interpreted as eval. then, the resulting javascript want to call the vis function which is not available.
To Reproduce
Steps to reproduce the behavior:
{v1:0_userdata.0.test1;parseFloat(v1);round(1)}
Expected behavior
the result should be 181.4
Screenshots & Logfiles
browser log (callstack removed)
Versions:
vis 1.3.4
https://forum.iobroker.net/topic/12319/rechnen-in-widgets/50?_=1644327092076
The text was updated successfully, but these errors were encountered: