|
2010-08-17
, 11:48
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#2
|
|
2010-08-17
, 15:13
|
|
Posts: 28 |
Thanked: 58 times |
Joined on Jan 2010
|
#3
|
rtcom probably is just too much for a script:
http://wiki.maemo.org/Documentation/...itecture/RTCOM
have you tried reading the db with sqlite?
|
2010-08-17
, 17:33
|
|
Posts: 501 |
Thanked: 292 times |
Joined on Nov 2009
|
#4
|
|
2010-08-18
, 11:27
|
|
Posts: 28 |
Thanked: 58 times |
Joined on Jan 2010
|
#5
|
is the tcl api available?
http://download.oracle.com/docs/cd/E...tcl_using.html
|
2010-08-18
, 11:53
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#6
|
|
2010-08-18
, 14:30
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#7
|
|
2010-08-19
, 05:27
|
|
Posts: 28 |
Thanked: 58 times |
Joined on Jan 2010
|
#8
|
Unfortunately not : (
Looks like the only way is to write a small C / C++ application using libdb or libebook to get at the contacts.
|
2010-08-19
, 05:42
|
Posts: 67 |
Thanked: 36 times |
Joined on May 2010
@ Claremont (LA), California
|
#9
|
The Following User Says Thank You to gkuenning For This Useful Post: | ||
|
2010-08-19
, 06:22
|
|
Posts: 28 |
Thanked: 58 times |
Joined on Jan 2010
|
#10
|
Since I back up with rsync to my desktop and laptop, I have a copy of the DB on a machine that has db_dump. I found that "db_dump -p" gives a series of vcards encoded one per line. It wouldn't be hard to parse those further using a tool like awk or python.
Now that I think about it, Python has a Berkeley DB access library (bsddb), although I don't know if it's available for Maemo.
Jarkko, what kind of tool are you imagining? I.e., are you thinking "lookup_contact --home-phone Joe" would print out Joe's home phone number? (I'm thinking that if somebody writes a tool, it would be good to try to make it flexible so other people can use it in unanticipated ways.)
I'm trying to do a simple script that reads and lists contacts from osso-abook. So far I have found that the contacts are in /home/user/.osso-abook\db - file wich is a Berkley database file. But I haven't found any tool to read that, any suggestions how to do that? Is it possible to read contacts via dbus? If yes, then how? =)
I'm doing some nice little web interface to control N900, so far I have made a simple web interface (lighttpd + PHP) and I can read my messages and check calls via that web interface. I can also do everything that Phone_control (thanks to MohammadAG, made my scripts much simpler ) does and some tricks more via that web interface. Oh, and of course that interface is heavily password protected
// Jarkko