PDA

View Full Version : yWeb and LCD-EPG



PaphosAL
08-06-2008, 12:47 PM
Another line of thought targeted directly at FreddyFrog, LOL! But if any other of you geniuses can help out too, then so much the better...

LCD-EPG won't work unless yWeb is present in the dbox2 image. Now much as I like yWeb, it does involve a heavy payload on box memory- 492kb, in fact. (Just tested 'before and after')

So at present, yWeb is not on my box. Which means I can't use LCD-EPG, which I really miss. It occurs to me though, that EPG is present in all areas where you expect to see it, which is sectionsd doing it's job, I think.

Would it be possible, I wonder, to mod the LCD-EPG files so that they extract the current program Title not from yWeb, but from wherever sectionsd is holding this data? Such as the (Red > Red) Eventlist Current Program, for example...

Cheers- AL

FreddyFr0g
08-06-2008, 04:55 PM
I'm not sure how lcd-epg is working exactly but it might be because it's using yWeb for displaying the text on the lcd screen rather than accessing the EPG info (since, as you said, sectionsd can be queried about it).
As a matter of fact, I wouldn't know how to display something on the lcd screen if it wasn't for doing it via yWeb.
Maybe someone else can comment on this :) !

PaphosAL
08-06-2008, 08:29 PM
Thanks for reply, Freddy! From what I recall reading about LCD-EPG, it seems to use yWeb to extract the current program Title to display on the LCD, under the Channel Name (which is already there, even if the lcd-epg plugin isn't installed).

The main engine for lcd-epg is it's lcd_epg.sh file, which I've attached for reference. This contains many pointers to where the data is being pulled in from:



(http://localhost/control/)http://localhost/control/etc etc
(http://localhost/control/)

But where yWeb is installed, then that program also is sucking all of this epg data directly from the dbox. That's what got me thinking- Why does lcd-epg need this 'middleman'? What's the problem with doing it direct?

Or would lcd-epg then become another 500kb behemoth in the process? LOL! Cheers - AL :)

ps: Do you all still see the EDIT button on your own posts? Coz I don't...

:goodnight:

Oops! I forgot the little attachment. That's the trouble when your EDIT button has vanished...

TokinWelshman
08-06-2008, 09:09 PM
isnt localhost/control

the webserver not yweb .

try just installing just the nttp file (whatever its called aint looked at my box for some time.)

remove the yweb structure it should still be able to access /control.

i might be wrong though just thought id throw a spanner in the works

pt-1
09-06-2008, 10:36 AM
Update: LCD_Wetter0.7_Menue.rar



Find it as usual here: http://pt-1.net/TuxWeather%203.30/LCD_Wetter0.7_Menue.rar



Use via /var/etc/init.d/start_neutrino:




...
if [ -e /var/etc/.lcd_epg_auto ] ; then
sleep 30 && /var/plugins/lcd_epg.sh &
fi;

touch /tmp/.lcdwetter
/var/plugins/tuxwet/lcdwetter &

KEEP_ALIVE=1
while expr $KEEP_ALIVE != 0 > /dev/null
do
neutrino -u -f
KEEP_ALIVE=$?
done

pzapit -kill
...





and var/tuxbox/config/standby.on




...
aviaext --iec-off

touch /tmp/.lcdwetter
/var/plugins/tuxwet/lcdwetter &

if [ -e /var/etc/.stb_off_camd ]; then
/var/plugins/operations camd_stop &
...



and standby.off




...
aviaext --iec-on

rm -f /tmp/.lcdwetter

if [ -e /proc/clock ]; then
START="sectionsd -tc"
...

PaphosAL
09-06-2008, 07:39 PM
isnt localhost/control

the webserver not yweb .

try just installing just the nttp file (whatever its called aint looked at my box for some time.)

remove the yweb structure it should still be able to access /control.

i might be wrong though just thought id throw a spanner in the works

Do you mean nhttpd @ 429kb in /bin m8? That's the one for yWeb. I know, coz I was inside it with HexEditor to strip out the final bits of German (just to annoy pt-1, LOL!)

Just to confirm- my testbox with no trace of nhttpd / yWeb on it still accesses the web very nicely thankyou- via TuxWeather, for webcam photos etc.

So the question remains- where does yWeb suck it's EPG data from- and could LCD-EPG pull the required Program Title from that same source, rather than using yWeb as a middleman?

Cheers- AL

ps- Thanks for merging my post, m8- but I really wish I could have my EDIT button back...

FreddyFr0g
10-06-2008, 08:17 AM
Sorry not to be very familiar with lcd-epg (my LCD is out so I don't use it!) but is it just a shell script?
yWeb gets the EPG info from sectionsd, you can see that when you run sectionsd in debug mode, every time you call the page that displays the epg info, you can see logs created and function calls to sectionsd.
I think the page that displays the epg are obviously compiled with the right libraries to interact directly with sectionsd (like sectionsdcontrol that enables you to dump/load/pause/un-pause/restart epg data).
If one would try to get the EPG data from sectionsd, I would suggest to have a look at how sectionsdcontrol works and then take it from there... unfortunately, I have no ideas in how to do it with a shell script

PaphosAL
11-06-2008, 06:01 PM
Thanks to TW, I'm now seeing LCD-EPG without yWeb present in the image! Yes, it's /bin/nhttpd that is needed, and no- yWeb isn't a must- like I previously thought. Both yWeb and LCD-EPG grab their data from wherever (sectionsd in the case of lcd-epg, as confirmed by Freddy), using nhttpd as the go-between.

So I was wrong in thinking that lcd-epg used yWeb for it's Program Title info. Great fun, testing- LOL! Now to try and tame pt-1's latest LCD-Wetter updates, to see if it will co-habit with lcd-epg...

Cheers, Guys! AL

Speedy2206
15-06-2008, 06:23 PM
@AL,
/bin/nhttpd IS yWeb? I don't understand what you mean or how you got that to work???

The DBOX itself does not have any built-in http daemon (web server) other than yWeb. The yWeb source code compiles /bin/nhttpd, which displays HTML files from /share/tuxbox/y-web (or wherever the directory is in your image).

PaphosAL
16-06-2008, 10:20 AM
Hiya Speedy! What I did, was to follow TokinWelshman's hint in post #4 above. So I have nhttpd @ 429kb (it actually uses about 160kb in memory) in the /bin folder. I have pruned the /httpd-y folder in /share/tuxbox/neutrino/ out of the image completely. And LCD-EPG works fine, m8- honest!

As I understand it, nhttpd means Neutrino HTTPD. Looking at older pre-yWeb images, it used to weigh in at 129kb, so I guess yJogol has since 'added' to the original source file to include his stuff. Certainly, I found words like Sperren and Anzeigen in there, which are used in yWeb Bouquet Editor.

But TW is correct- the /httpd-y folder isn't a pre-requisite for LCD-EPG to function, but the nhttpd file is!

Now hurry hurry up and get the third re-incarnation of CF up and running again, please! Cheers- AL