software to bundle Vodafone credits on Linux???

17 views
Skip to first unread message

Selasie Agbavor

unread,
Jan 24, 2013, 4:45:23 AM1/24/13
to ghana...@googlegroups.com

Looks like Vodafone didn't consider providing a software for Linux users to bundle their credits. So if I may ask how do my fellow Linux buddies bundle their credits? Because I personally don't get why I ought to move the SIM card to a phone and back; I mean, that is a lot of stress for me.So what I normally do is I fire up my python console and send the necessary AT commands to the modem using pyserial. I have now decided to add a graphical touch to the whole thing. So, I now have a simple PyGTK app to do the trick for me. It is still a work in progress but I still would like to share it for feedbacks. Pardon me for the lack of documentation but It is just a quick hack not a final product. It works just fine, except for the fact that the response from the modem is unpredictable i.e you sometimes receive the appropriate confirmation and sometimes you don't; Thus, parsing the data becomes a little bit tricky. So fret not if you receive an IndexError exception. I am aware of that and I have decided not to catch that exception just yet because the truth is I have not decided how to handle it.So you will find attached to this post the source code.Happy hacking! and oh! you will find a not so classy debugging output, enjoy.

Selasie Agbavor

unread,
Jan 24, 2013, 5:17:12 AM1/24/13
to ghana...@googlegroups.com
oops! My bad! I uploaded the wrong version of the file....sorry! I will upload the correct version by tonight.


On Thu, Jan 24, 2013 at 9:45 AM, Selasie Agbavor <vol...@gmail.com> wrote:

Looks like Vodafone didn't consider providing a software for Linux users to bundle their credits. So if I may ask how do my fellow Linux buddies bundle their credits? Because I personally don't get why I ought to move the SIM card to a phone and back; I mean, that is a lot of stress for me.So what I normally do is I fire up my python console and send the necessary AT commands to the modem using pyserial. I have now decided to add a graphical touch to the whole thing. So, I now have a simple PyGTK app to do the trick for me. It is still a work in progress but I still would like to share it for feedbacks. Pardon me for the lack of documentation but It is just a quick hack not a final product. It works just fine, except for the fact that the response from the modem is unpredictable i.e you sometimes receive the appropriate confirmation and sometimes you don't; Thus, parsing the data becomes a little bit tricky. So fret not if you receive an IndexError exception. I am aware of that and I have decided not to catch that exception just yet because the truth is I have not decided how to handle it.So you will find attached to this post the source code.Happy hacking! and oh! you will find a not so classy debugging output, enjoy.

--
 
 



--
C.E.O of VolsBIT Softwares, Telekom Chantelle and founder of VolsBIT School of Engineering

Francis Addai

unread,
Jan 24, 2013, 12:39:46 PM1/24/13
to Ghana GTUG .
Great work Selasie, although I have not seen the code and what to make out of it. I am only saying Kudos for the initiative and even deciding to share it.

A quick suggestion though, IMHO, it is really inconvenient to attach code to email. There are services for that, take pastebin, jsbin, etc etc as examples. If you want the support of the community, opensource and put it on github or my preferred choice, bitbucket. Then put the link to the repo back on the list, people will be more interested in taking a look at the work you have done.


Francis Addai

unread,
Jan 24, 2013, 12:55:27 PM1/24/13
to Ghana GTUG .
The file isn't publicly shared, I still require permission from you before i can access it. See the image below:

Inline image 1
image.png

Selasie Agbavor

unread,
Jan 24, 2013, 6:06:31 PM1/24/13
to ghana...@googlegroups.com
Thanks Francis! advice well taken..forgive me though; I am a bit of an
old school guy :)

On 1/24/13, Francis Addai <4ad...@gmail.com> wrote:
> The file isn't publicly shared, I still require permission from you before
> i can access it. See the image below:
>
> [image: Inline image 1]
>
>
> On Thu, Jan 24, 2013 at 5:39 PM, Francis Addai <4ad...@gmail.com> wrote:
>
>> Great work Selasie, although I have not seen the code and what to make
>> out
>> of it. I am only saying Kudos for the initiative and even deciding to
>> share
>> it.
>>
>> A quick suggestion though, IMHO, it is really inconvenient to attach code
>> to email. There are services for that, take pastebin, jsbin, etc
>> etc<http://www.1stwebdesigner.com/freebies/paste-share-code-snippets/> as
>> examples. If you want the support of the community, opensource and put it
>> on github <http://github.com>or my preferred choice,
>> bitbucket<http://bitbucket.org>.
>> Then put the link to the repo back on the list, people will be more
>> interested in taking a look at the work you have done.
>>
>>
>> On Thu, Jan 24, 2013 at 10:17 AM, Selasie Agbavor
>> <vol...@gmail.com>wrote:
>>
>>> oops! My bad! I uploaded the wrong version of the file....sorry! I will
>>> upload the correct version by tonight.
>>>
>>>
>>> On Thu, Jan 24, 2013 at 9:45 AM, Selasie Agbavor
>>> <vol...@gmail.com>wrote:
>>>
>>>>
>>>>
>>>> bundler.py<https://docs.google.com/file/d/0ByJ1X99Ur5HDeXgyNXE2eTJ0TWs/edit>
Reply all
Reply to author
Forward
0 new messages