maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Grandcentral Dialer Application (https://talk.maemo.org/showthread.php?t=18802)

slip 2008-06-21 03:56

Re: Grandcentral Dialer Application
 
One of the first numbers i entered using this app was 800-GOOG-411, Google's excellent and free 411 information service. i'm assuming it is US-only. i hesitate to suggest adding a dedicated 411 button to the dialer, because i realize that z2n has limited tiime to devote to this project, and because i don't want to encourage feature-bloat, but it might be useful for some situations.
looking forward to the new .deb

heavyt 2008-06-21 04:30

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide
[code
else :
Dialpad.wgetcmd = Dialpad.wgetcmd + Dialpad.phonenumber
returnval = 0
# Remove any existing output file...
if os.path.isfile(wgetoutput) :
os.unlink(wgetoutput)
child_stdout, child_stdin, child_stderr = os.popen3(Dialpad.wgetcmd)
timestamp=time.asctime(time.localtime())
stderr=child_stderr.read()
[/code]

Here is the fix

Code:

                else :                                                                                                                                                                                                                                                           
                        returnval = 0                                                                                                                                                                                                                                             
                        # Remove any existing output file...                                                                                                                                                                                                                     
                        if os.path.isfile(wgetoutput) :                                                                                                                                                                                                                           
                                os.unlink(wgetoutput)                                                                                                                                                                                                                             
                        child_stdout, child_stdin, child_stderr = os.popen3(Dialpad.wgetcmd + Dialpad.phonenumber)                                                                                                                                                               
                        timestamp=time.asctime(time.localtime())                                                                                                                                                                                                                 
                        stderr=child_stderr.read()

You see I removed the one line and modified the popen3 command. This should keep the wgetcmd string clean. I have tested this chage and it works.

Did the change, now works like a charm! :D

brontide 2008-06-21 05:16

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by slip (Post 194024)
One of the first numbers i entered using this app was 800-GOOG-411, Google's excellent and free 411 information service. i'm assuming it is US-only. i hesitate to suggest adding a dedicated 411 button to the dialer, because i realize that z2n has limited tiime to devote to this project, and because i don't want to encourage feature-bloat, but it might be useful for some situations.
looking forward to the new .deb

You did know you can call 800/877 numbers directly through gizmo project even without a call-out credit? You could easily make a contact for Google 411 and call without having to use grandcentral.

brontide 2008-06-21 05:19

Re: Grandcentral Dialer Application
 
Anyone who has it already installed and would like to try the newest version all they need to do is backup and replace the /usr/local/bin/gc_dialer.py and /usr/local/lib/gc_dialer.glade files. That's all!

Currently there is not much to see short of the bugfix, but I'll be pounding away this weekend to get a few things off my idea list.

racky 2008-06-21 05:30

Re: Grandcentral Dialer Application
 
Just came back from work, and I am glad to see someone has proved that my idea of the bug is correct. Thanks brontide, thanks z2n and everyone.

slip 2008-06-21 14:01

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194031)
You did know you can call 800/877 numbers directly through gizmo project even without a call-out credit? You could easily make a contact for Google 411 and call without having to use grandcentral.

Nope, I didn't know that. I really only use gizmo withh GC, and not very often even then. Thanks for the tip.

brontide 2008-06-21 15:03

Re: Grandcentral Dialer Application
 
Here are the ideas I am going to be working on over the weekend

1) Increase the font sizes and make layout full screen compatible ( and rotated )

2) Move the about to the menu

3) Remove the quit button and make it "recent" and have that replace the dialpad with a list of numbers

--

Stuff that I want to implement, but probably not this weekend

1) Drop wget as a dependency, I should be able to do all the URL processing directly with urllib2 in python

2) Add support for logging in directly through the UI

3) Add support for changing the callback number on the fly

As this is my first app with python and pygtk it will take longer than I want since I need to translate my thinking into python.

z2n 2008-06-22 01:43

Grandcentral Dialer Application v0.5 deb package now available
 
Quote:

Originally Posted by heavyt (Post 194019)
Please hurry up with that deb package, I love this stuff. Not a code person (not yet) but willing to give it a thorough test run. Thanks to all. :)

Done. The packaged release of version 0.5 is now available on the mameo garage site for Grandcentral Dialer.

The changes are:
  • Fixed bug with concatenated phone numbers (thanks to Brontide)
  • Enhanced error messages, tested for presence of cookies.txt file, checked for response from grandcentral.com indicating that the cookie is missing.
  • Removed duplicates from drop-down dialed number history list.

heavyt 2008-06-22 02:48

Got it but it will not install! Tried several times. It removed the last version of GC and the folder /usr/local/bin.

racky 2008-06-22 03:43

Re: Grandcentral Dialer Application
 
Same as me. Installed successfully but can't find the icon anywhere, reboot didn't help.

qole 2008-06-22 04:14

Re: Grandcentral Dialer Application
 
me three. 0.5-1 isn't installing anything.

EDIT: I extracted gc_dialer.py and gc_dialer.glade from the deb and put them in the /usr/local/bin and /usr/local/lib dirs, and things seem to be working as advertised.

EDIT2: No, I was wrong. I can't make a call. It keeps insisting that it failed to login to www.grandcentral.com, no matter what I do.

brontide 2008-06-22 13:19

Re: Grandcentral Dialer Application
 
I think I know what happened. With two developers we may have had some overlap.

Scarflash 2008-06-22 14:20

Re: Grandcentral Dialer Application
 
grrrr...I'm getting the same problem.

slip 2008-06-22 15:01

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194294)
I think I know what happened. With two developers we may have had some overlap.

arrgh....i was afraid this might happen. please don't fork this project. i take back what i said about loving open-source :p

brontide 2008-06-22 19:21

Re: Grandcentral Dialer Application
 
Been hacking all day, I probably need another day but the app is coming along nicely. I have 100% code sharing between a desktop/GTK version and a nokia/Hildon version ( makes it much easier to hack when I can do 95% of the development under a stock linux box ). I have keyboard shortcuts working, the About is now in the menu, phone number is now big and bold, and the layout of portrait friendly. Now I just need to put recent numbers back together again ;-)

z2n passed along some urllib2 code from another hacker and I'll probably have native login working by the end of the week.

Are there other free-ish "callback" services out there? It should be easier now to implement them as plugins for the dialer.

heavyt 2008-06-22 20:11

Re: Grandcentral Dialer Application
 
Thanks for the update brontide, at this time I only know of GC service.

qole 2008-06-22 21:13

Re: Grandcentral Dialer Application
 
Brontide, please release your desktop version too. I know my wife would love to be able to dial a number on the laptop in the kitchen to call her parents for free.

brontide 2008-06-23 00:19

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by qole (Post 194395)
Brontide, please release your desktop version too. I know my wife would love to be able to dial a number on the laptop in the kitchen to call her parents for free.

It's the same .py file. If the hildon libraries load it will automatically use the hildon menu and other maemo items. I am doing the main development under my desktop, so I expect it will continue to work for the foreseeable future.

The full keyboard shortcuts will be better under a desktop as well because of the dedicated number keys. All you need to do is select the app, type in the number and hit return.

brontide 2008-06-23 03:03

Re: Grandcentral Dialer Application
 
This would be so much easier if gtk+/glade wasn't so infuriating. The functionality is rather trivial, but I'm spending most of my time trying to get trivial UI tricks out of this stuff.

tlacuache 2008-06-23 13:48

Re: Grandcentral Dialer Application
 
Hey, so regarding running the .py script on my desktop... it complains about the cookie file not being in the microb directory. What do you do to get the correctly-formatted cookie when running it on the desktop?

Thanks for a great little utility, by the way. Super cool.

brontide 2008-06-23 14:16

Re: Grandcentral Dialer Application
 
Oops, yeah, just make the directory and ln -s yourprofilecookie.txt ~/.mozilla/microb/cookies.txt

That problem should disappear once I've integrated the native login code.

bg4 2008-06-23 15:35

Re: Grandcentral Dialer Application
 
whenever I install the .5 upgrade the app disappears from my extras directory

sigh

qole 2008-06-23 16:22

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194426)
It's the same .py file...

The full keyboard shortcuts will be better under a desktop as well because of the dedicated number keys....

Quote:

Originally Posted by brontide (Post 194573)
Oops, yeah, just make the directory and ln -s yourprofilecookie.txt ~/.mozilla/microb/cookies.txt

Of course, we would have a laptop (with no numeric keypad) running Windows (with no softlink function).

tlacuache 2008-06-23 16:43

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194573)
That problem should disappear once I've integrated the native login code.

You're right, having a native login is a much better approach. I'll just be patient. :)

brontide 2008-06-23 16:49

Re: Grandcentral Dialer Application
 
Am I going about this the hard way, would it be easier on people for this to be a web app? One page could contain 100% of the UI and a few, completely stateless, functions server side would complete the app.

qole 2008-06-23 16:57

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194621)
Am I going about this the hard way, would it be easier on people for this to be a web app? One page could contain 100% of the UI and a few, completely stateless, functions server side would complete the app.

But doesn't that mean we have to give your web app our Grandcentral login information? Unless you're thinking of running some kind of tiny web server on the tablet / computer itself...

tlacuache 2008-06-23 17:08

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194621)
Am I going about this the hard way, would it be easier on people for this to be a web app? One page could contain 100% of the UI and a few, completely stateless, functions server side would complete the app.

It's always easy for the person not actually writing the code (me) to give advice than it is for the coder to actually be able to implement it, but IMHO you've been going about it exactly right. Having this be client side is the whole selling point for me on this. If I were to have to open a web page to run this, it would only be slightly more useful than just logging into grandcentral itself.

Just my $0.02.

brontide 2008-06-23 17:09

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by qole (Post 194625)
But doesn't that mean we have to give your web app our Grandcentral login information? Unless you're thinking of running some kind of tiny web server on the tablet / computer itself...

Yes and no... the way I see it working you need the login information only to pass through the server in order to get the tokens to do the rest. So no server side storage of any credentials would be necessary.

The tipping point for me right now is just getting GTK to do what I want, if I can't get it to do that I'll switch. I may still do a web based one later.

qole 2008-06-23 17:46

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194630)
So no server side storage of any credentials would be necessary.

The problem is that you might say that you're not storing the credentials, but you could, very easily... And if you ask for the credentials, you'd have to have an SSL secured page...

tlacuache 2008-06-23 17:51

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by qole (Post 194645)
The problem is that you might say that you're not storing the credentials, but you could, very easily... And if you ask for the credentials, you'd have to have an SSL secured page...

Well, I suppose as long as the server-side script(s) involved were provided for me to host on my own web server, I'd be OK with it. That way I have control of the whole process. I know that's not an option for everyone, though.

I hope you can figure the GTK issues out, I know that's a pain. Good luck.

brontide 2008-06-23 19:04

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by tlacuache (Post 194647)
I hope you can figure the GTK issues out, I know that's a pain. Good luck.

Looks like glade-3 might be better. I just know that glade-2 has been a real PITA.

Yeah, when I go the web route it would all be open for others to download and run themselves. I might host a version myself, but only as a convenience to others.

qole 2008-06-23 19:17

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194670)
Looks like glade-3 might be better. I just know that glade-2 has been a real PITA.

Yeah, when I go the web route it would all be open for others to download and run themselves. I might host a version myself, but only as a convenience to others.

There's a few tiny http servers out there for the Tablets, that might be a cool idea if the dialer can run on a local web server.

ioan 2008-06-23 19:33

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by brontide (Post 194621)
Am I going about this the hard way, would it be easier on people for this to be a web app? One page could contain 100% of the UI and a few, completely stateless, functions server side would complete the app.

Thanks, but no thanks. An application simple as this should not be dependent of a web server.
-ioan

brontide 2008-06-23 19:52

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by ioan (Post 194682)
Thanks, but no thanks. An application simple as this should not be dependent of a web server.
-ioan

Ahh, but it already is... if grandcentral.com is down or unreachable this app is pointless.

Making some headway again; looks like the solution will be using a GTKNotebook to simplify this and make it do what I want. Each tab ( tabs will not be seen, they will be controlled via finger mashing friendly buttons ) will contain a different way of interacting with the dialer. One will be the keyapd, the other will be recent, one will be for login information, one for changing the callback settings, and one for voicemail ;-) ( maybe one day ). This will make it a nice, self-contained, one-window format.

So I'm kinda ripping this apart at the moment. I swear I'll get something uploaded soon* for everyone to play with.


* YMMV, Offer not valid in all 50 states, Toddler and wife have dibs on time, sleeping optional and may require debugging.

paps 2008-06-24 00:38

Re: Grandcentral Dialer Application
 
Yea, I can't find the icon for .5, going to use .4 until a fix or new release is made.

slip 2008-06-24 01:36

Re: Grandcentral Dialer Application
 
Brontide, while I appreciate the idea and effort you are contributing to this project, the whole beauty of this application was that it was a dead-simple, uncomplicated way to dial a phone number on the IT and have GrandCentral ring you back through Gizmo. The application worked for that purpose quite well. Granted, it benefited from the minor UI tweaks that z2n made, but otherwise it was pretty perfect from the start.

All I really want at this point is a working version of what z2n intended to release with version 0.5_1, including your bug fix for the concatenated numbers (great work on solving that, by the way).

This is really a case of K.I.S.S.

z2n, do you have the original 0.5 code that you can update with the bugfix and re- post?

brontide 2008-06-24 02:01

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by slip (Post 194772)
Brontide, while I appreciate the idea and effort you are contributing to this project, the whole beauty of this application was that it was a dead-simple, uncomplicated way to dial a phone number on the IT and have GrandCentral ring you back through Gizmo. The application worked for that purpose quite well. Granted, it benefited from the minor UI tweaks that z2n made, but otherwise it was pretty perfect from the start.

All I really want at this point is a working version of what z2n intended to release with version 0.5_1, including your bug fix for the concatenated numbers (great work on solving that, by the way).

This is really a case of K.I.S.S.

z2n, do you have the original 0.5 code that you can update with the bugfix and re- post?

You are free to pull the working py and glade files from svn, but I assure you that you are making assumptions about what I'm doing. Right now I'm just trying to get the code into a more maintainable state. I think z2n would agree that it was a hack to begin with and that it could use some TLC.

For now, use what's in the SVN... but I still need another day or two to finish up my overhaul of the .glade UI files. The changes should make it easier to maintain and add new features incrementally.

slip 2008-06-24 03:39

Re: Grandcentral Dialer Application
 
OK, I may have written prematurely, and I apologize if I sounded ungrateful. Both you and z2n have made a great contribution to making the N8x0 an even more useful device for a lot of people. The truth of the matter is that I've only used the GC app once for a real call. I wrote about it here:

http://www.internettablettalk.com/fo...3&postcount=58

But it is one of those things that I like knowing is available and working when I need it. (About to become a dad, so making sure I'm contactable is high priority right now)

brontide 2008-06-24 03:55

Re: Grandcentral Dialer Application
 
Quote:

Originally Posted by slip (Post 194794)
http://www.internettablettalk.com/fo...3&postcount=58

But it is one of those things that I like knowing is available and working when I need it. (About to become a dad, so making sure I'm contactable is high priority right now)

Congratulations! #2 is on the way at our household.

I'm sorry about the furbar with 0.5, but I don't even know where to start for building the official deb file. I know you can have it working by installing the previous version and then dropping in the two files ( gc_dialer.py / gc_dialer.glade ) from the svn. I'll beg z2n to rebuild the current svn and post it as well.

I should have something useful soon (tm). Slightly improved layout, 7 digit dialing to start... probably native login, fullscreen, and on-the-fly callback number changing support.

Right now most of my time is being consumed fighting with the GTK tools and not the more interesting backend stuff. If anyone has a tutorial on laying out with glade so dialogs don't look like *** I would appreciate it.

heavyt 2008-06-24 07:05

A rebuild of the current svn should would be nice to see. For now I have gone back to release 0.4 but I had to make dir /usr/local/bin before it would install. Release 0.5 deleted it!


All times are GMT. The time now is 00:44.

vBulletin® Version 3.8.8