Still in development. Please open an issue if you have any questions. Currently, not working on Heroku.
Get notifications with your one year ago memories from BeReal. Inspired by Snapchat Memories.
git clone https://github.com/dxrk/BeReal-Memories.git
npm install
npm startMy goal was to make this application was to make sure I wasn't storing any user data. If you have any difficulties with the installation, please open an issue. Otherwise, if you find a way to improve the installation process, please open a pull request.
When you start the script, it will prompt for your BeReal login to then be stored in config.json. It will first prompt for your phone number, then a code will be sent to your phone. Enter the code and you will be logged in.
Here's a guide on how to set up IFTTT to send notifications to your phone: https://sungkhum.medium.com/how-to-easily-push-notifications-to-your-phone-from-a-micropython-device-21d39968e05c
The URL you enter should look like: https://maker.ifttt.com/trigger/trigger_name/with/key/YOUR_KEY
Here's the settings for the IFTTT applet:
Lastly, the script will prompt for your Imgur client ID and secret, and refresh token. This is used to upload the images to Imgur.
- You can find your client ID and secret here.
- You can find your refresh token using this URL template https://api.imgur.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&response_type=token.
- Your refresh token will be in the URL parameters after you authorize the app.
To run the script on Heroku, follow these steps:
- Clone and run the script locally to generate the
config.jsonfile and images folder. - Create a new app on Heroku.
- Upload the files to the app.
- Turn on the
workerdyno.
The script has been set up to be used on Heroku. The index file is set up to be run every day at 8am.
- Shoutout to notmarek for the API implementation found in their project BeFake.
- Imgur is used to upload the images to the cloud, to then be sent in the IFTTT notification.
