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: Send (Mail,DM) top pick photos from the past #683

Closed
bpatrik opened this issue Jul 29, 2023 · 7 comments
Closed

Feature: Send (Mail,DM) top pick photos from the past #683

bpatrik opened this issue Jul 29, 2023 · 7 comments
Assignees
Milestone

Comments

@bpatrik
Copy link
Owner

bpatrik commented Jul 29, 2023

Main effort

I want to improve engagement and memory discovery in the app. This feature falls into this category

Vision of this Feature

As a family we use Facebook Messenger to communicate. I would like pigallery2 to send every Monday 10AM a set of photos that happened on the same week, but years earlier.

Prerequisite

Nothing by now. It was blocked on #660.

Design

Getting the photos

I will create a new Job that can run periodically. Users can set a search query, sort order and number of photos/videos to pick.
(It will use the same logic as random photo in the background, but it will allow sorting and more than just one photo)

Sending the photos

This is the tricky part. I will def. support sending over e-mail and I would like to at least support FB Messenger. I understand that everyone uses different way of messages (IMessage, WhatsApp, Telegram, etc.). I will try to look if there is any free and simple messenger hub that offers an API to send photos to group chats on a given platform. If anyone know one, please don't hesitate to share.
If such easy and common hub does not exists, I will just support e-mail and FB Messenger and try to make the architecture easy enough, so others can send a PR for other services.

@bpatrik bpatrik added this to the Next milestone Jul 29, 2023
@bpatrik bpatrik self-assigned this Jul 29, 2023
bpatrik added a commit that referenced this issue Jul 29, 2023
bpatrik added a commit that referenced this issue Jul 30, 2023
bpatrik added a commit that referenced this issue Jul 30, 2023
bpatrik added a commit that referenced this issue Jul 30, 2023
bpatrik added a commit that referenced this issue Jul 30, 2023
bpatrik added a commit that referenced this issue Jul 30, 2023
bpatrik added a commit that referenced this issue Jul 30, 2023
@ltctceplrm
Copy link

I will try to look if there is any free and simple messenger hub that offers an API to send photos to group chats on a given platform. If anyone know one, please don't hesitate to share.

The only such hub that I'm aware of (and have tried myself) is Apprise, it has email support as well as several chat apps like Telegram but I don't see Facebook Messenger on the list unfortunately so you'd still have to add that

@bpatrik
Copy link
Owner Author

bpatrik commented Aug 1, 2023

So the e-mail sending part I was able to create, but that is only half success.

Thanks for the Apprise, but its not necessary what I'm looking for. 1) i would prefer not to add python dependency to the app to keep is simple. 2) I wanted something I send a HTTP request to and forwards the message to the right place. Like an external messaging hub.

I tried to understand FB messenger and it seems that officially it is not possible to send messages to a group. Bot can only reply on pages: https://stackoverflow.com/questions/53598526/facebook-graph-api-how-to-send-chat-message-to-all-members-of-a-group

@bpatrik
Copy link
Owner Author

bpatrik commented Aug 1, 2023

Having a second though.
I will probably hack the FB Messanger call in with: https://www.npmjs.com/package/facebook-chat-api, https://www.npmjs.com/package/luna-messenger-api and tag the feature as experimental and dangerous in the short term (if these packages even work)

In the long term, I will try to come up with some add-on methods, where every can implement their own messaging method.

bpatrik added a commit that referenced this issue Aug 1, 2023
bpatrik added a commit that referenced this issue Aug 1, 2023
bpatrik added a commit that referenced this issue Aug 1, 2023
Note it will trigger a DB drop as the scheme changed. #683
bpatrik added a commit that referenced this issue Aug 2, 2023
bpatrik added a commit that referenced this issue Aug 2, 2023
bpatrik added a commit that referenced this issue Aug 2, 2023
bpatrik added a commit that referenced this issue Aug 3, 2023
 Our bullseye also does not support it natively. Let's just use SMTP. That makes everything simpler.

 #683
bpatrik added a commit that referenced this issue Sep 8, 2023
bpatrik added a commit that referenced this issue Sep 8, 2023
@bpatrik
Copy link
Owner Author

bpatrik commented Sep 20, 2023

kinda works. Good enough for this release. UX can be improved as it is a bit hard to use. But it will evolve as I use it more often.

@bpatrik bpatrik closed this as completed Sep 20, 2023
@knalltuete86
Copy link

Great Feature! I just tested on 2.0.0 and it works well so far!

Just one question: Is there any template file or something similiar to modify the Mail-Design for my needs?

@bpatrik
Copy link
Owner Author

bpatrik commented Nov 13, 2023 via email

@iball
Copy link

iball commented Jan 13, 2024

Some of us are running our own email bridge locked down to specific IP addresses with no authentication required.
Any way to mod it so we can save the connection info without requiring a password since the bridge doesn't require it?

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

No branches or pull requests

4 participants