[App] libSoftPowerOff D/E/F/H

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

Connect to http://IP_OF_TV:1080/cgi-bin/test.cgi in your web browser, and check from where scripts are not started.
Yeah, Oscam starts in the background if you specify -b and it's mandatory to do so in a startup script, but I was more thinking of some additional stuff dynamically updating servers user/pass for example :)
I do NOT receive any PM. Please use forum.
User avatar
momchetoi
SamyGO Project Donor
Posts: 92
Joined: Thu Apr 23, 2015 7:36 pm
Location: in front of the TV

Re: [App] libSoftPowerOff D/E/F/H

Post by momchetoi »

Unforunately I can`t open this page http://192.168.0.50:1080/cgi-bin/test.cgi - page not found
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

Disable your endless looping oscam script, I'm sure everything will work then :)
Page not found means even 06_05_apache.init is not started, I guess your oscam is 05_something, no? ANY script after it is not started, which means startup sequence is stuck inside it.

To start something "in the background", add '&' (without quotes) at the end of command. e.g.

Code: Select all

/path/to/mydeamonD -args &
I do NOT receive any PM. Please use forum.
User avatar
momchetoi
SamyGO Project Donor
Posts: 92
Joined: Thu Apr 23, 2015 7:36 pm
Location: in front of the TV

Re: [App] libSoftPowerOff D/E/F/H

Post by momchetoi »

Yes, thank you, the problem is solved. I edited oscam startup script by adding -b argument

Code: Select all

$OSCAM_DIR/$BUILD -b -c $OSCAM_DIR -w 0
Now everything is fine.
10x
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

Re: [App] libSoftPowerOff D/E/F/H

Post by TheTroll »

Hey!

It looks like entering in soft power OFF does not shutdown the TV channels.
It means that the last channel is still being decoded by oscam in background etc ...

What is the best solution ?

What about adding a parameter : CMD_OFF:'/mnt/opt/privateer/usr/bin/cmd_off.sh'
where cmd_off.sh has:
samyGOrc -p $(pidof exeTV) 4

to switch on channel 1 that is not encrypted...
any better option ?
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

The one I use is simply to kill oscam as cmdoff, and restart it as cmdon. Beware that oscam will be killed even if you're being recording and enter soft off!! (I may add on option to lib to check this one day :) ...edit: done)

cmd_off.sh:

Code: Select all

#!/bin/sh
	kill $(/mnt/bin/pgrep oscam-)
cmd_on.sh:

Code: Select all

#!/bin/sh
	OSCAM_DIR=/mnt/opt/privateer/usr/bin/oscam
	$OSCAM_DIR/oscam-* -c $OSCAM_DIR -w 0 -b
I do NOT receive any PM. Please use forum.
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

Re: [App] libSoftPowerOff D/E/F/H

Post by TheTroll »

Not bad indeed :)
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

New version, added:
1ST POST wrote:
  • NOCMDONPVR prevents 'CMD:' scripts to be launched if PVR is active (for example if you use cmd_off script to kill oscam and don't want your current recording to end prematurely on soft-off ;) ). CMD_ON won't be launched if CMD_OFF wasn't launched due to active PVR.
I do NOT receive any PM. Please use forum.
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

Re: [App] libSoftPowerOff D/E/F/H

Post by TheTroll »

Here is what I get in logs:

X?AJB?T4??Off] Launching CMD_OFF: A/
[SoftPowerOff] Launching CMD_ON: AX?AX?A

OPTIONS is
OPTIONS="CMD_ON:'/mnt/opt/privateer/usr/bin/cmd_on.sh' CMD_OFF:'/mnt/opt/privateer/usr/bin/cmd_off.sh'"

Is it wrong ?
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

Re: [App] libSoftPowerOff D/E/F/H

Post by TheTroll »

The log also says :
[SoftPowerOff] Setting soft-ON command: '/mnt/opt/privateer/usr/bin/cmd_on.sh'
[SoftPowerOff] Setting soft-OFF command: '/mnt/opt/privateer/usr/bin/cmd_off.sh'

And the commands work in command line

Post Reply

Return to “[F] Software”