Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:Alarm at specified cell id using PySymbian

From Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

This article shows how to set a notification based on the current cell id in Python on Symbian. This might be useful while travelling to be woken up on arrival.

Article Metadata
Tested with
Devices(s): N95, N96
Platform(s): S60
Keywords: cellid, gsm ,audio
Created: shubhendra (30 May 2008)
Last edited: hamishwillee (08 May 2013)



The user of this script should know the cellid of the destination place where the user wants to set the alarm.

Proposed Solution

Just use this code, it will trigger alarm as soon as cell id of the location matches with the cell id you input,

import appuifw
import e32
import location
from graphics import *
from audio import *
import globalui
def run():
f = "e:\\Python\\Alarm.mp3" # Could be changed, this is what you will hear
data=appuifw.query(u"enter the cell id","number")
while abc == 0:
if(xyz[3] == data):
abc = 1
globalui.global_note(u"Alarm Activated please wake up",'wait')
s = # Alarm will play until Network is available.
def loc():
l = location.gsm_location()[3]
print l
globalui.global_msg_query(u""+str(l),u"your Cellid is:",7)
def quit():
app_lock.signal() = u"location Mode" = [(u"Set Alarm",run),(u"Cellid",loc),(u"Back",quit)] = quit # Press "Quit" to quit application.
app_lock = e32.Ao_lock()


Cellid1.jpg Cellid2.jpg Cellid3.jpg

Related Wiki Links

Archived:How to get info on cell location in PySymbian

This page was last modified on 8 May 2013, at 11:52.
45 page views in the last 30 days.