yashsingh1/xdaforums huggingface dataset:
[One (M7) Themes and Apps] shad0w77:
thanks dude... i am hoping to eventually integrate this with tasker...

perhaps u can do some work on URI or intent commands like in Yatse...

http://yatse.leetzone.org/redmine/projects/androidwidget/wiki/Api#.UY6_1twhLQp
[One (M7) Themes and Apps] antifish:
pease try version 0.1c (dl link in OT or auto update) and let me know if sending from the "my layout" works.

will have at look at the "URI" thing to send a code out.
[One (M7) Themes and Apps] shad0w77:
no force close, but sending doesn't seem to work. tried re-learning the code too. the URI thing isn't for ure app to send out... it's ways for other apps to communicate w/ ures.

so maybe for example, to trigger the code in slot 4 of the grid, the command can be (taking inspiration from Yatse here):

com.nibdev.otrta.EXTRA_STRING_PARAMS:trigger|4
[One (M7) Themes and Apps] toxic_garden:
tried uploading some Samsung-codes with 0.1c today. The "database sync error" did not show up, but i can't find the codes even after restarting the app. Might you want to have a look at the database?
[One (M7) Themes and Apps] antifish:
thanks for the information.

What model did you entered? As there is still no samsung model in the database. Was there any error during upload?

I'll try to fake an upload on my galaxy nexus to see what happends :fingers-crossed:
[One (M7) Themes and Apps] antifish:
Can you point to a digicam or somehting to check if the code will be sent out from the ONE?

Ah yes i know, i should have written "will have at look at the "URI" thing to let you send a code out.:good:
[One (M7) Themes and Apps] antifish:
please try version 0.1d from the OT, found a bug when creating new models for already know vendors...
[One (M7) Themes and Apps] shad0w77:
yeah i see the ir signal being sent in the digi cam...

i tried re-learning again... but now every time it receives the signal from the device's remote, i get a learning timed out error....
[One (M7) Themes and Apps] hello00:
does this app let you setup your remote with the tv on?
[One (M7) Themes and Apps] toxic_garden:
Nope, still not present. I made a new tcpdump while learning, uploading and syncing. Gonna upload it now

Gesendet von meinem HTC One mit Tapatalk 2
[One (M7) Themes and Apps] djfoo000:
Does this only work on the HTC One, or does it work with other devices with an IR Blaster as well?

Keep it up on the great work BTW!
[One (M7) Themes and Apps] retnuh730:
So I just moved to Houston and forgot my Roku remote at home. Can anybody add the roku commands to the app by any chance? I'm sure there's a few people that would really appreciate beside me.
[One (M7) Themes and Apps] eisteh:
V2 contains widgets but misses the layout part for what I've noted. Might be more differences ;)
[One (M7) Themes and Apps] antifish:
I'm in holidays until mid of July, then continue implemeting it. Codes are converte for the ONE and should work (at least the ones i could test) :laugh:

The V2 preview has a better code-behind, less bugs, faster sync (should), as eisteh said: widgets, but no custom layouts atm
[One (M7) Themes and Apps] antifish:
Updated the V2 Previews.

It includes the new DB now (45k + or something new codes).

I made a very ugly new DB browser just for this new database, i actually dont know which device type is what, would be great if you can try with your devices and give some feedback if a device works (with group id 1..5, vendor, and set [the hex code])

When i'm back from holidays i'll make a better integration of theses codes for the rest of app (so you can choose it in widgets/scripts/etc)

.APK increased in size as the DB is a bit bigger.

+ some other bugfixes
[One (M7) Themes and Apps] antifish:
Btw: the brand list in the DB2 browser is fast-scroll enable (pull on the right side of the list up or down) to find the name. Would that be good in normal Database too?
[One (M7) Themes and Apps] KRiZ-R:
Fast scroll is very nice! Will test some codes tonight. Thanks!
[One (M7) Themes and Apps] payh0ta:
Can't wait to be able to use this on the Google Edition!
[One (M7) Themes and Apps] Ritz89:
I guess this kind of answers the question i was about to ask no chance that this works on PA already?
[One (M7) Themes and Apps] antifish:
yes sorry no love for AOSP atm. :(
[One (M7) Themes and Apps] antifish:
If someone of you has a Galaxy (S4, or other) IR enabled device and want to test an .APK for me, send me a PM.

Not making a thread in the S4 forum before i know it works :cowboy:
[One (M7) Themes and Apps] haririan:
Testing on s4 i9500 last update july2

Its not working

The app will close after few
[One (M7) Themes and Apps] antifish:
The apk in the OT does not contain the S4 codes. i send you an APK to test
[One (M7) Themes and Apps] antifish:
@ Someone wiht a PS3 or a XBOX

Can you try the DB2 -> 4 -> XBOX or PS3 and try the codes?
[One (M7) Themes and Apps] fatduke720:
What is db2?

Nevermind I found it. Didn't work for ps3 but the ps3 is Bluetooth anyways so what codes were you trying to use?
[One (M7) Themes and Apps] v3rtex:
Tested this new preview version for a few minutes, but it is veeery slow with sending all off codes...

It sends only 2 codes in a second.
[One (M7) Themes and Apps] antifish:
Hm okay, yeah i dont know, got this DB and dont know for what all these codes are :)

Yes i "optimized" the send all code. Now it waits the according time which the IR blaster needs to be ready again after sending one code.

If not waiting enough long, it can happen that either some codes are missed and not sending correctly, or, which is realy bad and happend for me twice during testing, "brick" your ir blaster for a short time (until you reboot a couple of times).

So as i dont want to risk that for the app user, it waits this time.

Anyway, i will include a "filter" to not send similar / equal codes twice, which sould make the all-off function faster

The beta app which i sent to some users is confirmed working on a couple of Samsung IR enabled devices (S4, Tab 8.0) so i'll implement that soon in the a new version and publish here.
[One (M7) Themes and Apps] antifish:
Updated the link for the V2 Preview

- Samsung support

- minor graphic changes
[One (M7) Themes and Apps] fatduke720:
Maybe the ps3 codes are for the ps2 ir block that some people use on there ps3

Oh by the way the Xbox one turned on my 360.
[One (M7) Themes and Apps] antifish:
Ah this is possible, i saw some IR receiver mods for the PS3 on the net.

Thanks for the response about the Xbox, good to know it works
[One (M7) Themes and Apps] wtf911:
Thank you so much for coming through with s4 support! ! I just got the new v2 and it works great. I haven't used every remote app made but of the ones I have yours kind of blows the others away...yours is very feature rich and you seem like a great dev. I'll try to get a donation to you when I can. :)
[One (M7) Themes and Apps] ZigmaDK:
Is it possible to get the IR of the HTC One to send out 455KHz IR?

I would like to be able to use my One to control my Bang & Olufsen TV, but that uses 455KHz IR frequency instead of the normal ~38KHz.

Anyone know if this is possible?
[One (M7) Themes and Apps] antifish:
Unfortunately not, the ONEs upper frequency limit is 60kHz
[One (M7) Themes and Apps] antifish:
Updated V2 Apk

Changes:

- Filter for All-Off Function (change values in settings). Prevents from sending duplicate codes on the base of your settings.

- Update check on startup, get a popup when i release a new version (enable / disable in settings)
[One (M7) Themes and Apps] -juanito-:
Favorite remotes option will be great
[One (M7) Themes and Apps] antifish:
I'm still missing a good idea how to implement good custom user layouts... somebody an idea?

The custom layouts form the old version 0..0.5c are easy to use (just a grid of buttons) but it looks like ****

and the same thing can be done using widgets with the V2 version.

I tried to create a fully custimazble layout with custom views where user can rotate, resize etc, but it looked very

ugly too, as i'm not a good designer and not too good at the android UI things.

Would you like to have a default remote layout like in the orignal Sense TV app where you could just assign your favorites?

If somebody has a good idea, or want to create a layout, let me knwo :laugh:
[One (M7) Themes and Apps] catachresistant:
I think you should open it up so you can allow people to create xmls with bitmap (or whatever) backgrounds, for each remote type. Creation would be like this: you create the remote background, then use the xml to place "buttonid=[number]" elements over it. As a fallback: Have a generic remote with standard features (numberpad, up/down/left/right, channel&volume up-down, power on/of, switch input, etc.) and allow a user to long-press each button, then configure it with a button id from the database.

I know that I, personally, would definitely contribute layouts/images for my devices as long as the process was simple enough.

Too bad I have a few led lights that are out-of-frequency for the One IR port :(
[One (M7) Themes and Apps] antifish:
Thanks, sounds like a good idea! Maybe with a windows gui for editing the remotes.

I propably start with something easier (for the user) which can be extended to the full custom xmls / images.

My idea would be:

-Load an image from your SD card as Layout (make one with photoshop, paint, use a image of your remote, what ever).

-Create "button areas" on this remote (a resizable frame, positioned on the loaded image) and assign your codes.

-Export the human-readable format for easy editing?

Do you have the codes in another format (maybe google for your model) ? There are codes which the HTC ONE can send, but cant learn, like the DSRL codes for the Canon cameras.
[One (M7) Themes and Apps] :
Works! now to have some fun.
[One (M7) Themes and Apps] Gemeng87:
What are all the devices that are supported?
[One (M7) Themes and Apps] squabbi:
It should be almost any device that has an IR Blaster.. but may only work with the One.
[One (M7) Themes and Apps] Gemeng87:
Cool, thanks for the reply
[One (M7) Themes and Apps] squabbi:
Can this be used offline?
[One (M7) Themes and Apps] antifish:
Yes, with limitations of no sync and no learning
[One (M7) Themes and Apps] Randomsanity:
Getting unsupported device on HTC One
[One (M7) Themes and Apps] antifish:
AOSP rom?
[One (M7) Themes and Apps] TheBrilliantMistake:
If you're going down that route, it might be good / useful to simply use HTML / CSS (which for the large part is XML)

At least this is a fairly well defined format, allows layout in absolute positions, or in a intelligent layout form, and the skin designers have tools already available etc.

The 'hotspot' image idea is fairly basic, and won't easily take into account changing an image/button when it's pressed etc.

If you used HTML then this would be VERY powerful...

Example...

1) Designers create their HTML layouts easily and can change button styling with CSS

2) If Javascript is enabled too, then logic can be built into the UI skin.... i.e. sliding panels, toggle buttons etc etc

you need to be able to bridge a Javascript event (like hover, or press) to an actual IR send event, but I think this would be a much better way to go than a primitive single image with hotspots.

I don't know enough about the Android SDK, but I think there's a 'webview' class somewhere that will allow you to embed web content in your app (then it's just a question of being able to handle events in the webview?)

Take a look here:

http://developer.android.com/guide/webapps/webview.html

According to this documentation you can create an interface between javascript and your Android app.... allowing the webview to 'trigger' your IR stuff.

Definitely (in theory) a nice way to go!

The way the API could work (between the webpage / javascript) and your actual engine is this:

<script>

button1.click (function() {

send_IR_command('TV.PowerOn'); // This is using a 'generic' command to say "whatever TV is defined->Power On"

})

button2.click (function() {

send_IR_command('LG32WD.Mute'); // This is using a model specific command to say "Model LG32WD->Mute"

})

</script>

Obviously this is pseudo script, the principle is that the web pages / javascript could either 'generically' ask for your TV to be powered on (whichever TV you've defined), or it could configured to specifically use a function for a highly specific device.

The alternative way is this:

<script>

button1.click (function() {

send_IR_command('button1')

})

button2.click (function() {

send_IR_command('button2'');

})

</script>

In this way, it's up to your engine to map 'button1' to some IR function (so you'll need a UI to map a button to a function).
[One (M7) Themes and Apps] antifish:
Thanks for you post!

Hmm i never thought about using a webview / html for the layout, but i think is a very good idea!

And, whats best, it will already work without any modifcations with the current version! :cowboy:

A couple of versions ago, i implement the URI send feature, where you can send a code using otrta://....

So you can already have a HTML remote, with javascript etc. Either put it online for test, or copy the .HTML to your SD CARD

and open it with Chrome browser (file://sdcard/xxxx.html), it will work.

Here is a litte example (click on the button, the red IR send indicator will glow up and code is sent out)

http://otrta.nibdev.com/uri.html

Code is very simple:

<button type="button" onclick="location.href='otrta://code?id=6'">Click Me!</button>

The code (6 in this example) is the ID which find in the codes list in the ORTA app if you open a model (touch on the item in the old version)

Anyway, i think first i will implement the simple image load / overlay function.

After that, maybe do an import for a .zip file with HTML remotes (zip because you can zip your scripts, subfolders etc all together, if you are using jquery or something).

As i'm not really a webdevloper -> if someone want to make a nice html remote exmaple, fell free to do and i will include it as an example
[One (M7) Themes and Apps] TheBrilliantMistake:
I'm going to investigate the web UI element for you... see how I fare ;)

BTW, the database is a mess (some that afflicts most of the other apps too, esp user submitted ones). I'm not sure what can be done about it, but it needs something!

By 'mess' I mean the naming conventions are mixed up, and it's not clear what power vs power[2] is for? Short and long press? normal / alternate function? etc.

Maybe (and this is literally brainstorming) a code set should be structured like this?

[Standard]

Power On = xxxxx

Power Off = xxxxx

Power Toggle = xxxxx

Volume Up = xxxx

Volume Down = xxxx

HDMI1 = xxxx

HDMI2 = xxxx

Component1 = xxxx

Mute = Unavailable

[Vendor Specific]

Panasonic Special 3D = xxxx

etc etc

This way, when users submit codes, they have a) A reminder of all the codes you'd like to capture, and b) A structure where at least all the 'standard' buttons are uniformly submitted. Otherwise you'll get Power (and you'll not know if that's power on / off or toggle), or 'Input' (does that mean the input menu? or some other code?) etc

I've discovered some codes/ functions from other remote apps that allow me to directly switch to a specific HDMI input which is not available on the standard remote! (so even a full remote control might not offer every code). But once such a code is found it can be added to that device.

For devices in general, 'generic' remotes can be tricky... I think it's best to label every device by it's product code, and if a user discovers that some codes from a different model work, they can 'copy' them to their new device and submit them to your database.... not sure how you'll protect again bad data from users though!

Anyway. I'll try and play with the URL / Web stuff.... if I can get it working easily with one button, I'll then try and create a basic demo HTML file to demonstrate 'skinning' the remote.
[One (M7) Themes and Apps] 0025:
I've made a quick HTML Code for a Samsung Remote (ES8090).

Not all Buttons are mapped, but it should do it's job for test purposes.
[One (M7) Themes and Apps] TheBrilliantMistake:
Update:

OK, got the local HTML file working for a single command ;)

Watch this space.... hopefully might have something by tomorrow!
[One (M7) Themes and Apps] antifish:
Thanks for your post!

Yes i know its a mess but i really don't know a good solution to make it more tidy at the moment.

The users are already limited to pick from a list of codes, so they cannot name the codes on their own. If you see power and power[2] it's just because somebody uploaded a second "power" code the the database for the same model.

But how i can or should i prevent users from uploading same codes for the same model, without overriding the first code? As i dont know which one is the right :) Users CAN delete their own codes, so if somebody learns a code which doesnt work and learns again -> he can delete the first one.

I can "offer" the users a default list to learn codes if he select TV, a list with codes like you wrote in your post. But i still cant prevent him to upload just one or upload wrong codes or upload the same code 10x.

What i could try too is to find and eliminate doublicate codes (just comparing frequency and framedate), but this would just decrease the database size, not the amount if devicefunction -> codedata allocations, because a code can be "repsonsible" for mutliple functions on mutiple devices.

Another idea would be to focus more on the preloaded database, collection user feedback which codeset works for which devices, and maybe let users add "user codes" to this codesets, but very limited, maybe with a rating system so other users could rate the additional codes?

I think the codes there are really good?
[One (M7) Themes and Apps] antifish:
great! :good:

Thanks for the example! :)

I uploaded it here to so everybody can direct acess it with his HTC ONE, if this okay for you?

http://otrta.nibdev.com/URemotes/UEXXES8090/Remote_UEXXES8090.html

Will try to include in a inapp-webview soon, still on holidays so not to much time for coding :)

Edit: works great on my SamsungTV
[One (M7) Themes and Apps] antifish:
Thanks! I start uploading the examples to my server so everybody can use them for Customizing their oen
[One (M7) Themes and Apps] TheBrilliantMistake:
I've attached a VERY simple HTML (with resources) file to demonstrate the basic concept.... but I wouldn't use this for demo just yet, it's purely to show 'simple' HTML code that's pretty easy to edit.

It only has a power button, channel +/- and volume +/-.

In writing this code, it's raised some issues:

1) Tactile feedback is required. If you can vibrate when you send an IR pulse that would help, but I'm worried about the latency.

2) Repeat / Holding down a button should repeat the IR pulse right? (volume is a prime example). This requires much more than a simple <a> tag.

3) I'm loathe to use jQuery, but it might be a necessary evil at the moment to keep code size down (current example doesn't use jQuery)

4) I've used the HTML5 data attribute to map a button to an IR code. Essentially a button works like this (for the moment):

<img id="power" data-IRCode="3267" src="resources/buttons/power.png" onClick="handleClick(this)">

<img id="volume_up" data-IRCode="1726" src="resources/buttons/volume_up.png" onClick="handleClick(this)">

The image has an id (not required), a data-IRCode, a src and a generic click handler.

The click handler fetches the relevant IRCode and sends it. Very simple indeed huh?

What I'll work on next (when I have a little time):

1) Key repetition

2) Image changing (whilst pressed)

3) Toggle buttons

I've come to the conclusion that at some point, a simple generic 'handleClick' isn't going to work... since some buttons will have more complex logic than just sending an IR code. In which case, I might already break out the button handler into 'handle_power button' and 'handle_volume_up_button' etc....

After all that, I'll need to work on fluid layouts, so that horizontal and landscape will work well.

Unrar the attached file, place in the root of your SD card, then browse to file:///sdcard/index.html (or wherever you choose to locate it). Please note the file:/// (THREE slashes, it's important!)

take a look inside the HTML. It's VERY easy to spot where to change the codes for each button
[One (M7) Themes and Apps] antifish:
Thanks for your work! Really appreciate that, i think we should define the functions which the html layout does, and which the app does.

1) feedback -> i'll implement a simple vibrate after code sent, should work without latency

2) key reptition: i can do that in the app, i'm currently figuring out the best way. better dont do it in HTML, as it will get delays of 100..300ms for each repition (just because the HTC API is like it is :) ).

One option would be to forward the "onMouseDown" (start sending) and "onMouseUp" events to an android->javascript interface. But that would break the functionaly of using the layout in a browser, it would only work in the app? What do you think?

Or if you could call the "otrta://..." link repetitive, maybe every 200ms or something? Then i would send as long as i received the events. This would include an 200ms "oversend" but maybe thats the best option?

3) i made some charts with jquery and flot and i worked very well, no performace issues or anything else, so i think using jquery is totaly okay.

4) image changing -> all up to you using HTML :)

5) toggle buttons: i thought about that too, but than i realized that it doesnt make any sense (at least not toggeling a remote-device function). as you never know what state the devices has at the moment, the remote is one-way only?
[One (M7) Themes and Apps] TheBrilliantMistake:
There are use cases:

1) A toggle button could always force a state the first time, then toggle... e.g. Power Toggle could first time always turn the power on, and then toggle thereafter?

2) A toggle MIGHT be used to enable 'shift' mode or even switch between multiple layouts etc... BUT, since it's HTML/JS you can't stop that happening anyway - so skinners can still do that if they really want to - it wouldn't affect the app/engine

All in all, most people will probably not be capable of any advanced skinning (or have the motivation) but they might choose a nice existing skin and just fill in the IR codes for their device. At a push, they might cope with skins that use absolute positioning and can modify the co-ordinates of each button, but for skins with intelligent layouts, it will be harder to do that. This is why I like the idea that the button definitions are as simple as possible (just fill in the IR code) and let the CSS define the layout etc.

Would you like me to adjust my code to use a 'start sending' and 'stop sending' API?... if so, just let me know the URL format and I can post it within 10 mins
[One (M7) Themes and Apps] antifish:
1) yes, but how often do you need this function? turning on first and then toggling, without closing the app and restarting (and not knowing the current state). Ortherwise you would need to save the last state.

2) something like "shift" button would absolutety make sense :)

Thanks, i'll first need to figure out what is best way to "repeat" codes, and still support the layouts in browser + still support the samsung devices. will come back to you when i now how it mus be done.

What would be good if you could reptetly call the "otrta" link every 50 / 100 or 200 ms?