maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [OS2008] Irreco - Ir Remote Controller (https://talk.maemo.org/showthread.php?t=15919)

harriva 2009-01-16 08:02

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by murphy (Post 258012)
Is it possible to use irreco with a IR led connected to the audio jack ?
It seems possible with any audio player, why not the n8x0 :
http://features.engadget.com/2004/07...emote-control/

Maybe if one would use commandline backend and some commandline audio player.

harriva

Ghostface 2009-01-21 15:37

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by ludwig.xiv (Post 247934)
SENDING UDP Packages

Hi,
first thank you for this great piece of Software.

I have a Light Controller for Home Automation. This is controlled by HTML commands or UDP Commandes.

HTML does not work because of the command's syntax "http://192.168.1.130/r?text=1&s=9&t=1". When I open the link via Irreco's Command Line Interface the Maemo Browser deletes the "&" and the command does not work.

Can Irreco send UDP Codes instead? I would appreciate if someone adds that feature.

Regards

Ludwig

Theres a workaround which I use for triggering http actions from irreco.

Install curl if you haven't yet.
Create a new file in /usr/bin/ called something like control.sh or whatever fits your bill.
Make it executeable by chmod +X control.sh
Put something like this in it:

Code:

#! /bin/sh

curl "http://192.168.1.130/r?text=1&s=9&t=1"

That's it, then just add a new commandline interface and add a call for control.sh

Note: you can also use $1 in the url of the shellscript which will then be replaced by the first parameter you pass to control.sh (same goes for $2 for the second etc..)

For example, curl "http://192.168.1.130/r?text=1&s=9&t=$1" would result in curl "http://192.168.1.130/r?text=1&s=9&t=ON" if you execute the file like this:

control.sh ON

FrankWalzer 2009-01-21 21:57

Re: Irreco - Ir Remote Controller
 
I also own some devices that have web interfaces for control. Now I first tried browser calls too. But that turned out to be real slow especially if the browser was not started yet.
But now I am using wget. This command can use the same http syntax.

If there is an & in the command I need to quote this too. Otherwise the linux command line will use it as the background command.

wget -q 'http:/ip/admin.cgi/some_command?test=1&b=2' &

runs wget in background without any output. The Irreco test feature is great to see if it worked - remove -q during test.

harriva 2009-01-22 12:01

Re: Irreco - Ir Remote Controller
 
There's also a new browser backend for Irreco in extras-devel.

It uses built in browser and wget.

I'm not sure how the wget functionality works, so go figure.
:D


Irreco 0.7.0 should reach extras repository in about two hours from now.
More of that later.


harriva


Update on 03:37 PM

Seems that bughunting delays release to tomorrow.

eXeonical 2009-01-22 20:49

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by harriva (Post 259257)
There's also a new browser backend for Irreco in extras-devel.

It uses built in browser and wget.

I'm not sure how the wget functionality works, so go figure.

Yeah, i wrote the new browser backend just before Christmas. In the new backend you can choose whether to open URL in the browser or using wget.

It will run wget with command like this:

Code:

wget --non-verbose --output-document /dev/null -- URL_HERE
It checks the return codes and throws errors accordingly.

I was hoping that the new Irreco release would come a bit sooner, so i did not bother to release browser backend it on its own. But well, it seemed to take longer than i thought.

I think that the reason command-line backend does not work properly with some URL's is because some letters like & have special meanings on Unix shell command line, and this breaks the links when the shell executes the commands.

Web browser backend on the other hand spawns wget or browser directly, so the links should not get mangled.

Ghostface 2009-01-24 12:59

Re: Irreco - Ir Remote Controller
 
Sadly I haven't had time to look into the sourcecode yet.
However I think irreco is still lacking 2 very important features:

- Ability to use lircs SEND_START on pressing a button and SEND_STOP on releasing a button (Like somebody else said before, volume control is otherwise very very tedious).

- When the display turns off, and I press on the display to activate it again, I sometimes accidentally hit one of the irreco buttons thus triggering for example my TV or whatever.
I think there are applications which workaround this problem.

Otherwise great job on the app, I use it all the time :)

harriva 2009-01-26 13:30

Re: Irreco - Ir Remote Controller
 
Irreco is currently in pre 0.7.0 state and the bug found out last Friday has been corrected, yet somewhy irreco crashes every now and then.
We are still hunting bugs and time is running out. Tomorrow we won't work, so maybe we'll party (release) Wednesday.


Quote:

Originally Posted by Ghostface (Post 259655)
Sadly I haven't had time to look into the sourcecode yet.
However I think irreco is still lacking 2 very important features:

- Ability to use lircs SEND_START on pressing a button and SEND_STOP on releasing a button (Like somebody else said before, volume control is otherwise very very tedious).

- When the display turns off, and I press on the display to activate it again, I sometimes accidentally hit one of the irreco buttons thus triggering for example my TV or whatever.
I think there are applications which workaround this problem.

Otherwise great job on the app, I use it all the time :)

We are on the verge of starting our thesis work and these nice-to-have features are last in a long list of things we are planning.

I'll ask our boss about giving some time for things community keeps asking about.
So keep whining, we are listening.

harriva

harriva 2009-01-29 13:13

Re: Irreco - Ir Remote Controller
 
Irreco development team has just released 0.7.0 version.
It should hit the repos at any moment now.

There's a new theme editor for easy theme creation from pictures stored on device.
(New/Edit button is hidden in theme manager)

Also full remote upload/download to/from server is now supported.
Remote includes buttons, themes and commands.

Although only irtrans backend supports sending commands.



harriva

digi 2009-01-29 14:43

Re: Irreco - Ir Remote Controller
 
Is it possible to use the command line backend to run command line commands in Windows? I don't see much documentation on the command line backend. I currently have a windows HTPC in my equipment rack, and I can use the Microsoft MCE USB IR transciever to send IR commands to my equipment using Windows command line commands. So if I could send those commands from IRRECO I'd be in business!!

Ghostface 2009-01-29 17:28

Re: Irreco - Ir Remote Controller
 
Basically command line backend means when you press the button it executes a command as if you would have entered it at the shell on the n810.

So it refers to the command line on your n810, which means that in your case you would need some sort of client on the n810 who sends commands to your windows machine.

I neither use nor like windows but the very least you can do is use a workaround by installing a small webserver with php on your HTPC, run a php script there which takes some arguments and then executes the commandline client to send the IR commands.
That's basically what I do for everything I want to control and that hasn't a web or client/server interface.

eXeonical 2009-01-30 18:26

Re: Irreco - Ir Remote Controller
 
You can do this if you install SSH server on you windows machine, set up key based authentication, generate authkeys on you windows machine, copy them to N8??.

Then install ssh in N8??, start ssh-agent, add ssh keys to the agent, and add commands like this to irrecos commandline backend.

ssh -i SSH_KEY -l USERNAME IP_OF_WINDOWS COMMAND

.... So it it possible, but a bit tedious to set up. There are long howtos how to set up ssh servers and auth.

Ghostface 2009-02-01 14:51

Re: Irreco - Ir Remote Controller
 
Btw. it is currently not possible to rotate the screen of the tablet by 90° (with the xrandr stuff) and place the buttons further down (it looks like the height of 480 pixels is hardcoded).
Therefore you can't have a 90° rotated irreco layout utilitzing the full space of the screen.

harriva 2009-02-02 09:54

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by Ghostface (Post 261366)
Btw. it is currently not possible to rotate the screen of the tablet by 90° (with the xrandr stuff) and place the buttons further down (it looks like the height of 480 pixels is hardcoded).
Therefore you can't have a 90° rotated irreco layout utilitzing the full space of the screen.

#define IRRECO_SCREEN_WIDTH 800
#define IRRECO_SCREEN_HEIGHT 480

Seems pretty hardcoded for me.

harriva

x61 2009-10-20 20:24

Re: Irreco - Ir Remote Controller
 
No download for N900, only N810 is available.

joshua.maverick 2009-10-21 05:33

Re: Irreco - Ir Remote Controller
 
Need any graphics or anything made for this?

harriva 2009-10-21 10:55

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by x61 (Post 353120)
No download for N900, only N810 is available.

There is irreco-for-n900 in extras-devel repository.
http://talk.maemo.org/showthread.php?t=31399
There are no active developers so I wont push it to extras-testing.


Quote:

Originally Posted by joshua.maverick (Post 353542)
Need any graphics or anything made for this?

Meh


harriva

joshua.maverick 2009-10-21 14:27

Re: Irreco - Ir Remote Controller
 
My bad :|, well let me know if you change your mind lol.

harriva 2009-10-21 14:53

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by joshua.maverick (Post 353940)
My bad :|, well let me know if you change your mind lol.

Bart: We said "meh".
Lisa: M-E-H. Meh.

Maybe some user asks button or background graphics but until then...


harriva

attila77 2009-10-29 20:53

Re: Irreco - Ir Remote Controller
 
Apropos buttons, please STOP putting irreco buttons and graphical stuff in Mydocs/irreco. Please use a hidden directory (starting with a dot) or put it in /opt. As it is now, all buttons and themes end up in trackerd, severely hindering the usage of multimedia applications (i.e. photo viewer or anything that uses trackerd).

aboaboit 2009-11-04 14:28

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by harriva (Post 353716)
There is irreco-for-n900 in extras-devel repository.
http://talk.maemo.org/showthread.php?t=31399

Is it technically feasible to have irreco on the N900 clone an existing remote by listening for codes and matching each to a button?

attila77 2009-11-04 14:49

Re: Irreco - Ir Remote Controller
 
It can't listen, it's AFAIK just a transmitter.

archebyte 2009-11-11 00:35

Re: Irreco - Ir Remote Controller
 
I am checking out irreco-for-n900 and getting an Irreco Backend Error. Internal Lirc. Can not open socket.
can anyone help?

harriva 2009-11-11 17:24

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by archebyte (Post 371938)
I am checking out irreco-for-n900 and getting an Irreco Backend Error. Internal Lirc. Can not open socket.
can anyone help?

Long story short.
Lirc server isn't probably running.
You can try starting it being sudo and running /etc/init.d/lirc start
(^ I have no device and my memory...)

Long story long.
Lirc server is battery hog and QT team made new version of it in which daemon is run only when QTirreco is runnning. Now there seems to be new lirc version in repository that probably doesn't run continuously. Old (GTK) irreco assumes it's running and things don't work. I've waited information about this transition but no-one told me.

I put things together today and all should be well tomorrow.

EDIT 09:55 PM.
0.8.9 version in extras-devel should fix lirc issue.

EDIT 12:46 PM
New Lirc version requires restarting of device. Or so I've heard.

harriva

ruslanriad 2009-12-07 13:01

Re: Irreco - Ir Remote Controller
 
Hello every one..

I installed the latest irreco-for-n900 0.8.0

and i still get the error :mad:

"IRRECO BACKEND ERROR"
"Backend: Internal Lirc"
"instance: Internal Lirc 1"
code :1
"Message: can not open socket"

what is the problem? what shud i do?

kwotski 2009-12-07 21:27

Re: Irreco - Ir Remote Controller
 
I've got version 0.8.9 of according to the help->about Irreco screen.

I also get the "backend error" on starting Irreco.

Initially, I tried starting lircd as user:

/etc/init.d/lirc start

and I got a permission error on /var/run

as root, I did: chmod 777 /var/run

then as user, try and start lirc again: permissions error on /dev/lircd (trying to delete it, I think)

Reading this thread, I tried rebooting the N900. The permissions have changed to srw-rw-rw- on that file..

I still get the same message on starting Irreco ("backend error").

As user, "/etc/init.d/lirc start" now gives me a message about being unable to load the required kernel modules (it says to ignore this message if the modules are really not needed, but when I checked with ps | grep lirc, it had not started.)

Also, after reboot, the permissions on /var/run seem to have reverted!?

So seems to be no-go for starting lircd as user, even after a reboot.

However, starting lircd as root from the xterm, I was able to run Irreco without the Backend Error, and actually download a device definition for my JVC HR-5700 (?) vcr, and use the N900 to power it on and off!

I'm sure it will be possible to script up something to manually start up lircd without going into xterm eventually if packaging can't solve this...

... So my next problem is how to find device definitions for my dvd remote (pacifica 1002w, anyone? ;) ) and CD player neither of which seem to be in the lirc db... I'm a total novice in this and don't really know where to start, but I'll keep googling :D

tellur 2009-12-13 14:41

Re: Irreco - Ir Remote Controller
 
I'am also getting the backend error and the only solution was to start lircd as root from commandline.
I wonder if there is the possibility to read commands from my existing remote control for my tv and add those to my N900 remote control as I can with the harmony one or the one4all remote controls ?

Justus

kasmra 2009-12-17 22:54

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by tellur (Post 425671)
I wonder if there is the possibility to read commands from my existing remote control for my tv and add those to my N900 remote control as I can with the harmony one or the one4all remote controls ?

Not with N900 I'm afraid.

Maybe this can help or not: Installing LIRC for recording remote controls on a ThinkPad

Similar stuff can be done on Windows (I've heard) but who uses them anyway...

Venomrush 2009-12-18 07:25

Re: Irreco - Ir Remote Controller
 
Just noticed a irreco-for-n900 in devel

linuxkid 2009-12-19 05:14

Re: Irreco - Ir Remote Controller
 
Where is the latest install version of IRRECO for N900

bandora 2009-12-19 05:52

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by linuxkid (Post 434139)
Where is the latest install version of IRRECO for N900

extras-devel.. (Watch out before installing.. It might mess up your N900.. you have been warned.. :] )

rapante 2009-12-19 13:51

Re: Irreco - Ir Remote Controller
 
are the newest builds optified yet?

Arrancamos 2009-12-19 17:10

Re: Irreco - Ir Remote Controller
 
never tested b4, but the one I just installed today for my old Philips 14"Tv ^^ and for my cable decoder from Telefónica del Peru... and it works very good xD

I just would like feel the buttons am pressing while over my fingers on them^^ (New challenge okey!)
Rgrds.

Arrancamos 2009-12-19 17:23

Re: Irreco - Ir Remote Controller
 
maybe u could, at least, set some option when for example, if u over ur fingers on the customized padnumber of ur touch screen and if ur finger passes over number5, then, it could vibrate (brain storm okey!) Rgrds.

LuciusMare 2009-12-26 13:15

Re: Irreco - Ir Remote Controller
 
Hello, what to do if my TV is not in the database?

martie1 2009-12-26 15:52

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by LuciusMare (Post 442082)
Hello, what to do if my TV is not in the database?

yeah i want to know that too.....
i found this on the ftp of panasonic, it seems to work with all panasonic plasma televisions. i've a tx-p46G10.

http://74.125.77.132/search?q=cache:...&ct=clnk&gl=nl

how can i get this in a file that works on irreco??

thnx

martijn

onraj 2009-12-26 16:44

Re: Irreco - Ir Remote Controller
 
I have sony w4500 with RM-ED011 remote. Does enybody know a working configuration for this. At least ch+ ch- vol + vol- or how to add the remote manually.

harriva 2009-12-29 10:02

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by martie1 (Post 442162)
yeah i want to know that too.....
i found this on the ftp of panasonic, it seems to work with all panasonic plasma televisions. i've a tx-p46G10.

http://74.125.77.132/search?q=cache:...&ct=clnk&gl=nl

how can i get this in a file that works on irreco??

thnx

martijn

Those are raw codes. I can't recall why but raw codes aren't supported.
One could try converting those with lirc but I predict that that wouldn't probably work out well at all.
Tough luck.


harriva

daxx 2010-01-02 15:58

Re: Irreco - Ir Remote Controller
 
i found this made from Lirc
http://lirc.sourceforge.net/remotes/lg/MKJ40653802

this is my tv, how do it import this txt file with the commands into qtirreco? anyone ?

optimaxxx 2010-01-02 19:02

Re: Irreco - Ir Remote Controller
 
wow, i can't believe that there isn't a single guide on how to import config files for irreco..

none of my devices are supported, and i'm pretty annoyed about now!

kasmra 2010-01-04 17:00

Re: Irreco - Ir Remote Controller
 
Quote:

Originally Posted by daxx (Post 449952)
i found this made from Lirc
http://lirc.sourceforge.net/remotes/lg/MKJ40653802

this is my tv, how do it import this txt file with the commands into qtirreco? anyone ?

It's now added in the LircDB so Irreco/QtIrreco should now see it when you browse the DB.


All times are GMT. The time now is 17:23.

vBulletin® Version 3.8.8