ioBroker / AdapterRequests

This Place is used to track the status of new Adapter-Requests.
247 stars 36 forks source link

Blockly / JavaScript / Vis: Suchen & Ersetzen (Search & Replace) Adapter #937

Open ScumbagSteve opened 2 weeks ago

ScumbagSteve commented 2 weeks ago

Every now and then you need to replace a device. In Blockly I can at least "search" for the usage of a datapoint and then manually replace all positions in the scripts. In vis you have to manually search all your pages for usages of the old datapoint.

It would be great to have an adapter that provides basic "search & replace" functionality for adapters like:

In my mind, the adapter looks like that:

  1. Fill field: "Search for device / datapoint"
  2. Fill field "Replace with device / datapoint"
  3. Click button "search points of use"
  4. Results are shown, split by adapters. You can validate the "search & replace" results by checking the proposed replacement in the script / vis.
  5. Click button "Confirm replacement"
  6. Done

Btw: I am aware of the "alias" functions, but given the amount of datapoints in use it's higher effort to maintain all alias, then to just replace the devices by hand.

mcm1957 commented 2 weeks ago

Please see README:md

This Place is used to track the status of Requests **for new ioBroker-Adapter**s.

Issues and problems with existing Adapters should be created as issues in the respective Adapter Repository.

https://github.com/ioBroker/AdapterRequests#adapter-requests

ScumbagSteve commented 2 weeks ago

@mcm1957 This is a request for a new adapter. It would be good to provide this as a central functionality and don't implement it as a function in each single adapter.

mcm1957 commented 2 weeks ago

OK, I will reopen - BUT I do not think that is a good idea as this would required to implemnt knowledge of vis, blockly, etc into an adapter, And in my oppinion no foreign Adapter should try to modify the internal structures of vis, blockly, etc.

mcm1957 commented 2 weeks ago

@Apollon77 Could you please take a short look. I do not think that it would be a good idea if an adapter will try to replace strings within the configuration of oterh adapters / of vis / of scripts. One adaper should never modify the config of other (!) adapters.

I would still suggest to close here - but it would be good to know your oppinion.