Remind me to take out the trash5/17/2023 place the "good" example in the remind.md example section below in a file named remind.md.this file is the heart of this tool, used for scheduling one-time or recurring reminders.otherwise, you can set path -> remindmail -> log in cabinet (see Setup above) for a custom directory.by defualt, remindmail's log path is set to cabinet's default log.(find offset for every 12 days intersecting ) 2677 % 3 = 1, meaning scheduling a reminder for would be sent last week, but not this week (or next week or the week after).The "week number" is calculated by /60/60/24/7. For example, if the current time is 1619394350, then today is Sunday, Apat 11:45:50PM UTC. The Epoch time is the number of seconds since January 1, 1970, UTC.If the answer is 2, then you can add this to remind.md: If you want something to happen every 3 days starting tomorrow, use: Take the results of this function and use it to add an offset. remind edit looks at the path -> edit -> remind -> value property in cabinet's settings.json:.emails reminders in remind.md marked with.This function requires use of SMTP please ensure you've configured this correctly. To test your remind.md without actually sending reminders, use remind -g -dry-run Reminders are generated only every 12 hours, but this can be overcome with remind -g -force # runs every hour at 5 minutes past the hourĥ * * * * python3 /path/to/site-packages/remind/remind.py -g It is highly recommended to schedule this in crontab (Linux, MacOS) by calling crontab -e and adding something like Generates reminders from remind.md that match the condition in brackets, lists all current reminders in remind.md.-o (or -offset): Calculates the offset of a date (see offset).-later: Emails reminders that are marked with.I recommend setting up a crontab (see generate).-g (or -generate): Generates all reminders scheduled for today.-ls (or -l or -list): Lists all current reminders in remind.md.-h (or -help): Displays usage information.0 * * * * remind generate (every hour, generate based on remind.md)."imap_server": "your domain's imap server",Īdd the line below (without the >, without the #, replacing the path with your real path): "smtp_server": "your domain's smtp server", "from": "YourUniqueAndNonGmailEmailAddress", your settings.json file should look similar to this example:.always use a unique email address specifically for this, and especially use a unique password.it's very bad practice to store your password in plaintext for this reason, never sync this file.note that Gmail will not work due to their security restrictions.in cabinet's settings.json, set the email information using the example below.initialize using cabinet config see cabinet's README for details.You need to install and configure cabinet # adjust path accordingly pip install -r /path/to/requirements.mdĬabinet config # cabinet must be configured properly cabinet config do not re-use a password you've used anywhere else use a unique password.do not use an email address that you use in other areas of your life.a unique, non-Gmail address specifically for this project.used to store JSON data specifically, used to store the remind.md path and other important variables.use pip install -r requirements.md to install all dependencies.
0 Comments
Leave a Reply. |