by bambax · 5y ago · 0 comments
The system doesn't try to be clever in any way, it just sends and receives emails; it's proven quite effective. It's been running for about two years now and there are only a couple of days missing, if that. It's very interesting to be able to go back to any day in the past and know what happened, or what I was thinking about, that exact day.
The system can also be set up to handle different journals at different intervals; it helped me write a novel last year.
I'm the only user and it lacks many features to be called an actual product; but sometimes I wonder if others would find it useful.
I guess I have two thoughts: 1) simple, habit-based products aren't nearly as sticky as I thought without some kind of social validation component. 2) dogfooding your projects with your personal network is a great way to see if they're actually sticky and just to learn more about the market in general - I recommend it.
https://techcrunch.com/2010/08/17/ohlife-personal-journal-em...
That confirms there isn't a big market for this... Still happy to use it for myself though.
The db (sqlite) has four tables:
users
tasks
prompts
items
Users have an email address and own tasks. Tasks are metadata, mainly the frequency (in days) and the time of day when the prompt should be sent. Prompts are a log: each time the system sends a prompt about a task it is logged in the prompts table. And items are entries for tasks: users replies to prompts.Every x minutes a python script (cron) scans the db to see if a prompt needs to be sent about a task: for each task, when should the prompt be sent, and when was the last prompt sent?
Emails are handled via Mailgun which is used to send prompts and process replies. When a reply is sent, Mailgun creates a POST request to the system with the body of the email.
Each prompt has a unique ID that is present in the respond-to email, so that replies are correctly attached to a prompt (and therefore to a prompt date and a task); it also allows to reply late: each reply is linked to the prompt it replies to, not to the most recent one. It's also possible to send multiple replies to a single prompt.
Web interface for receiving posts from Mailgun and seeing the entries is coded in PHP, but it's extremely light. There is no functionality for updating entries, creating users, etc.: this is done via phpliteadministrator (very useful) or sometimes directly via SQL. There are also triggers in the db to do integrity checks when inserting or updating.