send text through the http api/via remote
#1
Hi everyone,

I'm developing the xbmc remote at http://forum.xbmc.org/showthread.php?tid=88522 .

I'd like to incorporate a feature where I can enter text on my phone and send it to xbmc. Is there any way to send strings or single letters via udp or the http api?

Thanks, cheers

Thomas
Reply
#2
And what do you want XBMC to do with it when it receives it? Display a notification?
Reply
#3
No I want the user to be able to enter text, for example for searches or file renaming, with the keyboard on the phone and not by selecting each letter on the TV on the "soft-keyboard"via up-down-left-right-enter.
Reply
#4
I believe you need to use the event server

If you look here...

https://github.com/xbmc/xbmc/tree/master...lients/lib

you'll find code for various languages to send event server messages.

The one you want should be the Button packet
Reply
#5
You can use SendKey(buttoncode) where buttoncode has the value 0xF100+ ASCII value of the character you wish to send.

You will need to send one character at a time rather that an entire string.

http://wiki.xbmc.org/index.php?title=WebServerHTTP-API

Reply
#6
Doesn't work with the event server, there's a bug.

http://trac.xbmc.org/ticket/10817
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#7
Thanks everyone, I got it with the hex(0xf100+ord(letter)) method.

Cheers

Thomas
Reply
#8
PLEASE
keep developing this project, it's EXACTLY what I'm looking for.
We can type fast on the smartphone but it's a PITA to select letters from the xbmc screen.

thanks
Reply
#9
Thumbs Up 
You're welcome Smile
And yeah I plan on adding new features every now and then, ideas (or programming help) are appreciated.
Reply
#10
Ooooh, that'd be excellent if we could use this to send shortcut keys via android's keypad when we're on the remote.
i3-2100 /w Scythe Big Shuriken Cooler, 4GB RAM, GT430 Passive, 40GB SSD boot drive, 2TB 5400RPM internal media drive, 2TB external drive, Nexus 430W PSU, Nexus case fans

Feeding Yamaha RX-V1800, Panasonic 42PZ80 Plasma, Mission 753/Quad speaker surround kit
Reply
#11
Which shortcut keys? What functionality do they have? Combos/special characters like "Alt-F1" or so will not be possible with the technique that I used (nad's suggestion), but maybe some other way.

By the way, my program is for nokia (Symbian OS) phones, not for android, to prevent misunderstandings.
Reply

Logout Mark Read Team Forum Stats Members Help
send text through the http api/via remote0