You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a suggestion for optimizing the javascript adapter.
Some of my scripts are not running all the time.
So when i move or delete a datapoint (maybe by uninstalling another adapter), my scripts doesn't recognize that the datapoint is gone.
Not before the script is started or triggered, there will be a error shown in the log.
I would like to prevent this behaviour.
So the soulution could be that the scripts are checked for bad syntax when a datapoint is moved/changed/deleted.
But maybe the javascript adapter won't recognize that there is a change at the datapoints.
So maybe there could be a handshake between Javascript adapter and ioBroker!?
Sorry, i am not a programmer, these are just my thoughts about a possible optimization.
The text was updated successfully, but these errors were encountered:
Let me get this straight... You don't want to see errors when starting scripts that don't work anymore?
Aside from that: Accessing non-existing data points is not easily detectable without running the code, since it is still valid syntax. Even if we add static checks if the getState methods and similar are called with valid data points (which is pretty hard to do on its own), that doesn't mean this feature will find all occurences.
I believe this is something that should be solved in the scripts themselves:
Start --> Check that all necessary states/objects exist --> log error, stop the script OR run the rest of the script
Hi,
i have a suggestion for optimizing the javascript adapter.
Some of my scripts are not running all the time.
So when i move or delete a datapoint (maybe by uninstalling another adapter), my scripts doesn't recognize that the datapoint is gone.
Not before the script is started or triggered, there will be a error shown in the log.
I would like to prevent this behaviour.
So the soulution could be that the scripts are checked for bad syntax when a datapoint is moved/changed/deleted.
But maybe the javascript adapter won't recognize that there is a change at the datapoints.
So maybe there could be a handshake between Javascript adapter and ioBroker!?
Sorry, i am not a programmer, these are just my thoughts about a possible optimization.
The text was updated successfully, but these errors were encountered: