[App] libAlert B/C/D/E/F/H

Here are software that related with Samsung F series TVs.
Post Reply

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

[App] libAlert B/C/D/E/F/H

Post by zoelechat » Sun May 10, 2015 8:17 pm

Lib displays user-defined text popups or message box on TV. Also has a feature to make screen blink on injection.

TEXT:
TEXT.jpg
MSGBOX:
MSGBOX.jpg
SYSTEM: (experimental, might crash some TVs, especially H, ugly anyway)
SYSTEM.jpg
CENTER:
CENTER.jpg
Usage:
*For D series (arm), replace every instance of /mnt below by /mtd_rwcommon/widgets/user/SamyGO/SamyGO
*For C series (arm), replace every instance of /mnt below by /SamyGO on your rooting USB device
*For B series, latest samyGOso is there.
  • Get latest samyGOso from there and copy/overwrite samyGOso file (not folder) to /mnt/opt/privateer/usr/bin
  • Set permissions if needed (usually not if overwritten)

    Code: Select all

    chmod +x /mnt/opt/privateer/usr/bin/samyGOso
  • Extract attached archive and copy libAlert.so to /mnt/opt/privateer/usr/libso (create folder if needed).
  • Execute

    Code: Select all

    samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libAlert.so [arg1...arg3]
    Injecting without args makes...nothing! Usable args are:
    • TEXT:"Your text" - Display popup with your text.
    • MSGBOX:"Your text" - Display message box with your text.
    • SYSTEM:"Your text" - Display 'system-like' popup with your text.
    • CENTER:"Your text" - Display small center popup with your text.
      Only one of the 4 options above can be used at once.
    • BLINKS:n - Make screen blink n times.
    • DELAY:ms - Specify duration of/between blinks in milliseconds. If unspecified, default is 50ms.
    Logfile is written to /dtv/Alert.log
Sample usages:

Code: Select all

samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libAlert.so TEXT:"Welcome to SamyGO!"

Code: Select all

samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libAlert.so BLINKS:3 DELAY:200 MSGBOX:"Blah!"
Fully support international chars. However, TV Telnet doesn't support their input, that's why an intermediate script is mandatory if you want ??x?t?c? chars to be displayed correctly. Such script is provided as sample in archive (test.sh).
A startup script is there too (99_99_zzzAlert.init), also sample since it's not possible to define a default setup. Don't forget to set execute permissions if you use them (chmod +x).

*Changelog:

Code: Select all

17/5/2015
v0.2.1 - Added SYSTEM/CENTER options
10/5/2015
v0.1.6 - First public release
You do not have the required permissions to view the files attached to this post.
I do NOT reply to any question by PM. Please use forum.

racocvr
SamyGO Project Donor
Posts: 12
Joined: Sat Apr 04, 2015 2:15 pm

Re: [App] libAlert B/C/D/E/F/H

Post by racocvr » Wed May 13, 2015 10:10 am

Hey, thanks for this one!

I added

Code: Select all

/mnt/opt/privateer/usr/bin/samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libAlert.so TEXT:"SamyGO started."
at the end of run1.sh and now I know when samygo has started and telnet is available 8-)

miazza
SamyGO Project Donor
Posts: 644
Joined: Wed Apr 03, 2013 6:10 pm

Re: [App] libAlert B/C/D/E/F/H

Post by miazza » Fri May 15, 2015 8:41 am

racocvr wrote:Hey, thanks for this one!

I added

Code: Select all

/mnt/opt/privateer/usr/bin/samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libAlert.so TEXT:"SamyGO started."
at the end of run1.sh and now I know when samygo has started and telnet is available 8-)
Pay attention. You have put this line at the very beginning of your boot sequence.
Normally it is safe but in case of problems during the samyGOso injection you might end with a boot loop.
It is suggested to execute a script with usb protection patch as the one included in the init script.

By the way, I also suggest you to put one at the end of init sequence so that you know when the boot is completed.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.

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

Re: [App] libAlert B/C/D/E/F/H

Post by zoelechat » Fri May 15, 2015 9:05 am

Doesn't really matter on F/H (run1.sh) or USB root. Either SAMYGO_STOP is already there or it's just needed to unplug root USB to prevent bootloop. The advice is true and strongly recommended for E/Skype root though.
I do NOT reply to any question by PM. Please use forum.

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

Re: [App] libAlert B/C/D/E/F/H

Post by zoelechat » Sun May 17, 2015 6:56 pm

New version, added 2 new popup styles. See 1st post.
I do NOT reply to any question by PM. Please use forum.

dapper2490
SamyGO Project Donor
Posts: 5
Joined: Sun Sep 15, 2013 10:17 pm

Re: [App] libAlert B/C/D/E/F/H

Post by dapper2490 » Fri Jul 10, 2015 12:04 am

Great work, zoelechat.

This is something I have been looking for for a while now.

Does anyone know how this could be integrated with a computer notification service such as Growl or PushBullet?

Thanks again.

sectroyer
Official SamyGO Developer
Posts: 5571
Joined: Wed May 04, 2011 5:10 pm

Re: [App] libAlert B/C/D/E/F/H

Post by sectroyer » Fri Jul 10, 2015 12:26 am

dapper2490 wrote:Great work, zoelechat.

This is something I have been looking for for a while now.

Does anyone know how this could be integrated with a computer notification service such as Growl or PushBullet?

Thanks again.
telnet :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

manos78
Posts: 21
Joined: Sun Jul 26, 2015 8:38 pm

Re: [App] libAlert B/C/D/E/F/H

Post by manos78 » Sun Jul 26, 2015 8:54 pm

dapper2490 wrote:Does anyone know how this could be integrated with a computer notification service such as Growl or PushBullet?
Done! :mrgreen:

1) Install and configure my REST/HTTP server in your TV:
viewtopic.php?f=49&t=9360

2) From your "client" (remote machine) use simple HTTP calls like:
[url]http://my_tv:5500/service/message/text/Hello%20from%20remote%20machine/blink//delay/2[/url]

3) If you like to "connect" Growl or PushBullet, use an intermediate "broker" or custom "server" (I recommend one instance of NodeRED, with support for PushBullet and several other services!)

:roll:
"Add this script for external call"
libAlert.sh:
SpoilerShow

Code: Select all

#!/bin/sh
#Never go back to ANSI: ???? :D

SODIR=/mnt/opt/privateer/usr/so

$SODIR/samyGOso -A -B -l $SODIR/libAlert.so "$@"
I suggest to the main developer of libAlert to include this "libAlert.sh" script for "remote" call. 8-)

smart_lover
SamyGO Project Donor
Posts: 158
Joined: Sun May 03, 2015 6:11 am

Re: [App] libAlert B/C/D/E/F/H

Post by smart_lover » Fri Aug 07, 2015 2:49 pm

zoelechat wrote:Lib displays user-defined text popups or message box on TV. Also has a feature to make screen blink on injection.
When ever I run following command in E series TVs, A blue messagebox with my desired text will be show correctly.
But when I want to test it in my H series, I got a red messagebox instead of blue one with text trimmed to "yGO!".

Code: Select all

samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libAlert.so SYSTEM:"Welcome to SamyGO!"
And when I want to close it with return/exit TV will be restarted!!
What is my problem?!

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

Re: [App] libAlert B/C/D/E/F/H

Post by zoelechat » Fri Aug 07, 2015 3:03 pm

Probably some "bug", most likely unexpected and different offset to that specific kind of message box depending on firmware I can't guess... Solution would be not to use that ugly SYSTEM feature :)
I do NOT reply to any question by PM. Please use forum.

Post Reply

Return to “[F] Software”

Who is online

Users browsing this forum: No registered users and 3 guests