fletcher / SimplenoteSync

perl routine to sync folder of text files with your notes on Simplenote
http://fletcherpenney.net/other_projects/simplenotesync/
58 stars 7 forks source link

Name

SimplenoteSync.pl --- synchronize a folder of text files with Simplenote.

Of note, this software is not created by or endorsed by Cloud Factory, the creators of Simplenote, or anyone else for that matter.

Configuration

UPDATE --- Notational Velocity now has built in synchronizing with Simplenote. I have not fully tested it, and can't vouch for or against it's quality. But, for anyone who is using Simplenotesync just so that their NV notes and Simplenotes stay in sync, it is probably a much easier way to accomplish this. Most of the support questions I get are from people who are not very experienced with the command-line --- Notational Velocity's built in support requires nothing more than your Simplenote user name and password. Additionally, I am now primarily using WriteRoom, and am not actively working on SimplenoteSync anymore. For more information, please visit:

http://fletcherpenney.net/2010/01/status_update_on_simplenotesync

WARNING --- I am having an intermittent problem with the Simplenote server that causes files to be deleted intermittently. Please use with caution and backup your data

BACKUP YOUR DATA BEFORE USING --- THIS PROJECT IS STILL BEING TESTED. IF YOU AREN'T CONFIDENT IN WHAT YOU'RE DOING, DON'T USE IT!!!!

Create file in your home directory named ".simplenotesyncrc" with the following contents:

  1. First line is your email address

  2. Second line is your Simplenote password

  3. Third line is the directory to be used for text files

  4. Fourth (optional line) is a file extension to use (defaults to "txt" if none specified)

Unfortunately, you have to install Crypt::SSLeay to get https to work. You can do this by running the following command as an administrator:

sudo perl -MCPAN -e "install Crypt::SSLeay"

Description

After specifying a folder to store local text files, and the email address and password associated with your Simplenote account, SimplenoteSync will attempt to synchronize the information in both places.

Sync information is stored in "simplenotesync.db". If this file is lost, SimplenoteSync will have to attempt to look for "collisions" between local files and existing notes. When performing the first synchronization, it's best to start with an empty local folder (or an empty collection of notes on Simplenote), and then start adding files (or notes) afterwards.

Warning

Please note that this software is still in development stages --- I STRONGLY urge you to backup all of your data before running to ensure nothing is lost. If you run SimplenoteSync on an empty local folder without a "simplenotesync.db" file, the net result will be to copy the remote notes to the local folder, effectively performing a backup.

Installation

Download the latest copy of SimplenoteSync.pl from github:

http://github.com/fletcher/SimplenoteSync

Features

Limitations

Faq

Troubleshooting

If SimplenoteSync isn't working, I've tried to add more (and better) error messages. Common problems so far include:

Optionally, you can enable or disable writing changes to either the local directory or to the Simplenote web server. For example, if you want to attempt to copy files to your computer without risking your remote data, you can disable "$allow_server_updates". Or, you can disable "$allow_local_updates" to protect your local data.

Additionally, there is a script "Debug.pl" that will generate a text file with some useful information to email to me if you continue to have trouble.

Known Issues

See Also

Designed for use with Simplenote for iPhone:

http://www.simplenoteapp.com/

The SimplenoteSync homepage is:

http://fletcherpenney.net/other_projects/simplenotesync/

SimplenoteSync is available on github:

http://github.com/fletcher/SimplenoteSync

A Discussion list is also available:

http://groups.google.com/group/simplenotesync

Author

Fletcher T. Penney, owner@fletcherpenney.net

Copyright And License

Copyright (C) 2009 by Fletcher T. Penney

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc. 59 Temple Place, Suite 330 Boston, MA 02111-1307 USA