View Single Post
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#221
Originally Posted by altarMeego View Post
Thanks, it worked like a charm!

Now that I've got the program up and running I have another issue, that I'm hoping you can solve.

I can't seem to get my contacts loaded. When I select Contacts from the main screen and then press ctrl+r it says its retrieving the contacts, but then it says total contacts is 0.

I did a grep for 'ontact' on the logfile plus a few lines before and after and came up with this:
Code:
2011-01-02 13:38:33.117 : 3 : Refresh all requested.
2011-01-02 13:38:33.118 : 3 : "Enqueued 8: getRegisteredPhones." 
2011-01-02 13:38:33.118 : 3 : "Starting work 8: getRegisteredPhones" 
2011-01-02 13:38:33.295 : 3 : "Retrieving Inbox..." 
2011-01-02 13:38:33.302 : 3 : "Enqueued 9: getHistory." 
2011-01-02 13:38:33.303 : 3 : "Work 8: getRegisteredPhones in progress. Wait for it to finish." 
2011-01-02 13:38:33.304 : 3 : "Retrieving contacts" 
2011-01-02 13:38:36.059 : 3 : "Contacts retrieved, parsing" 
2011-01-02 13:38:36.267 : 3 : "Contact parsing done. total = 0. usable = 0" 
2011-01-02 13:38:36.975 : 3 : ""Mobile"="+********""
On first ever login, qgvdial picks up all contacts from Google.
On subsequent contact syncs, it asks Google for only those contacts that were modified since the last sync.

This:
Code:
2011-01-02 13:38:36.267 : 3 : "Contact parsing done. total = 0. usable = 0"
indicates two things:
1. total = total number of modifications
2. usable = number of modifications which actually matter to us. Some modifications (and contacts) dont matter at all: for example, if a contact had only email addresses and no phones, there's no point in showing it in qgvdial. If that contact's email was modified and no phone numbers were added, then that contact is still quite useless to qgvdial. Thats where the usable count comes into play.

The total count = 0 means one of two things:
1. You have no Google contacts (rare, but not impossible)
2. You have Google contacts, but for whatever reason, the most recent contacts sync found no modifications since the last time.
In the case where no modifications were found, but still there is nothing in the contacts page, it may mean one of two things:
1. You have no contacts in Google (again: rare, but not impossible)
2. You have no contacts in Google for which you have assigned any phone numbers.

So: Before this latest update, were you able to see any contacts in qgvdial? If not, then it's probably because you have not added phone numbers to your Google contacts.
Remember, the contacts page in qgvdial are NOT your phone contacts. they are picked up from the contacts in your Google account.

Now if you *were* able to see contacts before this, then I'm a bit stumped. There used to be a "Refresh all" feature that would clear out contacts and reload them all, but it isnt there yet.
The only way I have to force a full refresh is to manually blow away the local sqlite database that caches information.
This is at /home/user/.gvdial.sqlite.db
Code:
cd /home/user
killall qgvdial
mv .gvdial.sqlite.db old.gvdial.sqlite.db
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post: