Archived:Alarm at specified cell id using PySymbian
Sometimes, it happens that you are traveling in a train and know the "destination's cell id", but want to sleep for while. Just enter the cell id of the destination and you will be woken up by the alarm.
Just use this code, it will trigger alarm as soon as cell id of the location matches with the cell id you input,
from graphics import *
from audio import *
f = 'Z:\\Nokia\\Sounds\\Digital\\Alarm.mid' # Could be changed, this is what you will hear
data=appuifw.query(u"enter the cell id","number")
while abc == 0:
if(xyz == data):
s = Sound.open(f)
s.play(KMdaRepeatForever) # Alarm will play until Network is available.
appuifw.app.title = u"location Mode"
appuifw.app.exit_key_handler = quit # Press "Quit" to quit application.
app_lock = e32.Ao_lock()