A Node.js application that imports App.net posts into Day One using the Day One CLI.
adn2do is a Node.js application that imports App.net posts into Day One after they have been pre-processed by IFTTT.
- Node.js for Mac
- Day One for Mac
- Day One CLI for Mac
- App.net to Day One IFTTT Recipe
This script parses the files generated by the IFTTT recipe above and passes the parsed data through the Day One CLI. It keeps track of the processed posts through the use of a configuration file (
~/.adn2do) in the user's home directory on their Mac. In theory this could be applied to Twitter posts as well.
If you would like to run adn2do at intervals throughout the day you could potentially utilize iCal's Run script alarm. More information can be viewed here: http://www.tuaw.com/2008/04/14/mac-101-schedule-your-scripts/.
If the configuration file
~/.adn2do is somehow truncated the script will attempt to import all of your posts over again. Ensure you keep backups of your Day One journal. Backups can be generated automatically by Day One.
If you alter the code in adn2do/bin/adn2do you can pass in various options:
alterPost: a method that will alter the post prior to passing it onto the Day One CLI. I personally use this method to add hashtags (#adnpost) prior to creating a Day One entry. The method takes a single argument, a
Postobject has four properties (
date) and two methods (
dayOneEntry). You should not override the
keymethod when altering the post. (default:
configPath: You can assign a new path to the adn2do configuration file, this must be the full path to the file itself, not the directly it resides in. (e.g.
/Users/mbrio/.adn2do). The paths specified are not expanded so the use of
~for a user's home directory is forbidden. (default:
dayonePath: The full path to the Day One CLI. (default:
postsPath: The full path to the directory the IFTTT processed files reside. (default:
- Support downloading and attaching images to Day One entries.
- Remove the IFTTT and Dropbox dependencies by connecting directly to App.net
Copyright (c) 2012 Michael Diolosa <firstname.lastname@example.org>
The adn2do application is licensed under the MIT license.