python-pushover icon indicating copy to clipboard operation
python-pushover copied to clipboard

Could you do a release with the image attachments?

Open rwifall opened this issue 8 years ago • 10 comments

A new release that includes the image attachments functionality would be useful.

rwifall avatar Feb 17 '18 19:02 rwifall

Would love some documentation on how to use it too - took me a while to figure out I needed to do attachment = ("image.jpg", open(img, "rb"), "image/jpeg") instead of just passing a file path.

brandonscript avatar Feb 24 '18 19:02 brandonscript

Bump...

brandonscript avatar Apr 04 '18 23:04 brandonscript

@brandonscript the simple way to use it is to pass any file-like object via the attachment keyword when sending a message.

messenger = pushover.Client(PUSHOVER_USER_KEY, api_token=PUSHOVER_API_TOKEN)

with open('/path/to/my/image.png', 'rb') as image:
    messenger.send_message('Test message with image', attachment=image)

dchevell avatar Apr 09 '18 04:04 dchevell

Hi, would it be possible to include this functionality into a 0.4 release? I see the functionality was added in pull #24, but I don't see it bundled as a release. I'm working on some changes for the Home Assistant project that could greatly benefit from this functionality. I'd be happy to help if there's anything that's needed. Thanks!

brkr19 avatar Apr 09 '18 18:04 brkr19

@Thibauth ^

dchevell avatar Apr 20 '18 05:04 dchevell

This is blocking https://github.com/home-assistant/home-assistant/pull/13748.

fabaff avatar May 08 '18 22:05 fabaff

Thanks everyone and sorry for the delay, I should be able to do this in the next couple of days.

Thibauth avatar May 08 '18 22:05 Thibauth

@Thibauth let me know if I can help in a more general fashion with this project, if there is basic maintenance / release work I can do, or if I can help with automating deployment of new releases etc.

dchevell avatar May 09 '18 00:05 dchevell

I just did a new release (0.4) with the attachment feature. Thanks again for the help and sorry for the delay. Please let me know if anything is broken.

@chevell I would be happy to give you access to the repository if you think you could help with general maintenance.

Thibauth avatar May 13 '18 15:05 Thibauth

Thanks

rwifall avatar May 28 '18 00:05 rwifall