zixing131 / pytriloquist

Pytriloquist is a Python-based Bluetooth remote control app for Symbian S60 5th Edition devices.

Home Page:http://www.youtube.com/watch?v=2IVXMAJHwI8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pytriloquist

Pytriloquist is a Python-based Bluetooth remote control app for S60 5th Edition devices. I developed this app in two weekends while exploring my brand new smartphone, a Nokia 5800 Xpress Music.

Author:Daniel Fernandes Martins <daniel@destaquenet.com>
Company:Destaquenet Technology Solutions

Features

  • Multi-lingual interface (English and Brazilian Portuguese);
  • Configurable applications and commands;
  • Full touchpad support.

Warning

This app is just a prototype; it's not intended to be used "in production". If you do so, do at your own risk.

Server App

Requirements

  • Linux operating system with Bluetooth card;
  • Python 2.5+;
  • Python Bluetooth stack (like PyBluez);
  • xautomation (used to reproduce the mouse gestures on the X11 server).

Usage

Run the following command to start up the server:

$ python src/server/pytriloquist.py [-c CONFIG_MODULE]

Client App

Requirements

Build and Install

To be able to package the client app to a .sis file, you need to download and extract Python for S60 to your computer.

Then, open Makeconf and change the PYS60_DIR variable to make it point to that directory.

Finally, run make to build two packages:

  1. A .sis package (unsigned);
  2. A .sisx package (signed with the built-in certificates).

Just upload the appropriate package to your device to install it.

Usage

On your device, open the Applications menu and launch Pytriloquist from there.

Python for S60 has some serious issues with btsocket.bt_discover(), which is the function used to perform Bluetooth device/service lookup. Thus, you are required to configure the server address manually using the Settings dialog. Run hcitool dev on the server to find out the address of your bluetooth card.

Once configured, you can use the input touchpad and add commands to be executed on the server.

Touchpad Gestures

The three mouse buttons are located on the bottom-left corner of the screen, and the light gray rectangles are the scrollbars.

It works pretty much like a laptop's touchpad. The only exception is the drag and drop gesture; touch the mouse button, move the finger/stylus outside the button area and release to start dragging. Touch the button again to stop.

FAQ

Is it just for Linux?

Yes, although you can easily modify the server script to make it work with other operating systems as well. But that's up to you.

What do you think of Python for S60?

The Python port for the S60 platform is a work in progress, so expect lots of bugs and shortcomings. If you pretend to create professional apps for S60, do it in C++.

About

Pytriloquist is a Python-based Bluetooth remote control app for Symbian S60 5th Edition devices.

http://www.youtube.com/watch?v=2IVXMAJHwI8

License:Other


Languages

Language:Python 100.0%