English

Example of python handling of the NetworkRegistrationChanged DBus signal sent by gnome-phone-manager

#!/usr/bin/env python

import gobject

  

List of GSM networks

This is the list of GSM networks known by gnokii 0.6.23 parsed from http://en.wikipedia.org/wiki/Mobile_network_code and shown with Drupal 5.x CSS/Javascript collapsible class.

libgnokii example: gnobatmon - read battery level

This is the second version of small program which continuously reads battery level from the phone and executes a script when it changes.

I first wrote this program to draw a graph of battery discharge over time, but since the FBUS protocol has only 5 levels (0, 1, 2 ,3 and 4 which this program converts to 0, 25, 50, 75 and 100) it turned out pretty dull; the AT driver supports 101 levels (0 to 100) so it could produce a more interesting graph, if phone firmware supports more than 5 levels, that is. This program outputs -1 when battery level can't be read.

Compile gnocky with libgnokii libgnokii.so.3 from gnokii 0.6.17

Edit 2007/07/07: next version of gnocky will be available from http://www.gnokii.org/

The following patches written by Daniele Forsi allow to:

  • use gnocky 0.0.3 with libgnokii.so.3 (gn_cfg_read_default() and gn_cfg_phone_load())

  • tolerate missing network coverage (GN_ERR_NOTAVAILABLE)
  • read SMS from "SM" if phone doesn't support "IN"
  • fix parts of the GUI (Refresh button still non functional)
  • fix a memory leak (gtk_set_locale())

To compile the CVS version of gnocky you need to create an empty NEWS file in the top directory and fix the Makefile in the po directory (which is not including Makevars and so top_builddir is empty instead of ..).

Home page for gnokii: http://www.gnokii.org/

Home page for gnocky: http://sourceforge.net/projects/gnocky/

New links

Added some new links in the links page.

Syndicate content