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

node-red-node-pushover support for attachment_base64 and attachment_type #1066

Open
freman opened this issue May 14, 2024 · 1 comment
Open

Comments

@freman
Copy link

freman commented May 14, 2024

Hey, so, node-red-node-pushover has been working brilliantly but I've had a change of workflow that includes sending the images that I was previously attaching as base64. I tried a couple of different ways of passing it to the node before I went poking around the source and I don't think it supports it.

Could we please have support for attachment_base64 and attachment_type (https://pushover.net/api#attachments-base64)?

@kerwitz
Copy link

kerwitz commented Aug 7, 2024

The Pushover node supports buffers in msg.attachment, so you can provide a base64 encoded image like this if you have it in a string:

msg.attachment = Buffer.from(msg.payload.picture, 'base64')
return msg

Put this into a function node before the pushover node and you should be golden.

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

2 participants