MQTT-Explorer
MQTT-Explorer copied to clipboard
Feature Request: Render images?
I've hooked up frigate to MQTT and it will publish snapshots of images into certain topics
For example:
It would be pretty cool if MQTT explorer could render an image in the UI when you opened an Image (or even fancier video) topic. :)
In case you haven't noticed, the author is away from the project since years. Just telling you in case you expected/hoped for a reply from him.
I wanted to use with Frigate too so I hardcoded the option to display snapshots by inspecting the base64 string. If it starts with /9, I assume it's JPG and I display in a tag. It works when I run using yarn, but I haven't been able to build a binary release because I get an error about not finding sparkplug_b.proto.
Forked at https://github.com/ccci-code/MQTT-Explorer
@ccci-code - I believe we have a maintainer again on the project so maybe we can make a PR?
@bj00rn - I believe got "assigned" the job of maintenance
I added support for PNG just for fun. I was able to build a binary release after removing the sparkplug references. Here's how it looks:
@ccci-code feel free to have a look at https://github.com/thomasnordquist/MQTT-Explorer/pull/757
There seems to bee something work with the sparkplugb stuff. Looks like sparkplug_b.proto https://github.com/thomasnordquist/MQTT-Explorer/blob/93010dc06e5e4d258a1d4988b64b5b008f122904/backend/src/Model/sparkplugb.ts#L6 is not being bundled for some reason.
It would be awesome if we could get something like https://github.com/marketplace/actions/electron-builder-action set up for this repo to automatically build pre releases until we get enough attention from the maintainer to do a proper release.
@ccci-code edit: I fixed the sparkplug issue. If we can get #757 merged, we can begin looking at features. I don't have much time for this project and my expericence with electron packaging is limited.
@bj00rn - I haven't touched electron in years but I'm glad at least somebody is able to make actual code changes to this. I think getting images into MQTT would be huge
I also use Frigate and also would like to have images rendered in MQTT-Explorer. The solution that ccci-code posted above is perfect. If this could be merged in I would be very grateful.
@ccci-code can you do a PR?
Electron is now up to date and the missing sparkplug.proto is resolved