By raissa
Suppose you’re waiting for your boss to arrive in the building or that you’re just expecting the arrival of a friend somewhere. Now, imagine if you could just leave the awareness to your cellphone and be warned when the desired person is around - that’s what our new application, BT Friend Finder, does for you. First you have to discover devices using your phone’s bluetooth and then you can choose to monitor their devices, that is, the application will run in background and will warn you when there’s any monitored person around.
This application uses silent_bt and appswitch module, so, it’s necessary to install it or the app will not work. The link for the unsigned installation file and the source code are available here.
By raissa
While developing Fake Call, we had to find a way of detecting long keypress of an especific key. The solution we found was to keep calling a function that puts the current time in a list when the key is pressed and check everytime if the last value minus the first is equal to the amount of seconds desired. It goes something like this:
import time
import key_codes
import keycapture
import globalui
def check():
global press
global secs
time_so_far = int(secs[-1] - secs[0])
if (time_so_far == press):
secs = []
globalui.global_note(unicode("done"), 'info')
#here you put what you want to do
#when the key is pressed for the specified
#number of seconds
elif (time_so_far > press): #Reset the couting
secs = []
def cb_key_capture(key):
global secs
if key == key_codes.EKeyStar:
#EKeyStar is just an example! You can use other
secs.append(time.time())
check()
secs = [] #list of seconds
press = 3 #3 seconds long, for ex.
#Create a KeyCapturer object, specifying the method
capturer = keycapture.KeyCapturer(cb_key_capture)
#only the star key should be captured
capturer.keys = (keycapture.EKeyStar,)
#Start detecting key presses
capturer.start()
This is just a way of making it. If you know any other, share!
By raissa
A new application was developed. Fake Call is an application that shows an incoming phone call that does not exist. When activated, it runs in background waiting for the shortcut to be pressed for some seconds and then the phone starts ringing. The user will be able to answer this call and/or end it and the application will continue to run until he decides to close it, that is, there’s no need to restart the application after using it once. It’s possible to change the appearing name or number of the call id, the press delay of the shortcut, the key and the number of seconds that the app must wait before it starts ringing after the long press of the shortcut. Enjoy it!
Obs: This application uses appswitch module, so, it’s necessary to install it or the app will not work.
The link for appswitch, the unsigned installation file and the source code are available here. If there are any possible problems, feel free to change the code and contribute.
By arthur
Using the landmarks API that was posted here a few days ago, two applications were developed: the landmark receiver and the landmark sender. These applications are simple and the point of the is to send a message showing where you are to another person and the message will be processed and converted on a landmark that can be shown on “Nokia Maps”.
So, from the other explanation, the landmark sender get your position using gps(simulated, integrated, network, assisted or bluetooth) and generate a SMS in a special format with the information of your position and a description that you’re going to pass, after that it sends the SMS to the number that you’re going to pass to.
The landmark receiver, is there just to process the message that the landmark sender will send, the program runs in background and for every message that comes the program processes and check if it is in the correct format, after checking, if it is in that format so the program will make use of the landmarks API and will generate, export and open the landmark, so the user can see here the other people is.
Well, these are Landmark Sender and Landmark Receiver, enjoy it!
P.S.: On landmark sender just bluetooth and netowrk gps is not working, if you can, please contribute.
P.S.2: The programs are adapted to Brazilian system of telephony so if you wnat to adapt to yours change the source code.
P.S.3: This application use appswitch module, so, if you want to use it you will have to instal it first.
This is a beta version so, try to help us and change the source codes if there are any problems.
To download the source codes or the installation files, got to the applications section by clicking here.
By arthur
A Python for S60 extension was made using symbian C++.
It’s a small API for manipulating landmarks using python, with this API you can add a landmark to phone’s database, remove the landmark, and edit it to see later on “Nokia Maps” application.
With this API is easy to create categories, and get/set some of the atributes of a landmark, like name, description, coverage radius, categories, and export the landmark to a lmx file.
The use is very simple and API has the following features:
- Module level functions:
database_landmarks() - This method lists the landmarks that are saved in the database using a dict.
delete_landmark(landmark) - This method receives a Landmark object and deletes it.
database_categories() - This method lists the categories that are in database using a dict.
create_category(name) - this method receives a string(name of the category) and create a category to be used by a landmark received string, returns True if it was created, else return False.
- Class:
Landmark(id = None) - class that append a landmark to the database if id is not passed, and gets an existing landmark if the landmark with the id that was passed exists.
- Class Atributes:
id - the identification of the landmark in the database.
- Class Methods:
add_category(category_name) - Receives a string that is the category name and add the category if it exists, else, nothing happens.
remove_category(category_name) - Receives a string that is the category name and removes the category from landmark if the category is associated with the object, else, nothing happens.
set_name(name) - Receives a string that is going to be the landmark’s name.
set_location(latitude, longitude) - Receives two floats and set the position(latitude/longitude) of the landmark to these values.
set_description(description) - Receives a string that is the description name and set the landmark’s description to it.
set_radius(radius) - Receives a float that corresponds to radius and set the landmark’s radius.
get_name() - returns the landmark’s name.
get_description() - returns the landmark’s description.
get_radius() - returns the landmark’s radius.
get_position() - returns a tuple with latitude and longitude of the landmark.
get_categories() - returns a dict( key = category name, value = id) of the categories names that are associated to the landmark.
export(filename) - exports the landmark to the lmx file with the filename passed as parameter.
The unsigned installation file can be found here and the source code can be found here.
By arthur
A ‘Whack the mole’ game was developed using pys60.
The game is easy to play, you have to hit as more moles as you can, using the 1 to 9 keys, where each key correspond to a hole.
You can donwload the code and the .sis file here
By diego
Here is a good code example of how to make animations without block and using sprites in python for series 60.
By diego
Diego Bezerra has writen a good tutorial teaching how to do C Python for series 60 extensions using Carbide.c++
It was posted first on forum nokia wiki. You can see that here.
By diego
I’m pleased to announce the champion of Efforts Competition.
Hugo Parente has developed a game which uses s60 acelerometer to controls a ball through a maze.
The installation file can be found here.
By diego
Here is an excelent tutorial teaching how to access S60 resources in WRT or FlashLite using PyS60. It was made by WRT effort team.