Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Render images? #734

Open
jeeftor opened this issue Aug 7, 2023 · 11 comments
Open

Feature Request: Render images? #734

jeeftor opened this issue Aug 7, 2023 · 11 comments

Comments

@jeeftor
Copy link

jeeftor commented Aug 7, 2023

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
Copy link
Author

jeeftor commented Aug 7, 2023

image

@ilgrank
Copy link

ilgrank commented Nov 20, 2023

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.

@ccci-code
Copy link

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

@jeeftor
Copy link
Author

jeeftor commented Mar 27, 2024

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

@jeeftor
Copy link
Author

jeeftor commented Mar 27, 2024

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

@ccci-code
Copy link

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

@bj00rn
Copy link
Collaborator

bj00rn commented Apr 1, 2024

@ccci-code feel free to have a look at #757

There seems to bee something work with the sparkplugb stuff. Looks like sparkplug_b.proto

const buffer = readFileSync(require.resolve('../../../../res/sparkplug_b.proto'))
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
Copy link
Collaborator

bj00rn commented Apr 2, 2024

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

@jeeftor
Copy link
Author

jeeftor commented Apr 2, 2024

@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

@scubanarc
Copy link

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.

@bj00rn
Copy link
Collaborator

bj00rn commented May 2, 2024

@ccci-code can you do a PR?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants