PyHumod 0.02-beta with Event Handling out!
New PyHumod 0.02-beta with improved support for MacOS X and event handling is out and up for grabs at:
http://pyhumod.googlecode.com/files/pyhumod-0.02-beta.tar.gz
The Wiki doc describing Event Handling with PyHumod can be found here:
3 Comments:
Cute so far. Would be nice to have a feature that
allows retrieval of prepaid balance from the ISP.
One problem:
m = humod.Modem()
m.connect()
goes through with no error message, ppp0 shows on
ifconfig, but I can't see any IP addresses. Tried
adding the line
usepeerdns
to /etc/ppp/peers/humod, but no success. Am posting
this having connected the modem via wvdial.
My wvdial.conf:
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Phone = *99***1#
Username = blah
Password = blah
New PPPD = yes
ISDN = 0
Modem Type = Analogue Modem
Carrier Check = No
Init1 = AT
Init2 = AT^SYSCFG=14,2,3FFFFFFF,2,4
Init3 = AT+CSQ
Init4 = AT+CGDCONT=1,"ip","internet"
This morning, no problems connecting in full, so I suppose the problem was bad signal. PyHumod connects much quicker than wvdial or vodafone-mobile-connect. Great software! And understandable too!
Hi Dirk,
Thanks very much for kind words. I will look into the prepaid balance report when I'll get a chance.
BTW: usepeerdns is already passed to pppd as one of the default options. You can see the list of pppd parameters if you enter
>>> m.pppd_params
in the interpreter. From there you can change them by modifying the list so e.g. m.pppd_params.remove('usepeerdns') etc.
Take care!
Post a Comment
Subscribe to Post Comments [Atom]
<< Home