MQTT-Explorer icon indicating copy to clipboard operation
MQTT-Explorer copied to clipboard

Feature Request: Render images?

Open jeeftor opened this issue 2 years ago • 11 comments

I've hooked up frigate to MQTT and it will publish snapshots of images into certain topics

For example:

image

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. :)

jeeftor avatar Aug 07 '23 14:08 jeeftor

image

jeeftor avatar Aug 07 '23 14:08 jeeftor

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.

ilgrank avatar Nov 20 '23 23:11 ilgrank

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 avatar Mar 27 '24 15:03 ccci-code

@ccci-code - I believe we have a maintainer again on the project so maybe we can make a PR?

jeeftor avatar Mar 27 '24 16:03 jeeftor

@bj00rn - I believe got "assigned" the job of maintenance

jeeftor avatar Mar 27 '24 16:03 jeeftor

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:

mqtt

ccci-code avatar Mar 29 '24 13:03 ccci-code

@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.

bj00rn avatar Apr 01 '24 12:04 bj00rn

@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 avatar Apr 02 '24 12:04 bj00rn

@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

jeeftor avatar Apr 02 '24 14:04 jeeftor

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.

scubanarc avatar Apr 26 '24 23:04 scubanarc

@ccci-code can you do a PR?

Electron is now up to date and the missing sparkplug.proto is resolved

bj00rn avatar May 02 '24 10:05 bj00rn