[App] libText D/E/F/H

Here are software that related with Samsung F series TVs.

astrakid
SamyGO Project Donor
Posts: 56
Joined: Mon Sep 14, 2015 3:19 pm

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

Post by astrakid » Mon Oct 26, 2015 9:07 pm

when the issue occurs i get no screen output, and it is only happening with font 0. but with simpliest options it is working fine. Unfortunately the log is removed after reboot...

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

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

Post by zoelechat » Mon Oct 26, 2015 9:18 pm

You have enough time to catch log between injection and crash, but not sure it will tell anything interesting anyway. You tried using FB arg?
I do NOT receive any PM. Please use forum.

astrakid
SamyGO Project Donor
Posts: 56
Joined: Mon Sep 14, 2015 3:19 pm

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

Post by astrakid » Mon Oct 26, 2015 9:33 pm

yes. i didn't see any difference.
what do you mean with "enough time between injection and crash"? as soon as the event, that causes a crash, is sent my connection is gone! so how shall i catch the log?

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

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

Post by zoelechat » Mon Oct 26, 2015 9:36 pm

astrakid wrote:as soon as the event, that causes a crash, is sent my connection is gone!
Not true, you have enough time to:

Code: Select all

cat /dtv/Text.log
...except maybe if you didn't disable Watchdog.
I do NOT receive any PM. Please use forum.

astrakid
SamyGO Project Donor
Posts: 56
Joined: Mon Sep 14, 2015 3:19 pm

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

Post by astrakid » Mon Oct 26, 2015 9:46 pm

Watchdog is disabled. And there is no time to display the log-content, because my ssh connection is killed immediately. So how shall I cat it? I tried to perform a "tail -f" on Alert.txt, but because the log is not appended to the file, it doesn't show anything (tested with call libAlert-injection).

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

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

Post by zoelechat » Mon Oct 26, 2015 9:47 pm

Ahh ssh...
Try Telnet :)
I do NOT receive any PM. Please use forum.

bugnotme
Posts: 2
Joined: Tue Jun 07, 2016 1:19 pm

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

Post by bugnotme » Tue Jun 07, 2016 1:24 pm

zoelechat
Thx for the lib!I've use it to show the data from Arduino DIY weather station. Works flawlessly :)
SpoilerShow
Image

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

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

Post by zoelechat » Tue Jun 07, 2016 1:57 pm

Hehe, always interesting to be aware of such original usage :)
I do NOT receive any PM. Please use forum.

User avatar
juusso
SamyGO Moderator
Posts: 9673
Joined: Sun Mar 07, 2010 6:20 pm

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

Post by juusso » Tue Jun 07, 2016 2:40 pm

bugnotme wrote:zoelechat
Thx for the lib!I've use it to show the data from Arduino DIY weather station. Works flawlessly :)
Wow, i`m very interested in details. Do you have any link? Schematics, sketch etc description? :)
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

bugnotme
Posts: 2
Joined: Tue Jun 07, 2016 1:19 pm

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

Post by bugnotme » Tue Jun 07, 2016 3:56 pm

Here is a component list: :)

Arduino
BMP280 (temperature + pressure) - indoor sensor
Si7021 (temperature + humidity) - outdoor sensor
ENC28J60 - network

There are tons of examples how to connect it together and make it work.

In my case Arduino is listening on 80 port for "GET /?now" request. Then generates a response in format like:

Code: Select all

[indoor_temp];[outdoor_temp];[humidity];[pressure];
I've wrote a simple bash script that make request to Arduino every N seconds, parses response and finally calls libText.
SpoilerShow

Code: Select all

#!/bin/sh

url="http://192.168.0.200:80/?now"

while true; do
   result=$(wget --tries=5 --timeout=5 -qO- ${url})

   temp=$(echo $result | cut -d \; -f 1 | sed -r "s/(.*\..).*/\\1/")
   press=$(echo $result | cut -d \; -f 4 | sed -r "s/(.*\..).*/\\1/")
   humi=$(echo $result | cut -d \; -f 3)

   if [ -z $(echo $temp | grep '-') ]; then
     temp=+$temp
   fi

   cmdline="samyGOso -d -A -B -l /mtd_rwcommon/libText.so TEXT:'${temp} ${humi}% \\${press}mm  ' FONT:1 CENTER:3 FB"

   eval $cmdline
   sleep 30
done
Something like that... :)

Post Reply

Return to “[F] Software”