Ezzemo Wrote:Simple Python Based Remote control for XBMC.
Requires Wifi and a Symbian S60 3rd Edition Phone.
Screenshots:
Download: http://www.mediafire.com/file/5j83on99cc...motev2.rar
PIPs Installer: http://www.megaupload.com/?d=IF16BWHY (you might also need it)
******************
**HOW TO INSTALL**
******************
************
**COMMANDS**
************
? : Set Host, change Theme or Exit
i : View movie information
* : Options Menu (on movie menu or while playing)
x : exit
C : Return
[+]: change Aspect Ratio (during movie)
[/]: Toogle Windowed or Fullscreen Mode
S : Toogle Subtitles on/off
Also: Play, Pause, Stop, FastForward, Rewind, Next, Previous, VolumeUp, VolumeDown, Mute
********************************************
Improvements:
- The pythons scrip now works on key events, it is more CPU friendly and will not run out your battery.
- More KeyOptions.
- Visual display of commands
- "Themes" supported
*********************************************
Known Problems or issues:
- It will take some seconds to send the first keys.
- If the cellphone is in standby it will take 2 key press to send command. the first to wake up.
- I will not save your changed server adress.
- You have to open python first to access the program. (a Sis programa can be created in the future)
****************************************
Tested on Nokia N85 using XBMC Dharma beta 2
Should work on:
Nokia N78, N79, N81, N82, N85, N86, N95, N96, E51, E55, E71, E72, E75, Samsung GT-I7110 and maybe some others.
Better than using the Iphone since you don't have to look at the screen, you can feel the keyboard.
Enjoy,
Ezzemo
Hi Ezzemo,
and thank you!
I manage to run your application on a Nokia E7-00 Symbian^3 device S60 5th Edition.
I had to change one path in order for it work, plus I changed the commands the way I like them
little howto:
In the main XBMC window, choose
SYSTEM then
Network then
Services
Check "Allow control of XBMC via HTTP"
Check "Allow programs on this system to control XBMC"
Check "Allow programs on other systems to control XBMC"
Then download Python at
https://garage.maemo.org/projects/pys60
Today the file to download is:
https://garage.maemo.org/frs/download.ph...0.0.tar.gz
but check to see if there is a newer one.
Then install on your phone:
Python_2.0.0.sis
and
PythonScriptShell_2.0.0_high_capas.sis
Then copy the Python script and the two images on the phone in the folder C:\data\python
Since the keyboard is totally different in the E7 the pictures don't make much sense. I change the picture with an image that reminds the meaning of each key such as:
Code:
Left = left key
Right = right key
Up = up key
Down = down key
Backspace / 1 = esc
Enter / 2 = enter
3 = switch off
4 = toggle menu
5 = volume up
6 = volume down
Space / 7 = play / pause
8 = stop
9 = mute
0 = full screen
the Python script is difficult to write, but easy to understand, so you can customize it as you like.
you need to modify for example the strings like this one:
Code:
canvas.bind(EKey1,lambda:urllib2.urlopen('http://'+xbmc+'/xbmcCmds/xbmcHttp?command=sendKey(0xF01B)'))
to be able to change these line, you need three references.
The first tells you which keys you can intercept on Python for S60:
http://people.csail.mit.edu/rudolph/Teac..._1_3_1.pdf
I'll also copy them here, in case the file disappear:
Code:
Key Keycode Scancode
1. EKeyLeftSoftkey EScancodeLeftSoftkey
2. EKeyYes EScancodeYes
3. EKeyMenu EScancodeMenu
4. EKey0...9 EScancode0...9
5. EKeyStar EScancodeStar
6. EKeyLeftArrow EScancodeLeftArrow
7. EKeyUpArrow EScancodeUpArrow
8. EKeySelect EScancodeSelect
9. EKeyRightArrow EScancodeRightArrow
10. EKeyDownArrow EScancodeDownArrow
11. EKeyRightSoftkey EScancodeRightSoftkey
12. EKeyNo EScancodeNo
13. EKeyBackspace EScancodeBackspace
14. EKeyEdit EScancodeEdit
15. EKeyHash EScancodeHash
the second reference tells you what kind of commands you can send to XBMC:
http://xbmc.svn.sourceforge.net/viewvc/x...iew=markup
and for the action list, you can look here:
http://wiki.xbmc.org/?title=Keymap.xml#Actions
and if you want to send KEY_ASCII keys, you need to know the values! Here:
http://groups.google.com/group/commandfu...e486?pli=1
http://voxcommando.com/forum/index.php?topic=104.0;wap2
and I will also copy them directly here:
Code:
space = SendKey(61472) 0xF020
singlequote = SendKey(61662) 0xF0EE
, = SendKey(61628) 0xF0BC
- = SendKey(61629) 0xF0BD
. = SendKey(61630) 0xF0BE
/ = SendKey(61631) 0xF0BF
0 = SendKey(61488) 0xF030
1 = SendKey(61489) 0xF031
2 = SendKey(61490) 0xF032
3 = SendKey(61491) 0xF033
4 = SendKey(61492) 0xF034
5 = SendKey(61493) 0xF035
6 = SendKey(61494) 0xF036
7 = SendKey(61495) 0xF037
8 = SendKey(61496) 0xF038
9 = SendKey(61497) 0xF039
; = SendKey(61626) 0xF0BA
equals = SendKey(61627) 0xF0BB
A = SendKey(61505) 0xF041
B = SendKey(61506) 0xF042
C = SendKey(61507) 0xF043
D = SendKey(61508) 0xF044
E = SendKey(61509) 0xF045
F = SendKey(61510) 0xF046
G = SendKey(61511) 0xF047
H = SendKey(61512) 0xF048
I = SendKey(61513) 0xF049
J = SendKey(61514) 0xF04A
K = SendKey(61515) 0xF04B
L = SendKey(61516) 0xF04C
M = SendKey(61517) 0xF04D
N = SendKey(61518) 0xF04E
O = SendKey(61519) 0xF04F
P = SendKey(61520) 0xF050
Q = SendKey(61521) 0xF051
R = SendKey(61522) 0xF052
S = SendKey(61523) 0xF053
T = SendKey(61524) 0xF054
U = SendKey(61525) 0xF055
V = SendKey(61526) 0xF056
W = SendKey(61527) 0xF057
X = SendKey(61528) 0xF058
Y = SendKey(61529) 0xF059
Z = SendKey(61530) 0xF05A
[ = SendKey(61659) 0xF0DB
\ = SendKey(61660) 0xF0DC
] = SendKey(61661) 0xF0DD
_ = SendKey(61629) 0xF0BD
` = SendKey(61632) 0xF0C0
backspace = SendKey(61448) 0xF008
enter = SendKey(61453) 0xF00D
tab = SendKey(61449) 0xF009
control = SendKey(61457) 0xF011
alt = SendKey(61458) 0xF012
pausebreak = SendKey(61459) 0xF013
capslock = SendKey(61460) 0xF014
esc = SendKey(61467) 0xF01B
pageup = SendKey(61473) 0xF021
pagedown = SendKey(61474) 0xF022
end = SendKey(61475) 0xF023
home = SendKey(61476) 0xF024
leftarrow = SendKey(61477) 0xF025
uparrow = SendKey(61478) 0xF026
rightarrow = SendKey(61479) 0xF027
downarrow = SendKey(61480) 0xF028
printscreen = SendKey(61484) 0xF02C
insert = SendKey(61485) 0xF02D
delete = SendKey(61486) 0xF02E
window = SendKey(61531) 0xF05B
F1 = SendKey(61552) 0xF070
F2 = SendKey(61553) 0xF071
F3 = SendKey(61554) 0xF072
F4 = SendKey(61555) 0xF073
F5 = SendKey(61556) 0xF074
F6 = SendKey(61557) 0xF075
F7 = SendKey(61558) 0xF076
F8 = SendKey(61559) 0xF077
F9 = SendKey(61560) 0xF078
F10 = SendKey(61561) 0xF079
F11 = SendKey(61562) 0xF07A
F12 = SendKey(61563) 0xF07B
numlock = SendKey(61584) 0xF090
So finally my script looks like this:
see next post, the forum complains I wrote too much!
Thank you!!!