Notices


Reply
Thread Tools
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#1421
Originally Posted by TiagoTiago View Post
For the last few upgrades i've been getting an error, i don't remember the exact error from the previous upgrades but i think it was the same as the latest one:

Code:
Traceback (most recent call last):
  File "/opt/dialcentral/lib/alarm_handler.py", line 323, in <module>
    main()
  File "/opt/dialcentral/lib/alarm_handler.py", line 314, in main
    alarmHandler.save_settings(config, "alarm")
  File "/opt/dialcentral/lib/alarm_handler.py", line 112, in save_settings
    config.set(sectionName, "recurrence", str(self._recurrence))
  File "/usr/lib/python2.5/ConfigParser.py", line 640, in set
    ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.5/ConfigParser.py", line 358, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'alarm'
Could you explain to me what this is about please?
I believe you are referring to a message being reported on the command line or in your HAM log? This does not stop the upgrade, correct?

In the pre-install is a check to prevent issues with alarms on upgrade.

The Qt version of dialcentral does not yet have alarm support (do people still use/want it?) so the script can't get the settings, so it should be moving along.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

The Following User Says Thank You to epage For This Useful Post:
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#1422
 
Posts: 22 | Thanked: 6 times | Joined on Sep 2010
#1423
Is there a solution to this?
Code:
There was a problem with GV: {'data': {'code':20}, 'ok': False}
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#1424
Originally Posted by peterch405 View Post
Is there a solution to this?
Code:
There was a problem with GV: {'data': {'code':20}, 'ok': False}
What version of DialCentral are you using?

Have you configured your callback number (the accounts tab on the released version, the accounts dialog on the beta version).
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

The Following User Says Thank You to epage For This Useful Post:
Posts: 21 | Thanked: 8 times | Joined on Jun 2010 @ North America, west coast
#1425
Is there a way I can use the command-line to dial a number? E.g. I want to write a shell script that says something like:

/opt/dialcentral/bin/dialcentral.py ---dial 1-415-555-1234

and then it would use GoogleVoice to dial that number.

It would also be okay to invoke Dialcentral, and then use dbus-send to dial a number. As long as it can be automated by script. (I am trying to get Vim to dial out.)

I couldn't find the answer by web search. I thought a post here would be more useful than a private message to Mr. Page.

Thank you for your work, Mr. Page.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#1426
Originally Posted by kwtm View Post
Is there a way I can use the command-line to dial a number? E.g. I want to write a shell script that says something like:

/opt/dialcentral/bin/dialcentral.py ---dial 1-415-555-1234

and then it would use GoogleVoice to dial that number.

It would also be okay to invoke Dialcentral, and then use dbus-send to dial a number. As long as it can be automated by script. (I am trying to get Vim to dial out.)

I couldn't find the answer by web search. I thought a post here would be more useful than a private message to Mr. Page.

Thank you for your work, Mr. Page.
Oh VIM

I could add some command line flags. They might be a bit slow since they would have to login then dial. I hesitate on adding dbus stuff because of the solution I would suggest, The One Ring.

The One Ring is a Google Voice plugin for the system. You can use dbus or telepathy wrappers over dbus to initiate a call. If you want a single command for it, it would be easy for me to wrap this into a single script.

You can disable polling for contacts, voicemail,. and texts which would greatly reduce the battery overhead. The cost would then be whenever you switch networks it has to login again. I am tempted to improve that for quick network switches but not right now.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

The Following User Says Thank You to epage For This Useful Post:
Posts: 21 | Thanked: 8 times | Joined on Jun 2010 @ North America, west coast
#1427
Originally Posted by epage View Post
Oh VIM
Well, it could be any shell script. I work about 2/3 of the time in vim and the other 1/3 from the command line. But, yes, text interface. Sure beats using the GUI and having to wait 4 seconds for the Phone app to switch over to the Contacts screen.

Originally Posted by epage View Post
I could add some command line flags. They might be a bit slow since they would have to login then dial.
That would be appreciated, especially if it's not too inconvenient. In my particular case, I am trying to initiate a long-d call while driving, so I would rather tap on one icon or type a short string (say, the name of a shell script) and then wait for the automated connection, than have to type in a long phone number with the onscreen keypad while I'm driving.

(I hope the changes that you make won't force me to upgrade to PR 1.3. Right now PR 1.2 works well and I am rather leery of the bugs reported in PR 1.3.)

Originally Posted by epage View Post
I hesitate on adding dbus stuff because of the solution I would suggest, The One Ring.
The One Ring is a Google Voice plugin for the system. You can use dbus or telepathy wrappers over dbus to initiate a call. If you want a single command for it, it would be easy for me to wrap this into a single script.
I've looked at this before --in fact, I think I have it installed-- but I have to admit that I find it confusing. There are several names --"The One Ring", "Telepathy", "Google Voice Plugin For Conversations"-- and it is not clear to me whether these are all the same thing. I had expected the Conversations widget to change after installation but it didn't. I'm not sure how to use it.

If it is as I understand, then this "Google The Voice One Plugin Telepathy For Ring Conversations" acts as a daemon which will respond to dbus signals and initiate calls and SMS's on command? Presumably I would use qdbusviewer or something to see what dbus signals it's hooked up to, and all that? If so, then I'd like more info but I'll probably move it over to some other thread since this thread is about Dialcentral.

Dialcentral is attractive since it is written in Python, with which I am familiar; if Google The ... whatever, is written in C++ then I might just stay with Dialcentral to examine its innards.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#1428
Originally Posted by kwtm View Post
(I hope the changes that you make won't force me to upgrade to PR 1.3. Right now PR 1.2 works well and I am rather leery of the bugs reported in PR 1.3.)
I'm still on 1.2 also

Originally Posted by kwtm View Post
I've looked at this before --in fact, I think I have it installed-- but I have to admit that I find it confusing. There are several names --"The One Ring", "Telepathy", "Google Voice Plugin For Conversations"-- and it is not clear to me whether these are all the same thing. I had expected the Conversations widget to change after installation but it didn't. I'm not sure how to use it.

If it is as I understand, then this "Google The Voice One Plugin Telepathy For Ring Conversations" acts as a daemon which will respond to dbus signals and initiate calls and SMS's on command? Presumably I would use qdbusviewer or something to see what dbus signals it's hooked up to, and all that? If so, then I'd like more info but I'll probably move it over to some other thread since this thread is about Dialcentral.

Dialcentral is attractive since it is written in Python, with which I am familiar; if Google The ... whatever, is written in C++ then I might just stay with Dialcentral to examine its innards.
Telepathy is a generic framework for communication. Clients connect to a central hub (Mission Control) which manages all of the individual accounts (Connections on Connection Managers). All of this is through DBus. The One Ring ("pretty name" being "Google Voice Plugin for Calls and Contacts" or something) is a Connection Manager. Because DBus is used at each layer, I wrote TOR in Python.

TOR (not to be confused with Tor) can do the following:
  • Add a "Google Voice" button to system contacts phone numbers
  • Add GV Contacts to the system, updating through polling the server
  • Send Texts
  • Receive texts / voicemail through polling the server
  • Make calls

When a person mentions Telepathy, they could be referring to the spec for any of the pieces or the implementations on their system. Telepathy has a documented spec:
http://telepathy.freedesktop.org/spec/

RTComm (Maemo 4.1, Maemo 5) and Empathy are the most common Telepathy clients.

In prepping myself for writing a util, I realized I made a previous utility more generic than I remembered.

In /opt/theonering/lib is a script called "tp_send_debug.py". It is used in the following way:
Code:
/opt/theonering/lib/tp_send_debug.py GV_NUMBER call DEST_NUMBER
GV_NUMBER and DEST_NUMBER both must be of the format "+180083555" (with +, no spaces, no dashes, no parens). I could add in some stuff to handle sloppier numbers like in the other parts of the code.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

The Following User Says Thank You to epage For This Useful Post:
Posts: 22 | Thanked: 6 times | Joined on Sep 2010
#1429
Originally Posted by epage View Post
What version of DialCentral are you using?

Have you configured your callback number (the accounts tab on the released version, the accounts dialog on the beta version).
I've added a callback number yes.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#1430
Originally Posted by peterch405 View Post
I've added a callback number yes.
Sorry for the questions but I'd rather not be making assumptions.

First, please inform me of the DC version.

Second, are you saying you've set it and are getting the problem or you've added it and it has since been fixed?

Is it a Gizmo number or a regular one?

Is the number added in your GV account?

If this is DC 1.1.9X, have you re-applied your callback number since re-launching?
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:28.