[App] libText 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.

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

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

Post by astrakid »

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: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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: 84
Joined: Mon Sep 14, 2015 3:19 pm

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

Post by astrakid »

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: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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: 84
Joined: Mon Sep 14, 2015 3:19 pm

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

Post by astrakid »

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: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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 »

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: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

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: 10129
Joined: Sun Mar 07, 2010 6:20 pm

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

Post by juusso »

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,UE65Q8C
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. rooting K 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 »

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”