Page 6 of 15

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Thu Jun 18, 2015 8:17 pm
by Christian22
Hey guys,

I've got a problem to run my script.
I want to remote control my FHEM with netcat.
If I run my script in the CLI everything works fine. If I remap my red key to the path of the script, the echo command works but the netcat won't.

Any ideas?

Here my script:

Code: Select all

#!/bin/sh
[ $(pidof ${0##*/}) ] 2>/dev/null || exit 0
echo "set WZ_Lampe_vorne toggle" >> /dtv/echo.log
sleep 1
echo "set WZ_Lampe_vorne toggle" | netcat 192.168.178.37 7072
sleep 2

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Thu Jun 18, 2015 8:27 pm
by zoelechat
What about nc command instead of netcat ?

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Thu Jun 18, 2015 9:08 pm
by Christian22
It's the same.
CLI works, remap with CMD not.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Tue Jul 07, 2015 8:14 pm
by asiersan
Hi, I have following problem.

In my F series, rcremap is working perfectly. I use it for libair to sat.

I?m trying to run it in H series non-MST and to map and Lisairtosat script, as in the oteher one.

If I remap a button, all is ok, but when i remap to airtosat cmd script, nothing happens.
The scrip is working on telnet.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Tue Jul 07, 2015 8:36 pm
by zoelechat
Look at libAirToSat thread, there's a specific script to use on H.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Tue Jul 07, 2015 8:39 pm
by asiersan
The script si running ok. The problem os sending cmd comands.

Also i tried to Run directly the command and dont Run.

I Think there os a problem with cmd?? My tv is Non mst

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Tue Jul 07, 2015 8:45 pm
by zoelechat
asiersan wrote:The script si running ok. The problem os sending cmd comands.
That's expected. On the opposite of former series, on H CMD can't be executed as root from lib, that's why it's mandatory to use some workaround present only in H specific script. You don't notice any problem through Telnet because you are root :)

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Tue Jul 07, 2015 9:00 pm
by asiersan
ok tomorrow i will try.

thaks.

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Wed Jul 08, 2015 2:27 pm
by asiersan
I tryed and the remote is remaped. The normal buton is remaped ok but the CMD dos not do nothuing.

If i run the script in the console i receive this:
/mnt # /mnt/opt/privateer/usr/bin/CMD_libAirToSat
nc: can't connect to remote host (127.0.0.1): Connection refused

Re: [App] SamyGO RCremap for C/D(arm)/E/F/H with CMD support

Posted: Wed Jul 08, 2015 3:13 pm
by zoelechat
asiersan wrote:If i run the script in the console i receive this:
/mnt # /mnt/opt/privateer/usr/bin/CMD_libAirToSat
nc: can't connect to remote host (127.0.0.1): Connection refused
Maybe port 2023 is wrong on your TV, check which ones are opened for netcat (could be 1023, 3023...) using command:

Code: Select all

netstat -l | grep 23
then try to change it in script.