Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-28 Thread Michael 'Mickey' Lauer
Am Monday 27 October 2008 13:28:17 schrieb arne anka:
  http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.html
 ;hb=HEAD

 that one i was looking for -- none of the specific pages google lists has
 a reference to this toc.

  It's not an easy human-readable URL, but it is linked from the
  freesmartphone.org homepage, and it does give access to all the API docs
  I think.

 it has been sometime since i looked, but back then there was no link on
 the wiki (at least non easily found) and i never cared to look again.
 instead i asked 3 times at the smartphone-lists and never got an answer.

Perhaps my mails to land in your spamfolder, but I'm sure I've given 
docs.freesmartphone.org a bunch of time as answer.

-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-28 Thread Michael 'Mickey' Lauer
Am Monday 27 October 2008 14:10:53 schrieb Alastair Johnson:
 arne anka wrote:
  http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.htm
 l;hb=HEAD
 
  that one i was looking for -- none of the specific pages google lists has
  a reference to this toc.
 
  It's not an easy human-readable URL, but it is linked from the
  freesmartphone.org homepage, and it does give access to all the API docs
  I think.
 
  it has been sometime since i looked, but back then there was no link on
  the wiki (at least non easily found) and i never cared to look again.
  instead i asked 3 times at the smartphone-lists and never got an answer.

 I had expected to find the mailing list details easily, but they are
 burried on the Tutorials page!

? http://www.freesmartphone.org/index.php/Infrastructure

If you think that's buried... help us, it's a wiki!
-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-28 Thread arne anka
 If you think that's buried... help us, it's a wiki!

not as long as it requires to create an account -- i got far to much of  
those and do not intend to add to the list just to make some comments or  
corrections in a wiki.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-28 Thread Alastair Johnson
Michael 'Mickey' Lauer wrote:
 Am Monday 27 October 2008 14:10:53 schrieb Alastair Johnson:
 arne anka wrote:
 http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.htm
 l;hb=HEAD
 that one i was looking for -- none of the specific pages google lists has
 a reference to this toc.

 It's not an easy human-readable URL, but it is linked from the
 freesmartphone.org homepage, and it does give access to all the API docs
 I think.
 it has been sometime since i looked, but back then there was no link on
 the wiki (at least non easily found) and i never cared to look again.
 instead i asked 3 times at the smartphone-lists and never got an answer.
 I had expected to find the mailing list details easily, but they are
 burried on the Tutorials page!
 
 ? http://www.freesmartphone.org/index.php/Infrastructure
 
 If you think that's buried... help us, it's a wiki!

I tried searching for 'mailing list' and that page is not among the results.

http://www.freesmartphone.org/index.php/Special:Search?search=mailing+listgo=Go

As for it being a wiki - hoist with my own petard ;-) Although if I had 
made a link from the front page it would have pointed to the wrong 
place. I'll add something more suitable now I know the right one.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-27 Thread arne anka
 Please also have a look at the following three use cases concerning SIM
 contacts and address book contacts. This is an elegant way of dealing
 with the two.

you lost me there -- which following use cases?
on a related note: anybody usable links to fso/framweorkd documentation?
i only found one or two docs in a git tree with an url hardly to remember  
and i wasn't able to figure out how to get other docs, since the schema of  
the url was not clear to me

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-27 Thread Michael 'Mickey' Lauer
Am Monday 27 October 2008 11:31:19 schrieb arne anka:
  Please also have a look at the following three use cases concerning SIM
  contacts and address book contacts. This is an elegant way of dealing
  with the two.

 you lost me there -- which following use cases?
 on a related note: anybody usable links to fso/framweorkd documentation?

Start w/ http://docs.freesmartphone.org, it points to the nasty git URI 
automagically.

-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-27 Thread arne anka
 http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.html;hb=HEAD

that one i was looking for -- none of the specific pages google lists has  
a reference to this toc.

 It's not an easy human-readable URL, but it is linked from the
 freesmartphone.org homepage, and it does give access to all the API docs
 I think.

it has been sometime since i looked, but back then there was no link on  
the wiki (at least non easily found) and i never cared to look again.
instead i asked 3 times at the smartphone-lists and never got an answer.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-27 Thread Alastair Johnson
arne anka wrote:
 http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/index.html;hb=HEAD
 
 that one i was looking for -- none of the specific pages google lists has  
 a reference to this toc.
 
 It's not an easy human-readable URL, but it is linked from the
 freesmartphone.org homepage, and it does give access to all the API docs
 I think.
 
 it has been sometime since i looked, but back then there was no link on  
 the wiki (at least non easily found) and i never cared to look again.
 instead i asked 3 times at the smartphone-lists and never got an answer.

I had expected to find the mailing list details easily, but they are 
burried on the Tutorials page!

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-27 Thread arne anka
 I had expected to find the mailing list details easily, but they are
 burried on the Tutorials page!

mr livingston, i presume?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-26 Thread arne anka
below a patch for zhone to read contatcs instead from sim from  
/root/addressbook.vcf (what's the easiest way to determine the user's home  
directory from python?)
main difference to the patch proposed someweher on the wiki: _all_ numbers  
of one contact are added to the list, not just the last one.


actually, the last two section address
a) disabling the zhone screensaver which is probably unwanted if you run  
zhone from xfce
b) catching an exception i've seen several times when suspending -- it  
slowed down suspend considerably


--- zhone.orig  2008-10-26 20:31:34.0 +0100
+++ zhone.patched   2008-10-26 20:31:47.0 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
 #coding=utf8
 
 Zen Phone - A Phone UI
@@ -731,6 +731,29 @@

 def prepare( self ):
 if not self.ready and not self.busy:
+file = open(/root/addressbook.vcf, r)
+entries = []
+entry_nr = 1
+name = None
+number = None
+for line in file:
+#if line.startswith(END:VCARD):
+if line.startswith(TEL;):
+number = unicode(line.partition(:)[2].strip())
+if name and number:
+entry = entry_nr, name, number
+entries.append(entry)
+entry_nr = entry_nr + 1
+if line.startswith(END:VCARD):
+name = None
+number = None
+if line.startswith(N:):
+name = unicode(line.partition(:)[2].replace(';','  
').strip(), utf8, utf8)

+#if line.startswith(TEL;):
+#number = unicode(line.partition(:)[2].strip())
+file.close()
+self.cbPhonebookReply(entries)
+
 if dbus_object.gsm_device_obj:
 logger.info( retrieving phonebook... )
 dbus_object.gsm_sim_iface.RetrievePhonebook(
@@ -749,6 +772,7 @@
 (6, u'Sulu', '+013244344'),
 (7, u'Chekov', '+456663443'),
 ] )
+

 def onReadyStatus( self, status ):
 logger.debug( SIM is ready: %s % status )
@@ -1818,7 +1842,7 @@
 dbus_object.onReadyStatus.append(  
self.groups[contacts].onReadyStatus )
 dbus_object.onReadyStatus.append(  
self.groups[sms].onReadyStatus )
 dbus_object.onIncomingMessage.append(  
self.groups[sms].onIncomingMessage )

-dbus_object.onIdleStateChanged.append( self.lock_on_idle )
+#dbus_object.onIdleStateChanged.append( self.lock_on_idle )

 logger.debug( GUI init done )

@@ -2182,7 +2206,10 @@
 elif name+action == POWERreleased:
 if self.willSuspend:
 self.willSuspend = False
+try:
 self.gsm_device_iface.PrepareForSuspend()
+except DBusException:
+logger.info( DBUSEXCEPTION )
 logger.info( ENTERING SUSPEND )
 os.system( apm -s )
 logger.info( RETURN FROM SUSPEND )

zhone_contacts_from_vcf.patch.gz
Description: GNU Zip compressed data
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: zhone patch: contacts from vcf was: Re: [debian/zhone] Send an SMS

2008-10-26 Thread Pander
Hi Arne,

Thanks for you work.

Please also have a look at the following three use cases concerning SIM
contacts and address book contacts. This is an elegant way of dealing
with the two.

Regards,

Pander

arne anka wrote:
 below a patch for zhone to read contatcs instead from sim from
 /root/addressbook.vcf (what's the easiest way to determine the user's
 home directory from python?)
 main difference to the patch proposed someweher on the wiki: _all_
 numbers of one contact are added to the list, not just the last one.
 
 actually, the last two section address
 a) disabling the zhone screensaver which is probably unwanted if you run
 zhone from xfce
 b) catching an exception i've seen several times when suspending -- it
 slowed down suspend considerably
 
 --- zhone.orig2008-10-26 20:31:34.0 +0100
 +++ zhone.patched2008-10-26 20:31:47.0 +0100
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python
 +#!/usr/bin/python
  #coding=utf8
  
  Zen Phone - A Phone UI
 @@ -731,6 +731,29 @@
 
  def prepare( self ):
  if not self.ready and not self.busy:
 +file = open(/root/addressbook.vcf, r)
 +entries = []
 +entry_nr = 1
 +name = None
 +number = None
 +for line in file:
 +#if line.startswith(END:VCARD):
 +if line.startswith(TEL;):
 +number = unicode(line.partition(:)[2].strip())
 +if name and number:
 +entry = entry_nr, name, number
 +entries.append(entry)
 +entry_nr = entry_nr + 1
 +if line.startswith(END:VCARD):
 +name = None
 +number = None
 +if line.startswith(N:):
 +name = unicode(line.partition(:)[2].replace(';','
 ').strip(), utf8, utf8)
 +#if line.startswith(TEL;):
 +#number = unicode(line.partition(:)[2].strip())
 +file.close()
 +self.cbPhonebookReply(entries)
 +
  if dbus_object.gsm_device_obj:
  logger.info( retrieving phonebook... )
  dbus_object.gsm_sim_iface.RetrievePhonebook(
 @@ -749,6 +772,7 @@
  (6, u'Sulu', '+013244344'),
  (7, u'Chekov', '+456663443'),
  ] )
 +
 
  def onReadyStatus( self, status ):
  logger.debug( SIM is ready: %s % status )
 @@ -1818,7 +1842,7 @@
  dbus_object.onReadyStatus.append(
 self.groups[contacts].onReadyStatus )
  dbus_object.onReadyStatus.append(
 self.groups[sms].onReadyStatus )
  dbus_object.onIncomingMessage.append(
 self.groups[sms].onIncomingMessage )
 -dbus_object.onIdleStateChanged.append( self.lock_on_idle )
 +#dbus_object.onIdleStateChanged.append( self.lock_on_idle )
 
  logger.debug( GUI init done )
 
 @@ -2182,7 +2206,10 @@
  elif name+action == POWERreleased:
  if self.willSuspend:
  self.willSuspend = False
 +try:
  self.gsm_device_iface.PrepareForSuspend()
 +except DBusException:
 +logger.info( DBUSEXCEPTION )
  logger.info( ENTERING SUSPEND )
  os.system( apm -s )
  logger.info( RETURN FROM SUSPEND )
 
 
 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-10-24 Thread arne anka
 I finally worked out what I was missing here.  So for anyone else in
 the same bemused state: you have to have some SIM contacts!


did not see that thread before -- but yes. it is so since zhone  
started.probably everybody presumed you know that.
bot do not despair!
the wiki has imo a description where to patch zhone to read from a vcard  
file instead.
i installed osmo for calendar/contacts/... and luckily it uses those  
files, so i recently fiddled with zhone and found where to patch to make  
it read all my numbers into zhone's contact list.
it's a bit late today, but i look at my code tomorrow and create a patch.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-09-30 Thread Neil Jerram
2008/9/27 Jan Luebbe [EMAIL PROTECTED]:
 On Fri, 2008-09-26 at 19:42 +0100, Neil Jerram wrote:
 2008/9/26 Michael 'Mickey' Lauer [EMAIL PROTECTED]:
  Oh, the testing UI. Yes, you can send messages with that one as well.
  Push 'Messages', then chose a contact from your SIM, then compose your
  message, then it's going into the outbox and will be sent.

 Hm.  I couldn't make anything like that work.  I'll try again though
 if/when I have Debian installed again.

 In messages you need to push the button in the middle, then you will get
 a small menu.

I'm afraid I'm still not seeing / understanding this.

Here is what I'm getting as the messages screen:
http://www.ossau.uklinux.net/msgs.jpg (with personal information
blacked out).

Where am I supposed to press?

Thanks,
  Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-09-27 Thread Jan Luebbe
On Fri, 2008-09-26 at 19:42 +0100, Neil Jerram wrote:
 2008/9/26 Michael 'Mickey' Lauer [EMAIL PROTECTED]:
  Oh, the testing UI. Yes, you can send messages with that one as well.
  Push 'Messages', then chose a contact from your SIM, then compose your
  message, then it's going into the outbox and will be sent.
 
 Hm.  I couldn't make anything like that work.  I'll try again though
 if/when I have Debian installed again.

In messages you need to push the button in the middle, then you will get
a small menu.

Jan


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-09-26 Thread Neil Jerram
2008/9/26 Michael 'Mickey' Lauer [EMAIL PROTECTED]:


 Oh, the testing UI. Yes, you can send messages with that one as well.
 Push 'Messages', then chose a contact from your SIM, then compose your
 message, then it's going into the outbox and will be sent.

Hm.  I couldn't make anything like that work.  I'll try again though
if/when I have Debian installed again.

Thanks,
   Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-09-25 Thread Michael 'Mickey' Lauer
Am Donnerstag, den 25.09.2008, 12:29 +0100 schrieb Neil Jerram:
 Is it possible to send an SMS (aka text message) in debian/zhone?  If
 so, how?  I couldn't work out how, or find any instructions anywhere.

http://docs.freesmartphone.org - org.freesmartphone.GSM.SIM

With your favourite dbus binding:

index = StoreMessage( +49123456789, Hi Darling. Dinner in 10
minutes? )

SendStoredMessage( index )

:M:


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-09-25 Thread Neil Jerram
2008/9/25 Michael 'Mickey' Lauer [EMAIL PROTECTED]:
 Am Donnerstag, den 25.09.2008, 12:29 +0100 schrieb Neil Jerram:
 Is it possible to send an SMS (aka text message) in debian/zhone?  If
 so, how?  I couldn't work out how, or find any instructions anywhere.

 http://docs.freesmartphone.org - org.freesmartphone.GSM.SIM

 With your favourite dbus binding:

 index = StoreMessage( +49123456789, Hi Darling. Dinner in 10
 minutes? )

 SendStoredMessage( index )

Cool, thanks!  I actually meant - and so should have been precise - is
there already something in the GUI for sending a message - because I
was wondering if I'd missed it.  I'll take your response as
confirmation that the answer to that (GUI) question is no!

Best wishes,
 Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian/zhone] Send an SMS

2008-09-25 Thread Michael 'Mickey' Lauer
Am Donnerstag, den 25.09.2008, 23:20 +0200 schrieb Neil Jerram:
 2008/9/25 Michael 'Mickey' Lauer [EMAIL PROTECTED]:
  Am Donnerstag, den 25.09.2008, 12:29 +0100 schrieb Neil Jerram:
  Is it possible to send an SMS (aka text message) in debian/zhone?  If
  so, how?  I couldn't work out how, or find any instructions anywhere.
 
  http://docs.freesmartphone.org - org.freesmartphone.GSM.SIM
 
  With your favourite dbus binding:
 
  index = StoreMessage( +49123456789, Hi Darling. Dinner in 10
  minutes? )
 
  SendStoredMessage( index )
 
 Cool, thanks!  I actually meant - and so should have been precise - is
 there already something in the GUI for sending a message - because I
 was wondering if I'd missed it.  I'll take your response as
 confirmation that the answer to that (GUI) question is no!

Oh, the testing UI. Yes, you can send messages with that one as well.
Push 'Messages', then chose a contact from your SIM, then compose your
message, then it's going into the outbox and will be sent.

:M:


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community