Go Back   PreCentral Forums > webOS Software and Chat > webOS Synergy and Synchronization

Reply
 
LinkBack Thread Tools Display Modes
Old 10/05/2009, 06:16 AM   #1 (permalink)
Member
 
DrewPre's Avatar
 
Join Date: Aug 2009
Location: The HARD Streets of Alpharetta, GA
Posts: 633
Thanks: 34
Thanked 103 Times in 54 Posts
Thumbs up Migrate your Palm Pre profile contacts to Google Contacts for Free

Script to migrate your Palm Pre's contacts from your Palm Profile to Google gMail contacts. FOR FREE!

MvPre2Gmail



The script does everything mentioned at PalmDatabase.db3 File - WebOS Internals and is performed on a backup copy of the Palm Database, PalmDatabase.db3.

What this script does not do:
It will not remove the contacts from your Palm Pre Profile.
It will not remove the Gmail account from your Pre's Contacts App.
It will not migrate more than 3 emails or 3 phone numbers per contact.
It will not separate facebook, gmail, or palm pre contacts. It migrates ALL contacts.

UPDATE: Run delete_contacts.sql on your live PalmDatabase.db3 to delete all your contacts from your Palm Pre Profile prior to adding and syncing your Gmail account with your Palm Pre.

There are some error handling and checking to see if certain things are installed or not [root access, filesystem rw, sqlite3, and perl].

Some assumptions are made... You've rooted your Pre, Installed Optware-bootstrap and Quilt per webos-internals.org 'Next Steps'....[needed for ipkg-opt]


Would love for ppl to try it out and give me feed back. I have some ideas on how to improve the script further. I'll wait to hear what ppl think so far tho.

Installation/Usage:
1. download zip file and extract.
2. copy the file to root on the Palm Pre [WebOS QI or sFTP or via USB drive]
3. Log into Pre as root and make file executable chmod 755 MvPre2Gmail
4. Run MvPre2Gmail


I've also attached my googlecsv. This shell script automagically generates a copy of this Perl script. Had to give it a TXT extension to upload it. Remove that if you chose to modify and use it.

My contacts are all in the Google Cloud now!!

Credit for this script goes to Hopspitfire, DCPedit, and wsobel over at webos-internals.... PalmDatabase.db3 File - WebOS Internals

UPDATE: Added the line
Code:
print SQLDEL ".load /usr/lib/sqlite3_palm_extension.so\n";
to the MvPre2Gmail script in the section where the googlecsv script is created. Both files have been updated to reflect this change.

If you run, delete_contacts.sql [automagically generated] on your live PalmDatabase.db3 file, it will successfully remove all your contacts from your Palm Pre Profile!! You will NOT have to manually delete ALL of the Pre contacts one by one. PLEASE BE CAREFUL WITH THIS. Make sure your contacts are accurate and have been successfully uploaded to Gmail and run delete_contacts.sql prior to adding your Gmail account to your Pre's contact app.
Attached Files
File Type: zip MvPre2Gmail.zip (2.4 KB, 195 views) Email Attachment
File Type: txt googlecsv.txt (3.1 KB, 130 views) Email Attachment

Last edited by DrewPre; 10/28/2009 at 01:44 AM.
DrewPre is online now   Reply With Quote
Thanked By 2:
Old 10/05/2009, 07:26 AM   #2 (permalink)
Member
 
jbg7474's Avatar
 
Join Date: Jan 2009
Posts: 1,745
Thanks: 459
Thanked 233 Times in 169 Posts
Default

So if someone could write a script to do this whole thing, that would be a great service. By the way, duplicates are not a big deal. Synergy will link them. So deleting Palm profile contacts is not necessary.
jbg7474 is offline   Reply With Quote
Old 10/05/2009, 10:54 AM   #3 (permalink)
Member
 
Join Date: Jun 2005
Posts: 316
Thanks: 62
Thanked 5 Times in 5 Posts
Default

Thats just what im looking for. Now if there was some simple app that which a click of a button will accomplish all that, I would be one happy guy!
myblackz28 is offline   Reply With Quote
Old 10/05/2009, 11:25 AM   #4 (permalink)
Member
 
Join Date: Oct 2005
Location: Fort Lauderdale, FL
Posts: 655
Thanks: 48
Thanked 52 Times in 35 Posts
Default

Quote:
Originally Posted by jbg7474 View Post
By the way, duplicates are not a big deal. Synergy will link them. So deleting Palm profile contacts is not necessary.
Does it? I no longer have them since I manually linked those, but when I got my Pre at launch and ran the desktop migration tool, I had tons of duplicates that just sat there, unlinked.

Is there a criteria that Synergy follows when determining which contacts to link?
Carioca_FL is offline   Reply With Quote
Old 10/06/2009, 06:04 PM   #5 (permalink)
Member
 
Join Date: Nov 2002
Posts: 202
Thanks: 10
Thanked 6 Times in 5 Posts
Default

I don't mind rooting my pre - but the above seems pretty complicated to me - and I don't know that I understand it all. I agree totally that this would be a great patch or application for someone to write - maybe one that simply exports a csv file of the databels and saves it on the device - or better yet ques it as an attachment in an email draft.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
varoomba is offline   Reply With Quote
Old 10/06/2009, 06:19 PM   #6 (permalink)
JRH
Member
 
JRH's Avatar
 
Join Date: Sep 2009
Posts: 128
Thanks: 20
Thanked 32 Times in 18 Posts
Default

yikes....I'll wait for the app/patch
JRH is offline   Reply With Quote
Old 10/06/2009, 09:51 PM   #7 (permalink)
Moderator
 
Gaurav's Avatar
 
Join Date: Nov 2002
Location: All over the place
Posts: 8,026
Thanks: 149
Thanked 120 Times in 86 Posts
Default

Since the output file is a cvs file, you could easily use that to sync with outlook, ymail or whatever! I would love if as other users have stated someone could create a script for this so users could export their contacts out of the Pre whenever they wanted. If this could be integrated into WOQI that would be awesome!!
__________________
_________________
aka Gfunkmagic

Current device: Palm Pre
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Device graveyard: Palm Vx, Cassiopeia E100, LG Phenom HPC, Palm M515, Treo 300, Treo 600, Treo 650, Treo 700p, Axim X50v, Treo 800w

Moderator,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Please don't PM me about my avatar. For more info go
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

Restore your Pre to factory settings using
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and follow these
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Gaurav is offline   Reply With Quote
Old 10/06/2009, 09:56 PM   #8 (permalink)
Member
 
Join Date: Jun 2005
Posts: 316
Thanks: 62
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by Gaurav View Post
Since the output file is a cvs file, you could easily use that to sync with outlook, ymail or whatever! I would love if as other users have stated someone could create a script for this so users could export their contacts out of the Pre whenever they wanted. If this could be integrated into WOQI that would be awesome!!
agreed.
myblackz28 is offline   Reply With Quote
Old 10/06/2009, 10:31 PM   #9 (permalink)
Member
 
DrewPre's Avatar
 
Join Date: Aug 2009
Location: The HARD Streets of Alpharetta, GA
Posts: 633
Thanks: 34
Thanked 103 Times in 54 Posts
Default

You know I love learnng new things, but I am clueless about scripts. Are there any coders out there that can show me a few pointers? Links? How does one get started writing scripts??
DrewPre is online now   Reply With Quote
Old 10/06/2009, 10:37 PM   #10 (permalink)
Member
 
DrewPre's Avatar
 
Join Date: Aug 2009
Location: The HARD Streets of Alpharetta, GA
Posts: 633
Thanks: 34
Thanked 103 Times in 54 Posts
Default

And I should add that the hardest parts of the above was deleting all the old contacts manually from the Palm Pre account [cuz the script for that, doesn't work] and also validating the csv file was accurate.

Those 2 processes took about 90 minutes. The rest took, 15.
DrewPre is online now   Reply With Quote
Old 10/06/2009, 10:39 PM   #11 (permalink)
Moderator
 
Gaurav's Avatar
 
Join Date: Nov 2002
Location: All over the place
Posts: 8,026
Thanks: 149
Thanked 120 Times in 86 Posts
Default

<moved>
__________________
_________________
aka Gfunkmagic

Current device: Palm Pre
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Device graveyard: Palm Vx, Cassiopeia E100, LG Phenom HPC, Palm M515, Treo 300, Treo 600, Treo 650, Treo 700p, Axim X50v, Treo 800w

Moderator,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Please don't PM me about my avatar. For more info go
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

Restore your Pre to factory settings using
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and follow these
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Gaurav is offline   Reply With Quote
Old 10/07/2009, 05:49 PM   #12 (permalink)
Member
 
Join Date: Jun 2009
Location: Miami, Fl
Posts: 653
Thanks: 10
Thanked 67 Times in 56 Posts
Default

To move the pre contacts to google contact don't you just have to enter your google address into the contacts accounts and it will sync automatically. You can also choose which you want as the default palm or google contacts.
edlex is offline   Reply With Quote
Old 10/07/2009, 05:53 PM   #13 (permalink)
Member
 
Join Date: Nov 2008
Posts: 1,172
Thanks: 114
Thanked 243 Times in 154 Posts
Default

Hmmm ... I wish there was a way to move my google contacts to my Palm profile. Would a few minor changes accomplish this?
bpdamas is offline   Reply With Quote
Old 10/11/2009, 03:29 AM   #14 (permalink)
Member
 
cas_esq's Avatar
 
Join Date: Aug 2007
Location: northern California
Posts: 456
Thanks: 27
Thanked 81 Times in 75 Posts
Default

Quote:
Originally Posted by edlex View Post
To move the pre contacts to google contact don't you just have to enter your google address into the contacts accounts and it will sync automatically. You can also choose which you want as the default palm or google contacts.
If it was that easy, this thread wouldn't exist. Give us some credit! What you propose will only work for new contacts. Any preexisting contacts will remain tied to the Palm Profile.

As nervous as I am about this situation (especially since the Sidekick debacle), I think I'll give some webOS genius a chance to develop a patch to fix the problem. I don't trust myself not to screw up my phone.
cas_esq is offline   Reply With Quote
Old 10/11/2009, 08:03 AM   #15 (permalink)
Member
 
Join Date: Jun 2009
Posts: 116
Thanks: 16
Thanked 13 Times in 9 Posts
Default

Quote:
Originally Posted by bpdamas View Post
Hmmm ... I wish there was a way to move my google contacts to my Palm profile. Would a few minor changes accomplish this?
Well you could export your google contacts at google.com into a Outlook CSV, import this into an new outlook/entourage account on your PC and then use the Palm DTA to import it back on your Pre: Palm.com : Data Transfer Assistant (Windows)
BUT be sure not to link it google in the last step of the tutorial cause this would be rather ridiculious - hehe, use Palm Profile
gizmo21 is offline   Reply With Quote
Old 10/11/2009, 12:56 PM   #16 (permalink)
Member
 
Join Date: Apr 2003
Location: Boston-area
Posts: 5,365
Thanks: 297
Thanked 869 Times in 470 Posts
Default

Quote:
Originally Posted by Carioca_FL View Post
Is there a criteria that Synergy follows when determining which contacts to link?
Same (exact) name, same phone number, same IM account, or same email address and they'll link automatically.
jhoff80 is online now   Reply With Quote
Old 10/14/2009, 07:32 PM   #17 (permalink)
Member
 
Join Date: Aug 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

If anyone knows what the heck sqlite and perl is help! I can find them and junk but I sure as heck dont know how to use um
thebenjamin1 is offline   Reply With Quote
Old 10/15/2009, 08:37 PM   #18 (permalink)
Member
 
Join Date: Oct 2009
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

exact what i was looking for. but i guess it would be much easier and safer to add the contacts manually to my google account.
Waiting and hoping for ann app for this.
amiroo is offline   Reply With Quote
Old 10/16/2009, 01:47 AM   #19 (permalink)
Member
 
irateb's Avatar
 
Join Date: Feb 2006
Location: The Dec Shawty, GA
Posts: 133
Thanks: 9
Thanked 43 Times in 18 Posts
Default

Yeah, this is a great start, and like OP said, not difficult to do, but there is still too much manual effort even past these instructions. I assume exporting all the info out of the Palm Profile (like addresses) would be a formatting nightmare, and so I'll be manually putting those into Google. But at least I have most phone numbers and emails in more than 2 places now...
__________________
My almost 10 year Sprint journey:
Denso Touchpoint --> Samsung A500 --> Palm Treo 650 --> Palm Treo 700P --> Palm Treo 700P w/755P ROM hack --> Palm Pre
irateb is offline   Reply With Quote
Old 10/16/2009, 02:40 AM   #20 (permalink)
Member
 
Join Date: Feb 2005
Location: NorCal
Posts: 80
Thanks: 58
Thanked 1 Time in 1 Post
Default

In Contacts, Google (with 1200+ contacts) is my default account and my Palm profile only has 2 contacts. New contacts default into the Google account. (so I guess my Contacts are safe -- I guess I could try to export to csv from Google.com and evaluate the output file). I agree with one suggestion above that it would be cool if programs such as PreWare or WebOS Quick Install or another app (in counjunction with USB disk mode export to desktop machine) would help us back up our data. I guess there are several apps for this including HotSync to Palm Desktop 6.2 using Classic.
__________________
PalmPilot Professional > Palm Vx (RAM upgraded by 3rd pty) > Treo 600 >Treo 650 > Treo 700p > 2 x Pre (mine and my wife's)
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by liv2surf; 10/16/2009 at 02:47 AM.
liv2surf is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:51 AM.

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0