Giter VIP home page Giter VIP logo

Comments (12)

thomasnordquist avatar thomasnordquist commented on August 10, 2024 1

Has been released

from mqtt-explorer.

larstobi avatar larstobi commented on August 10, 2024 1

@thomasnordquist It would be great to enable recursively more than 50 topics. If you're worried about users shooting themselves in the foot, you could make it a hidden "power user" option to enable unlimited recursive deletes. I have several topics from using Home Assistant that I need to delete, and they have thousands of subtopics.

from mqtt-explorer.

thomasnordquist avatar thomasnordquist commented on August 10, 2024

Thought about it, dismissed it because I did not know where to put the button.
I actually think this is a great feature to purge a tree of unused retained topics.
I'll add it to the todo list.

from mqtt-explorer.

thomasnordquist avatar thomasnordquist commented on August 10, 2024

I think the recursive model is a bit too powerful, it could potentially clear the hole broker and therefore have unforeseen side-effects.
I think I'll add keyboard support, so one can navigate with the arrow keys and clear topics with backspace/delete keys.

from mqtt-explorer.

xAPPO avatar xAPPO commented on August 10, 2024

That's a shame as it would have been so useful to me. Hive include this functionality as a plugin. I understand the concern but there could be a warning dialog or even an 'advanced features' enable option somewhere. My topics that I wanted to delete are hundreds of sub topics. I couldn't use a delete on each topic.

from mqtt-explorer.

jghaanstra avatar jghaanstra commented on August 10, 2024

Yes please, ran into this recently and ended up purging the entire Mosquitto database to get the job done!

from mqtt-explorer.

thomasnordquist avatar thomasnordquist commented on August 10, 2024

I limited the removal to 50 topics per click, this will be enough to get most of the tiresome work done, without being a "nuke".

Funfact: This feature works well with the search function.
Example: Search for topics containing "PowerState", select the root topic and do the "recursive removal".
The result: All topics containing "PowerState" have been removed.

Will be even more powerful when one can customize the search funktion: Use regex, limit search to topic or message body.

from mqtt-explorer.

thomasnordquist avatar thomasnordquist commented on August 10, 2024

bildschirmfoto 2019-02-18 um 22 18 14

from mqtt-explorer.

cvladan avatar cvladan commented on August 10, 2024

Woow. Thanks! Great tool!

from mqtt-explorer.

thomasnordquist avatar thomasnordquist commented on August 10, 2024

Can now also been done with de Del & Backspace keys.
Released with v0.3.5.

from mqtt-explorer.

tekand avatar tekand commented on August 10, 2024

@thomasnordquist I can second @larstobi 's opinion. I am also working with Home Assistant and it is quite tiring to reset (delete) all the topics.
Maybe it can be introduced as a hidden setting? Or a key combination?
There are definitely "power users" here who know what they are doing. Please give them the option to do what they want. :)

from mqtt-explorer.

larstobi avatar larstobi commented on August 10, 2024

I used a workaround by using a mqtt CLI to recursively delete them.

from mqtt-explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.