[APP] Samsung Infrared Plugin for Tasker/Locale - Android Software Development

Hello guys,
I've coded an infrared plugin for my personal use and am sharing it here. It adds Tasker/Locale the ability to send custom infrared commands (Hex Pronto Codes). Just install the apk and check the Infrared plugin under Actions menu.
You can find several Pronto codes on www.remotecentral.com
or you can buy a $10 media center IR receiver for your PC and find the codes for your existing remotes with the Eventghost plugin.
You should enter the code for a single command (e.g. Power off code for a TV) in groups of 4 followed by a space, here is an example: (no space after the last number)
0000 0067 0000 0030 0063 0018 0032 0018 0018 0018 0032 0018 0018 0018 0032 0018 0018
If you would like to send 2 or more commands in succession just add another Infrared plugin action and add the 2nd code.
It works with my S4 and it should (hopefully) also work with other Samsung phones/tablets with infrared blasters.
Doesn't work for Android 4.3+
Please hit the thanks button if you find this useful.

*reserved*

Wait, so if I all I want to do is turn off my projector using a Tasker activity, then I don't need any of the fancy remote control apps on Play Store?
All I need to do is find the hex code for my projector and then use your apk?
SWEEET!
You made my day. :good:

ozkaya said:
Hello guys,
I've coded a simple infrared plugin for my personal use and am sharing it here. It adds Tasker/Locale the ability to send custom infrared commands (Hex Pronto Codes). Just install the apk and check the Infrared plugin under Actions menu.
You can find several Pronto codes on www.remotecentral.com
or you can buy a $10 media center IR receiver for your PC and find the codes for your existing remotes with the Eventghost plugin.
You should enter the code for a single command (e.g. Power off code for a TV) in groups of 4 followed by a space, here is an example: (no space after the last number)
0000 0067 0000 0030 0063 0018 0032 0018 0018 0018 0032 0018 0018 0018 0032 0018 0018
If you would like to send 2 or more commands in succession just add another Infrared plugin action and add the 2nd code.
It works with my S4 and it should (hopefully) also work with other Samsung phones/tablets with infrared blasters.
Please hit the thanks button if you find this useful.
Click to expand...
Click to collapse
Absolutely awesome my friend. I posted a question in the At&t forum about a remote that I can voice control. I searched all the apps and nothing. Well, when you combo this with Utter! it is freaking great. I just programmed a task to hit 5-7-0 and when I say ESPN...Magic! Would you mind if I post a link in the At&t forum? I think more people will find this really cool. Great Job!!!!

Bubba Fett said:
Absolutely awesome my friend. I posted a question in the At&t forum about a remote that I can voice control. I searched all the apps and nothing. Well, when you combo this with Utter! it is freaking great. I just programmed a task to hit 5-7-0 and when I say ESPN...Magic! Would you mind if I post a link in the At&t forum? I think more people will find this really cool. Great Job!!!!
Click to expand...
Click to collapse
Sure, please post a link to this page, so that I can track downloads and answer questions. Thanks for the kind words.

This is the best thing ever. You should put it up on Google Play.

Will this work for the HTC one I've downloaded it but can't seem to make it work
Sent from my HTC One using xda app-developers app

I cannot match codes to my TV Panasonic TX 46GT30 - would You help?

This is a really good idea, I was thinking of it last night and today I googled "ir tasker" and found your plugin, excellent!
How ever I can't get it to work properly, my problem is that the IR-codes doesn't work, but they do work in Eventghost, but when I copy them to the plugin and try to send they do not work properly, Eventghost picks them up, but my devices doesn't, tv, reciever etc.
Do you guys have any ideas?
/ Samme

Thanks for this. Now all I need to do is find the magnavox power off code.
_____________________________
EDIT:
So, I found the code and it seems to be working. Thanks man. I've been looking for this for a while.

Thank you for the app, it works great!
Just a heads-up for people who use a cheap IR sensor (TSOP4838) on the Raspberry Pi with lirc_rpi: the sensor is so sensitive that it gets confused by the IR noise that is emitted from the proximity/gesture sensor on the S4. If I cover the hole right of the speaker, the cheap RPi sensor has no trouble to receive the codes from this app (there's a pronto2lirc script that can convert Pronto codes to a lircd.conf file), but if I don't cover that "hole", the cheap RPi sensor apparently can't distinguish the noise from the signal. I wrote about it here.

Thank you for sharing your IR plugin. I'm a Tasker noob but was able to stumble through and get my DVR to turn on/off. :thumbup:
Also, thanks for sharing about the IR receiver. I have one hiding in the garage. This will be very handy!
--OctOS Powered VZW GS4 Dev Edition

Thanks so much for the plugin. The problem I have right now is figuring out how to convert a winlirc config file to pronto hex. It is rather easy to go from pronto to lirc, but not the other way around. Anyone have any ideas of what to do?
P.S. Most of the devices I use aren't popular enough to have pronto codes listed on the internet.

great plugin. can't believe that i found an ir plugin. is it possible to send a code stored in a variable?

steven.smith said:
The problem I have right now is figuring out how to convert a winlirc config file to pronto hex. It is rather easy to go from pronto to lirc, but not the other way around. Anyone have any ideas of what to do?
Click to expand...
Click to collapse
It's a bit late, and I didn't try these programs myself, but have a look here.

Can someone tell me how to send an intent via tasker to the plugin to use a variable to send a code?
Action could be: com.twofortyfouram.locale.intent.action.FIRE_SETTING

Anyone have a clue why it keeps force closing on my S4 on 4.4? or anyone else even for that matter?
WatchOn app still works...

i get a force closing when something is wrong with the hex code. For example there is a space at the end.
Gesendet von meinem SM-N9005 mit Tapatalk

He did mention that it doesn't work on 4.3+, and as proof it stopped working for me today when I upgraded my Note 8 to 4.4. Was awesome up to that point. Fingers crossed for an update.

Any word on if this is ever going to get updated to work in 4.4? I love this Plugin.

Related

[APP] Logger-PPC...

Hi.
As my first app I created a small app to track my workhours in a logfile.
It's also tracks whatewer you want (custom tasks) and can insert notes.
Developed it for my own usage so I don't do to much overtime at work. Now I can see the total hours spent at work this week every friday etc...
Mor info here: http://www.blafotproduktion.net/page.php?24
It's freeware. If anyone have some feedback please feel free to e-mail me...
Feel free to use it.
/M
Great man. Nice app - gonna try that at work..
Should you do anything real fancy you could consider to make an add on module for CMP. (commmgrpro)
By using CMP´s way of knowing your position from cell id it could be rather cool to let your app start recording when the cell towers of your work are seen by CMP. (and closed when leaving work)
I would like to make this an add on to my work profile.
Are you cool
Thank U for your feedback.
That's an intresting idea.
I don't know how CMP is working and I dont know if theres any information about how to use it in Delphi...
I will put it on my 'list of things to do...'.
I have put it in my work-profile and when I switch to Work it auto-starts.
Maybe some profileswitch that uses CMP can send parameters to software if I don't find any solution?...
For me the CMP would not be working as I live close to my work and passes work when I go to the supermarket.
If I find a solution I will add it to the app.
Hope you find it usefull even without the CMP-function...
Regards /M
Have already asked in the CMP thread if someone can put a "wire" from CMP to your app.
It is possible to call other programs and parameters from CMP.
http://forum.xda-developers.com/showthread.php?p=3762185#post3762185
Hi.
Ok.
I don't use CMP so lets go the easy way with parameters.
Now Logger-PPC takes 2 param. 'START' & 'END'.
I will put some params for chosing the task, notes and reset conuter etc....
Next step is to make it work with the calendar (may be not Outlook but an integrated cal for some statistics, lets see what happens....).
Tell me what U need to get it working using params and what functions U would like to controll.
Then It would work from G-profile also.... and other software... Great!
/M
My skills are very limited but if you have params i guess its possible to call your app from CMP, and vice versa as Daniel Herrero (CMP dev) will make a list of options.
Hi.
Have a new version (1.2) for on my device that takes a lot of parameters.
Will test it before I put it on my website.
-Did some buggfixes to...
-Removed baqckpicture and it loads from jpg-file if u want it.... Otherw. Black back....
It takes the following params:
-START (starts default task and exit). Can take param #2 and use it as task.
-END (ends default task and exit). Can take param #2 and use it as task.
-NOTE and Note-text (will input notes with param #2 as text into log and exit)
Is there other functions U would like to controll from params?
/M
Lets try that first
Theres more to do... befor I release it.
- Bigger buttons for start, end thats easy to press using fingers.
- Log-folder with one logfile for each weeknumber.
- A separate Wievlog-window....
And... some small adjustments in the layout....
Next week... Out for download.
BTW - this should be in Dev Forum - right?
You can have it moved if you ask a moderator.

[Q] [IDEA] Android phones as PC/Mac's Application Helper.....(sort of..) for $20?

Hello Everyone,
I'm a graphic designer.. and I (for some reason ) am so sure this is possible on an Android phone... but the question is.. is it worth their time? i hope my $20 dollars and other possible donators... can help answer that question!!
Here's The Concept: (sorry for the long essay)
I would like to use my android's touch screen to be my little helper when i'm on my graphic programs... either photoshop/illustrator.. even my html programs.. i would like a dedicated screen with Tools and Options that i usually use...
This could be done in many ways.... one would require a "server" application and displays the shortcuts according to the App in focus...
or...
You can make android as the HID thing (Sorry!! Thats as technical as i can get..)....so it sends "macros" to photoshop ... but this doesn't really require a server cuz HID thing shud be multi platform?? if i'm not mistaken...so instead of detecting.. there would be applications we choose which will show the appropriate buttons....
Here's one example: Photoshop
While one Photoshop, I would like Cuboid Buttons for Basic Tools(Marquee, Paint Brush, Eraser, Move tool..... ) on an array of screens and with fixed items like the "Undo" or "Layers" "Characters"... which will bring up the proper dialogue...
I'm willing to donate 20$ to the person who can do this ... i hope others can feel my frustration and want to help too... so we can get this going...
Plus.. there is a "Clingo" accessory for phones that can attach any device to any monitor!!! from the looks of it... it could very well work with my idea!!
Thank you for taking your time reading my big essay!!! (sorry)
I may not be a developer for android, but I know that if anyone does it, it'll cost them more than $20 of their time...
I think you should learn the key shortcuts or buy a keyboard with extended keys that you can program.
@DKuntz2 i know it will be more than 20 dollars... thats why i started my donation at 20 ... whoever is feeling like donating to this cause... can hopefully make it worth for the developer....
@jobarjo Yeah, I already know the keyboard shortcuts ... but theres alotta features on the photoshop that are not possible through a simple keyboard shortcut... and besides.. i only used Photoshop as an example, this can be implemented with Word Processors... Web Browsers.... Full screen Media player with controls on the side... I don't know theres alotta potential...
i just hope people find this 'donation' worthy as i do.... a guy can hope right?
It sounds like what you really need is the Optimus Maximus keyboard; http://www.artlebedev.com/everything/optimus/
Thanx.
but I am already familiar with the optimus..and that it can change the whole keyboard to pictures...anyways i just thought the guys would want this on their android phone.. rather than wasting $2400 US on that.!!!
I hope ill be able to make this on Google's App Inventor...
Peace.
solidkundi said:
I hope ill be able to make this on Google's App Inventor...
Click to expand...
Click to collapse
You can't.
You need a "server" application on the computer which you can make or interact with a GAI app.
You also may need to interact with Photoshop in a way because its not just sending keyboard shortcuts because some tools don't have that.
I am unsure if you need to make a photoshop plugin for that or you can call some functions in the photoshop.exe.(I don't even know how my 3DConnexion SpaceNavigator calls the functions and such in Photoshop)
Google apps doesn't allow this functionality and I am unsure if it ever will(and even if it will it won't be soon)
well that sucks doesn't it...
thanks for that.. i hope i'll be able to make something out of google inventor ... i have soo much ideas... but they're all either novelty or something very specific to me...
This would be really useful, but hard, the way I see it you could do it using HID:
An android App that communicates as a slave device to a desktop machine.
Could use bluetooth and pretend to be HID but you'd have to write the HID layer from scratch in java as Android only does HID as the master (and even then only in CM6)
This would send keypress events which may be enough for some apps, but generally you'd need to map those events to some other combination of actions, under windows a combination of http://www.autohotkey.net/ and http://www.autohotkey.net/~Micha/HIDsupport/Autohotkey.html may do the job.
Implementing HID under Android would be the had part (for me). The rest would need to be configured per-feature-per-app
I do know there are several keyboard applications availble so keyboard shortcuts and keypresses aren't really the problem.
I am just unsure how you would link into photoshop tools without key combos.
You can get for iphone, good idea saves a lot of time
If someone is skilled enough to edit this to something with a Tools gui or allowing to asign a picture and hotkey to a button on the screen and pass on the hotkey to the server..
http://code.google.com/p/remotedroid/
And maybe remove the mouse functionality or put it in a tab.
I think ... we can make an "Action" file.. for most of the commands... and then send the respective keystroke .... that could work also..... and like u said have tabs
but i wudn't need mouse in there...

Mapping/Linking Hardware bottons to android device via USB port

I'm an engineering student, and im working on a graduation project, and i just had an idea and need to ask this question.
Lets say we have 3 bottons, (X,Y,Z) 4 others UP,DOWN,LEFT,RIGHT, ANALOG(All directions)
If i press X, is it possible to associate it to specific area on the screen?
Is it possible to move a specific character in any game up/down/left and right using a hardware device?
Also moving the camera in all directions using the analog stick?
If i sent a signal from the device lets say X, will it communicate with the game it self or the device? Is it possible to make it communicate with the device a if i pressed X it press a specific are on the screen?
Sorry for the long post but i just had the thoughts and i want to know the possibilities of it.
Internal or external devices generate scan codes.
These are converted in /system/usr/keylayout/identifier.kl to keycodes.
Different devices (as long as they have different USB VID/PIDs) can have different maps.
Ultimately, you are dealing with keycodes.
The app would have to know that F1-6 deal with goblins on the left side of the screen
and that F7-12 deal with unicorns on the right side of the screen.
A short answer: The app would have to be aware.
So the hardware must speak to the app files im dealing with, would an emulator solve the problem?
Sent from my GT-I9100 using Tapatalk 2
It's not a question of hardware vs. emulator.
You can have anything send any keycode that you want.
Code:
adb shell input keyevent 4
Will send a "Back" key.
Something has to interpret that.
Applications are written with a fixed understanding of keycodes.
Ok, if you want you can hack something to turn keycodes into touch events.
So "F1" would generate a touch down then up at the coordinates of 234, 132.
You'd need to do some low-level hacking or else hack the application.
If you were going to hack the application, it would be just easier to modify it so "F1" does what you want already.
I appreciate ur awesome reply sir you saved alot of time, ill get a developer to do that time to move fpr the next step, thanks again!
Sent from my GT-I9100 using Tapatalk 2

[Q] Sixaxis can't be the only one..

So, short story shorter, I bought the Red Samurai bluetooth controller from gamestop today, and it's alright enough, but I was wondering if there were any apps out there like the Siaxis app that lets you map the buttons to actual areas of the screen - but for what I have. I can't imagine that this type of program only exists for one controller. I've just spent the last 3 hours trying other apps such as the BluezIME, and trying to search on here, but I feel like I'm at a dead end. Any suggestions?
Thanks.
You could manually edit key layout file for it
http://source.android.com/tech/input/key-layout-files.html
You would need to find out vendor and product numbers, if the file wasn't created by default, so you can make one. Otherwise it just uses generic file.
That's all I got, there's some testing ahead of you, I've never heard of your controller before.
Maybe you can just use the existing PS3 or X360 files and rename them to fit you controller.
Try it, and by all means, post the results for others to use
Alrighty, thanks! I'm looking forward to tinkering. The Red Samurai is like, gamestop's exclusive bluetooth controller. I'm surprised I couldn't find more on it.

[Q] IR Sensor Plugin Question

Through some digging I found the solution I was looking for: a tasker plugin able to send IR codes.
And it works. Awesome! Thanks again ozkaya.
Unfortunately I've tried to post on the dev board but it won't allow me because I am too new. I have also attempted to message ozkaya with this question but the messages don't appear to be sending (could be because I didn't click save sent).
Simple question is this:
In the plugin provided on http://forum.xda-developers.com/showthread.php?t=2438052 is there a way of using a local %var instead of a string/hex/pronto code.
I ask because I have written a Javascript that puts together an array of keypresses and sends them back.
Once the script does its thing and I'm back in Tasker to split the response and use the local variable. The plugin then crashes because I'm assuming it is looking for a string and not %hex.
Thoughts on how to make the plugin believe it has the proper value?

Categories

Resources