WDTV Forum - WDTV Media Player

WDTV 1 Forum Groups => Homebrew / Custom Firmware => Topic started by: pibos on June 17, 2009, 04:08:22 PM

Title: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on June 17, 2009, 04:08:22 PM
Update 7.
Here is the link the WDTVExt.app.bin 0.7 rar archive: http://www.mediafire.com/?woyal4awqtl (http://www.mediafire.com/?woyal4awqtl)
It's a service release, fixing creashes while pressing enter on a weather day menu icon. presing enter on a day still does nothing yet.

What's on my plate for WDTVExt?
Rezmus is gving me a hand with weather detail page (10x m8) and I am working on glueing page related api to lua.
you will be able to:
Create your page and show it when pressing enter on your menu item
Create your page and show it from a button pres on the remote (any button)
Handling page events (timer, key press, button click)
Setting page paremeters (the ones declared with @@xxxxxx in the xml) dinamically in page events handlers
Use system pages(system functionality) : OK/Cancel message page, Keyboard page
Use complex page controls: datalist ...
Hooking system pages (homepage, welcome, etc) events and injecting aditional xml on the fly

As you can see, there is a lot. the implementation will be made gradually, in the order listed above.


Also, by request i've put toghether a simple plugin that has a single menu item: Reboot. :D
Simple plugin app.bin rar archive http://www.mediafire.com/?jjqnikmmfm0 (http://www.mediafire.com/?jjqnikmmfm0)
Simple plugin sources rar archive http://www.mediafire.com/?omoz1wm2w1u (http://www.mediafire.com/?omoz1wm2w1u)

tic tac, got to go.
pibos


Update 6.
Here is the link the WDTVExt.app.bin 0.6 rar archive: http://www.mediafire.com/?ujd5yhnzzzf (http://www.mediafire.com/?ujd5yhnzzzf)
Here is the link the weather.app.bin  rar archive: http://www.mediafire.com/?mz3vdaonnmx (http://www.mediafire.com/?mz3vdaonnmx)

Source file for the weather plugin can be found here http://www.mediafire.com/?jizwymtjyjt (http://www.mediafire.com/?jizwymtjyjt)

You need to copy both WDTVExt.app.bin and weather.app.bin on the stick in order to see anything

Verified compatibility: ext3-1.02.07 ext3-1.02.10
Planed compatibility: ext3-1.02.08  WDLXTV(?)


What's new? plugin system is here! powered by Lua scripting engine!
Weather plugin demonstrates it, that we can host a plugin described in a plugin.xml file (see weather.plugin.xml) and execute code at specific moments in plugin lifecycle described in a lua file (see weather.lua).

What's bad?
Weather location cannot be customized for now, is set on my home town Bucharest, Romania.
Weather plugin updates it's data at fixed intervals (10 min).
Off topic, also bad, I still don't know if WDTVExt work with WDLXTV (anyone???)
 

What's next?
plugin configuration pages (how about pushing 'Options' on the remote while having your plugin selected on the screen and showing your plugin configuration page?)
Generic pages hooking - how about being able to inject additional osd xml to any page you like ? how about taping into it's lifecycle: load, timer, keypress?


Technical details:
Weather data is fetched from accuweather at 10 min intervals and updated on screen using a custom lua function called weather_timer representing the plugin timer handler function. For any plugin, the system looks for a init and timer function called "plugin name"_init and "plugin name"_timer;
"plugin name" represents the name of the plugin you have configured in plugin.xml.
 For any of you that want to change this, you need to modify accuweather's location code in weather.lua. Weather.app.bin is packed using assemble-app-bin.sh from elm(10x, great tool) so any change on the mounted app.bin should be persisted.


Now, go find a Lua book, unpack weather.sources.rar and start coding!

pibos.





Update 5.
Here is the link the WDTVExt.app.bin 0.5 rar archive: http://www.mediafire.com/?dtwjigchmzy (http://www.mediafire.com/?dtwjigchmzy)
Testing widget_keyboard integration. Magnifyer Glass Icon will open search screen.
No functionality implemented, no events are handled yet.
Looking into LUA Language for plugin scripting purposes as it can communicate bidirectionally with WDTVExt library without the overhead of spawning one process per event (in case of shell scripts, scary posibility)

Anouncement:
WDTVExt team(me :)) wishes to add new members.
Hardcore C, ASM developers are wanted.





Update 4.
Here is the link the WDTVExt.app.bin 0.4 rar archive: http://www.mediafire.com/?zwrmyuwtrwv (http://www.mediafire.com/?zwrmyuwtrwv)
Slow progress has been made, not as much as I would like.

Progress note:
Added remote tracing facility (debug version; never to included in the released versions)
Added firmware version abstraction layer; now it suports firmware 1.02.07 & 1.02.10 (tested on ext3, I would like to here news about tests on WDLXTV, anybody?)
Degrades gracefully when used on other firmware versions, displaying a message that WDTVExt does not suport firmware x.xx.xxx.

At this moment, we can:
Show page from custom xml
Handle events on page(key, load, etc).
Handle events on buttons
Set progressbar position
Set parametters on page (@@xxxx variables defined in xml)
All above are demonstrated in Extension->About

Work on integrating with internals is under way (more page lifecyle, widget events, listbox)
Work on the plugin system is unde way (here is a link to a fictional plugin config file http://www.mediafire.com/?uyt24q3m2ej (http://www.mediafire.com/?uyt24q3m2ej))

pibos.


Update 3.
Fixed issue: Extension top icon not shown properly when focused; screenshot updated;
Here is the link the WDTVExt.app.bin 0.3 rar archive: http://www.mediafire.com/?50eoyiyiomm (http://www.mediafire.com/?50eoyiyiomm)

Update 2.
Message boxes are shown when custom items are 'clicked'

Update 1.
scrolling vertically is no longer so slow.
Re download the app.bin from the link below


Hi all,

I have created an extension to dmaosd so that icons can be added programatically to the home crossbar menu(this will be used to add functionality from the home screen). Unlimited number of icons can be added on the vertical bar(icon group) and horizontal bar.

Here is a screenshot
(http://www.mediafire.com/imgbnc.php/44ec211a892e1cc94d1e8f528b7686f22g.jpg) (http://www.mediafire.com/imageview.php?quickkey=nzejhwnqm1z&thumb=5)

More important, here is a link to the WDTVExt.app.bin that just needs to be copyied on the stick to get the above result.
http://www.mediafire.com/?glminzlytzm (http://www.mediafire.com/?glminzlytzm)
The extension is depended on the version of firmware used, I used 1.02.07-ext3-boot-0.9.2


I would apreciate if I would get feedback from ppl testing on the same(or close) version (ext3 9.x, WDLXTV4-5)

thanks all,
pibos
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: dcrutgers on June 17, 2009, 04:35:48 PM
Can't see the screenshot, can you post it again please? Thanks!
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: mr_murder on June 17, 2009, 08:32:56 PM
 :o just a proof of concept right? doesn't seem to add any functionalities yet but excellent potential though. testing on same firmware as you, up/down scroll on the crossbar is a bit sluggish, but left/right is smooth. Looking forward to watching this progress.
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: redindian on June 17, 2009, 11:54:44 PM
Wow! Works here with 1.02.07-ext3-boot-0.9.2. Excellent work! Bit slow at the moment browsing vertical like said and doesn't do anything. But can't wait for this to work properly.

Interested in how you managed to do this.
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: realtebo on June 18, 2009, 12:03:01 AM
Yes ! This is a great idea. We're waiting for progress !

We, developing app.bin, could have a 'home screen start' for our applications. Great !
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: redindian on June 18, 2009, 12:44:02 AM
Much faster now! I think it's even faster than 'normal', but probably because it breaks event-osd.
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: eliafino on June 18, 2009, 05:01:06 AM
Very good pibos!!!
And for link functions to your added icons?
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: pibos on June 18, 2009, 05:05:52 AM
Very good pibos!!!
And for link functions to your added icons?

all functionality will always be included in the last version.
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: eliafino on June 18, 2009, 05:10:17 AM
 :-*
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: redindian on June 18, 2009, 05:50:56 AM
This is getting better each time I check, and the package keeps getting smaller! :-)

Does this mean we can start any application by just clicking on an icon?
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: pibos on June 18, 2009, 06:31:14 AM
This is getting better each time I check, and the package keeps getting smaller! :-)

Does this mean we can start any application by just clicking on an icon?


We can even better.
I was considering building a plugin system so that ppl could add their custom OSD xml on main screen under menu and optionaly supply data for it using php scripts...

For example a Whether plugin, has a Main Icon and sub icons one for next three days representing forecasting for that day
when you click that icon, you will get to a page where more details are available

how does it sounds?
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: dcrutgers on June 18, 2009, 06:38:21 AM
That sounds great!
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: redindian on June 18, 2009, 06:53:19 AM
That sounds great to me! :-D

Just noticed the nice popups. Great stuff.
Title: Re: My OSD Homescreen Extension
Post by: redindian on June 19, 2009, 03:37:29 AM
Quick question:

Can you handle events on buttons too? So can you capture button clicks for XML files that contains <ctrlgrp> with <button> tags? Or does the WDTV have to be on a page that normally contains buttons?
Title: Re: My OSD Homescreen Extension
Post by: pibos on June 19, 2009, 04:57:07 AM
Quick question:

Can you handle events on buttons too? So can you capture button clicks for XML files that contains <ctrlgrp> with <button> tags? Or does the WDTV have to be on a page that normally contains buttons?

<button> click can be handled.
Title: Re: My OSD Homescreen Extension
Post by: redindian on June 19, 2009, 05:37:41 AM
So basically we can finally design any screen with buttons what we want? :D

And nice scrolling controls like on the home screen too? This is going to be very good...
Title: Re: My OSD Homescreen Extension
Post by: elmarweber on June 19, 2009, 06:31:57 AM
Hi,

very nice addition. If its possible, I'm interested in the C code of your library and/or a few hints on how you proceeded doing this?
trace the dmaosd process and then try and error for intercepting the system/library calls until you found the right ones to modify?

ciao,
elm
Title: Re: My OSD Homescreen Extension
Post by: pibos on June 19, 2009, 06:43:41 AM
Hi,

very nice addition. If its possible, I'm interested in the C code of your library and/or a few hints on how you proceeded doing this?
trace the dmaosd process and then try and error for intercepting the system/library calls until you found the right ones to modify?

ciao,
elm


Hi elm,

Source code will be available once I make a refactoring on it and transform it into a usable API, it's just a proof of concept for now.
I got to this point by reading tones of good old fasion mips assembly. done 100+ hrs of work on it.


Nice job with appletrailers.
It seems that WDTVExt breaks event-osd. it's next on my list.

PM me pls.
Title: Re: My OSD Homescreen Extension
Post by: CrashX on June 19, 2009, 01:07:30 PM
Wow .. wdtv is getting better and better ... ;D ;D

1) Will this support executing scripting on time interval .. ie have weather information updated every 5 seconds

2) Will we be able to change the entire look of wdtv ?  skinable ?
Title: Re: My OSD Homescreen Extension
Post by: pibos on June 20, 2009, 12:09:19 PM
Wow .. wdtv is getting better and better ... ;D ;D

1) Will this support executing scripting on time interval .. ie have weather information updated every 5 seconds

2) Will we be able to change the entire look of wdtv ?  skinable ?

1. Cron does it verry good, why reinvent the wheel?
2. Aren't we already able to skin  the entire look?
Title: Re: My OSD Homescreen Extension
Post by: CrashX on June 20, 2009, 01:08:53 PM
1. Cron does it verry good, why reinvent the wheel?
2. Aren't we already able to skin  the entire look?

1)  Cron will do it but it doesn't have any idea what are you currently doing or where you are ... It will keep executing no matter what ... I take it your app does so it can call a script to update the gui ..  Is your app event based ?

2) I haven't seen any full modication on the wdtv home screen yet .. so far just adding additional information ..
Title: Re: My OSD Homescreen Extension (NOT FAKE!)
Post by: cionci on June 21, 2009, 01:58:48 AM
This is getting better each time I check, and the package keeps getting smaller! :-)

Does this mean we can start any application by just clicking on an icon?


We can even better.
I was considering building a plugin system so that ppl could add their custom OSD xml on main screen under menu and optionaly supply data for it using php scripts...

For example a Whether plugin, has a Main Icon and sub icons one for next three days representing forecasting for that day
when you click that icon, you will get to a page where more details are available

how does it sounds?
Yeah, that would be great !!!
Title: Re: My OSD Homescreen Extension
Post by: ichalex on June 21, 2009, 09:15:18 AM
so could i start e.g. appletrailers right from the main menu? that would be a huge step!!
Title: Re: My OSD Homescreen Extension
Post by: realtebo on June 22, 2009, 01:07:31 AM
Ok ! You are a great man !

Can you divulgate some info for our, the developers of others app.bin.

I'd like a lot to add an icon to enter into my Weecommand application. Is it now ready for testing or is it only a proof of concept?
Title: Re: My OSD Homescreen Extension
Post by: cionci on June 22, 2009, 01:14:31 AM
I think it should be useful to add a proof of concept on how PHP can be used to generate dynamic content for WDTV or execute a shell command and display the output.
Is event-osd needed to use custom icons or to show pages linked from custom icons ?
Title: Re: My OSD Homescreen Extension
Post by: realtebo on June 22, 2009, 01:22:39 AM
Yes, please, give us some info about developing UP on your project,,,, please ...
Title: Re: My OSD Homescreen Extension
Post by: pibos on June 22, 2009, 01:28:22 AM
A plugin based system is on the way.

My guess is that this week a first version will be released.
I cannot give you a specific date because I work on this project on my free time and I'm kind of bussy now working on job related tasks.
Title: Re: My OSD Homescreen Extension
Post by: realtebo on June 22, 2009, 01:37:20 AM
The entire WDTV community will be happy to wait for your work to be released.

You had really a good idea. Like with event-osd, with your OSDExt WDTV community can build more adavanced and user-friendly apps.

thanx a lot.
Title: Re: My OSD Homescreen Extension
Post by: pibos on June 30, 2009, 02:16:12 PM
Check for update on first post.
Title: Re: My OSD Homescreen Extension
Post by: mr_murder on June 30, 2009, 04:52:00 PM
Thanks for the update pibos. I especially like the idea of the @@ variables.
I am sure the wait is going to be worth it.
Title: Re: My OSD Homescreen Extension
Post by: redindian on June 30, 2009, 10:24:00 PM
Excellent, this opens up so much possibilities. Now a clock widget doesn't seem so hard. :-)
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: pibos on July 06, 2009, 02:09:25 PM
bump! Weather plugin is up!
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: cionci on July 06, 2009, 10:08:23 PM
pibos: where I can find assemble-app-bin.sh ? I see you have tested your plugin on ext3-1.02.10, where have you found it ?

I don't know how to program in LUA, can you tell me how can I execute an external command ? Sometimes I need to reboot WDTV and so I'll focus on doing a simple reboot plugin.
I'll test your plugin on WDLXTV ;)

Thanks for your work ;)
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: eliafino on July 06, 2009, 10:28:45 PM
Very good application pibos, thank you!!!
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: cionci on July 06, 2009, 10:53:08 PM
I've tested weather plugin on WDLXTV 0.5.3.2. Custom menu works fine and weather data is collected, but if I hit Enter on any icon of the custom menu, both wdtv leds start to blink. I think it could be a kernel panic.
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: cionci on July 06, 2009, 10:57:43 PM
Maybe there's something else I should install to make plugin work ?
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: pibos on July 06, 2009, 11:10:05 PM
Maybe there's something else I should install to make plugin work ?

It shouldn't fail while pressing enter on a weather icon, it should do nothing for now.
There is no implementation for showing detail pages yet.
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: cionci on July 06, 2009, 11:19:12 PM
Ok, so it's working.
But is the hangs hitting Enter a bit strange ? Seems it's doing something when I hit enter, otherwise it couldn't hang.
Code: [Select]
<triggers>
<button name="SomeControl" handler="SomeHandler.sh"/>
<button name="SelectCountry" page="CountryList"/>
<button name="SelectCity" page="CityList"/>
<button name="Close" return="true"/>
</triggers>
Is it trying to execute SomeHandler.sh ?
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: BMD_Online on July 06, 2009, 11:21:19 PM
Hi,

not tried yet, but you've done a great job !
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: Frosty_CRO on July 06, 2009, 11:24:55 PM
Well, that ".sh" is a bit odd... Is it supposed to be there?
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: pibos on July 06, 2009, 11:35:13 PM
Well, that ".sh" is a bit odd... Is it supposed to be there?

is not executing anything, it's a bug
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: CrashX on July 07, 2009, 05:33:24 AM
Excellent Work ..

Is your source going to be opensource ?
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: pibos on July 07, 2009, 06:00:07 AM
Excellent Work ..

Is your source going to be opensource ?

I am considering the posibility. I have not made my mind on this yes.
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: pibos on July 07, 2009, 06:04:50 AM
pibos: where I can find assemble-app-bin.sh ? I see you have tested your plugin on ext3-1.02.10, where have you found it ?

look http://wdtv.elmarweber.org/index.php/2009/tutorial-how-to-create-application-images-appbin-files and here http://wdtvforum.com/main/index.php?topic=964.0


I don't know how to program in LUA, can you tell me how can I execute an external command ? Sometimes I need to reboot WDTV and so I'll focus on doing a simple reboot plugin.


I'll post a simple plugin tonight doing, among others, just that: reboot

I'll test your plugin on WDLXTV ;)
I'm looking fwd for your results

Thanks for your intereset in WDTVExt

Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: ferarias on July 07, 2009, 07:28:39 AM
Great, man! Impressive!
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: CrashX on July 07, 2009, 08:15:12 AM
Excellent Work ..

Is your source going to be opensource ?

I am considering the posibility. I have not made my mind on this yes.

I am sure if you make this opensource, we will have alot more developers working on this and possible reduce the workload on you  ;D  .. I for sure what to know how your code looks like ..
Title: Re: !!!MAJOR!!! First WDTVExt plugin is born - Weather plugin
Post by: pibos on July 07, 2009, 01:15:47 PM
bump ... update 7
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: mr_murder on July 07, 2009, 01:42:24 PM
still not compatible with event-osd? is this a planned fix... or not?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Frosty_CRO on July 07, 2009, 01:47:03 PM
Well, you've got my full support. Keep on rocking!
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: dcrutgers on July 07, 2009, 04:24:51 PM
Really Cool, great work... However, will this ever be compatible with other app.bins that other developers have released. It pretty much breaks everything else.

Thanks!
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Whoheart on July 07, 2009, 06:26:48 PM
This looks rather confusing.

Two questions:

1. Is the first post written in reverse order?

2. Does one have to flash a hacked firmware file, or does the standard firmware look for a file called "WDTVExt.app.bin" ?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: cionci on July 07, 2009, 10:57:18 PM
1. Yes, latest version is on top
2. You need WDLXTV or ext3-boot, it's written on first post
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: cionci on July 08, 2009, 01:41:24 AM
I can confirm Enter button issue is gone, but pressing Enter over green icon in reboot plugin does nothing ;)

Nice choice for main manu icon LOL :D
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Whoheart on July 08, 2009, 03:06:04 AM
2. You need WDLXTV or ext3-boot, it's written on first post

Yeah, but the first post doesn't make sense ;)

But thanks. Time to suggest something for the developers me thinks *g*
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on July 08, 2009, 03:12:07 AM
I can confirm Enter button issue is gone, but pressing Enter over green icon in reboot plugin does nothing ;)

Nice choice for main manu icon LOL :D


Simple plugin requires WDTVExt update 7, have you updated to that version?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on July 08, 2009, 03:13:49 AM
2. You need WDLXTV or ext3-boot, it's written on first post

Yeah, but the first post doesn't make sense ;)

But thanks. Time to suggest something for the developers me thinks *g*


Thanks for your input on this. Do you have a suggestion to make the first post more "reader friendly"?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: CrashX on July 08, 2009, 04:56:57 AM
How does simple_reboot_handler get called ? It doesn't exist in the xml ...
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on July 08, 2009, 05:20:46 AM
How does simple_reboot_handler get called ? It doesn't exist in the xml ...

I try using convention over configuration and not confuse the users ....

if a lua function named [plugin name]_[menu item name]_handler exists, it will be called when enter on pressed on that menu item from that plugin .
The same with  plugin initialization function - [plugin name]_init  and plugin timer function - [plugin name]_timer
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: dcrutgers on July 08, 2009, 05:56:35 AM
Reboot plugin worked for me.... I can't deal without my other app.bins but I'll continue to help you test then remove until it's fully compatible.   Great work!
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: CrashX on July 15, 2009, 09:32:20 AM
Any updates on this ?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: CrashX on July 15, 2009, 09:36:27 AM

if a lua function named [plugin name]_[menu item name]_handler exists, it will be called when enter on pressed on that menu item from that plugin .
The same with  plugin initialization function - [plugin name]_init  and plugin timer function - [plugin name]_timer

Is their any reason for plugin name ? Are you planning on multiple plugins in the same file ?

I like the other way better where you allowed xml to specific custom functions ..
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on July 15, 2009, 10:16:28 AM
Showing pages is implemented.
Also, Extending existing pages is implemented (I have extended Homepage with a date and time text that gets updated every second)

I am working now on handling events from buttons, imgbtn, etc in pages.

Work is done also on weather plugin, detail page is aleady implemented.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: hackebeil on July 21, 2009, 09:51:56 AM
Hey pibos,

your modification is an excellent demonstration of the potential hidden in the OSD. You've done a good job on that.

First I want to report a bug: I have my OSD set to German and it therefor shows some unicode letters (for instance ä). But when I use your mod these letters are not displayed (instead there are just spaces or sometimes wrong letters).

And secondly I want to ask you about your request for support. What do you mean by "hardcore c" ? and with asm, do you mean mips?

I'm doing both, but i'm not into the linux kernel thing very much (althought i'm using linux all day). I've just learned general stuff, because i'm studying CS.

So just specify what kind of skills you need ;)
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on July 22, 2009, 12:00:54 PM
Hey pibos,

your modification is an excellent demonstration of the potential hidden in the OSD. You've done a good job on that.

First I want to report a bug: I have my OSD set to German and it therefor shows some unicode letters (for instance ä). But when I use your mod these letters are not displayed (instead there are just spaces or sometimes wrong letters).

And secondly I want to ask you about your request for support. What do you mean by "hardcore c" ? and with asm, do you mean mips?

I'm doing both, but i'm not into the linux kernel thing very much (althought i'm using linux all day). I've just learned general stuff, because i'm studying CS.

So just specify what kind of skills you need ;)

hackebeil, thanks for your apreciations and bug report.
The issue with unicode has been fixed for the next release.

Regarding asm, I was refering to mips asm, cpu em8664/5 is mips based.
Regarding hardcore "C" ... imagine this, I started hacking my way in dmaosd with nothing more then IDA PRO, objdump and a LD_PRELOAD library and evolved from there. All the used dmaosd API signature and data structures signatures is manually created, by reading mips asm and creating associated function/structure signature.


Once again, thanks fror your intereset in WDTVExt, and keep an eye on this forum, I'll be releasing a version containing xml page related extensions and more in the following days.

Regards,
pibos
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: redindian on July 29, 2009, 11:47:12 PM
Just as I had hoped, more updates after my vacation! The weather plugin worked great here.

Great to see this evolving into a plugin system so fast. This has so much potential. Do you know of some good documentation for the LUA language? It looks fairly simple, but would be nice to have a good reference for functions.

Furthermore, all <menu> is added as an extra menu on the main screen? How can we get to a custom page? Maybe you could add an example in the next release. Or an example how to navigate from/to different pages using buttons. If that is at all possible at the moment.

Anyway, great work! This will open up many new possibilities.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: alx5962 on August 22, 2009, 12:51:20 AM
Hi,
just some bug feedback.
I'm using WDLXTV 0.5.3.2 with WDTVExt 0.7.
My interface is in french and I noticed a font bug since I used this plugin.
Every accented letters are replace by a space (ie Vidéos becomes Vid os).
Also the reset plugin has not effects.

Alex
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on August 22, 2009, 02:40:51 AM
Hi,
just some bug feedback.
I'm using WDLXTV 0.5.3.2 with WDTVExt 0.7.
My interface is in french and I noticed a font bug since I used this plugin.
Every accented letters are replace by a space (ie Vidéos becomes Vid os).
Also the reset plugin has not effects.

Alex

@alx5962: thank you for reporting your issued with wdtvext.
this issues are fixed for the next release - 0.8.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: lilibabe on August 22, 2009, 03:09:18 AM
@pibos : when will be released version 0.8 ? what will be the new functions ?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on August 22, 2009, 09:18:46 AM
wdtv ext 0.8 is undergoing a complete refactoring due to it's complicated nature.
this will increase it's stability and decrease by a factor of 10 it's size.

The main features planed are home menu integration in new or existing menus (e.g adding a submenu to video top menu item, or adding a new "Games" top menu with subitems)

Showing new pages from custom menu items.
Controling elements in custom pages: buttons click, progress bars progress, keyboard
Injecting xml or complete replacing it  in standard pages on the fly : before a page is shown, the plugin has the ability to inject aditional xml (home.xml for ex, you can add a text element to display time) or complete replace the xml (basic_browse_xxx.xml could benefit for this, we can generate it on the fly with movie sheets, etc)

Handling events on standard or custom pages (ex: remote control, you can enhance the functionality in basic_browse_xxx.xml responding to "options" button on an movie and presenting custom actions for it: download subtitle, etc)

I know that some of this functionality is already present in other ongoing projects like events-osd but this has the advantage of running in the same process with dmaosd and so putting less load on the cpu.


As always, if anyone has ideeas of how to improve any of above or others, please share it.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: lilibabe on August 22, 2009, 10:17:05 AM
Wow ! seems to be very cool ! unfortunately, i suppose it will be only available for WDLXTV users (?)
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on August 22, 2009, 11:23:34 AM
it was and will be available as an app.bin extension.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: lilibabe on August 22, 2009, 09:08:56 PM
No hope that this will be adapted to wdtv.bin users ?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Jackson on August 26, 2009, 04:59:09 AM
No hope that this will be adapted to wdtv.bin users ?

I can't see how most of these mods will ever be compatible with an unmodified firmware because they have to hook into the wdtv application/OS tools to work. 

Unless I'm mistaken even your mod is creating a alternate .bin where you've changed/edited/replaced some of files contained within the original .bin file.  In my thinking, even your mod is a custom firmware because it modified what came from Western Digital, even if it doesn't enable networking etc like WDLXTV.

Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: lilibabe on August 26, 2009, 05:33:29 AM
No hope that this will be adapted to wdtv.bin users ?

I can't see how most of these mods will ever be compatible with an unmodified firmware because they have to hook into the wdtv application/OS tools to work. 

Unless I'm mistaken even your mod is creating a alternate .bin where you've changed/edited/replaced some of files contained within the original .bin file.  In my thinking, even your mod is a custom firmware because it modified what came from Western Digital, even if it doesn't enable networking etc like WDLXTV.



I may be poorly expressed when speaking of unmodified firmware, i would like to say using these mods with wdtv.bin (WD or mine), that is to say not a firmware like wdlxtv or a root.bin ; it should be possible to flash a kind of official firmware and tell it to search for these apps on a USB key
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: robbie85 on August 29, 2009, 07:20:07 AM
Hi,
I have a problem with WDTVExt 0.7.
It works but when it is on my HDD WDTV can't recognise my HD for media.
Here the dmesg error:

loop7: rw=0, want=16474, limit=8048
EXT2-fs error (device loop7): ext2_get_inode: unable to read inode block - inode=1281, block=8236
attempt to access beyond end of device
loop7: rw=0, want=13316, limit=8048
EXT2-fs error (device loop7): ext2_readdir: bad page in #11
attempt to access beyond end of device
loop7: rw=0, want=13324, limit=8048
EXT2-fs error (device loop7): ext2_readdir: bad page in #15
NTFS volume version 3.1.

If i remove the WDTVExt app I haven't problem with my HDD.

Here the mount ouput:
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nodiratime)
sysfs on /sys type sysfs (rw)
/dev/mtdblock3 on / type cramfs (ro)
none on /proc type proc (rw,nodiratime)
usb on /proc/bus/usb type usbfs (rw)
sysfs on /sys type sysfs (rw)
none on /tmp type tmpfs (rw)
none on /etc/mdev.conf type tmpfs (rw)
mdev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/sda5 on /tmp/mnt/sda5 type fuse (rw,user_id=0,group_id=0,allow_other)
none on /apps type tmpfs (rw)
/dev/loop0 on /apps/LaurentG type ext2 (rw,nogrpid)
/dev/loop1 on /apps/WDTVExt type ext3 (rw,data=ordered)
/dev/loop2 on /apps/aMule-manage type cramfs (ro)
/dev/loop3 on /apps/dropbear-ssh type ext2 (rw,nogrpid)
/dev/loop4 on /apps/event-osd type ext3 (rw,data=ordered)
/dev/loop5 on /opt type ext3 (rw,data=ordered)
/dev/loop6 on /apps/pure-ftpd type cramfs (ro)
/dev/loop7 on /apps/wireless-mod-wdlxtv type ext2 (rw,nogrpid)
/dev/loop8 on /apps/wireless-mod type cramfs (ro)
none on /osd/image/welcome_background_bg.jpg type tmpfs (rw)
none on /osd/image/screen_saver.png type tmpfs (rw)
none on /usr/bin/list.watch type tmpfs (rw)
fuse on /osd type fuse (rw,nosuid,nodev,user_id=0,group_id=0)
none on /tmp/media/usb/USB1/OSD\040Settings type tmpfs (rw)

and here list of bin files on HDD:

LaurentG.app.bin
WDTVExt.app.bin
aMule-manage.app.bin
dropbear-ssh.app.bin
event-osd.app.bin
opt.bin
pure-ftpd.app.bin
wireless-mod-wdlxtv.app.bin
wireless-mod.app.bin

Thank you in advance

Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Jackson on August 31, 2009, 06:30:12 AM
No hope that this will be adapted to wdtv.bin users ?

I can't see how most of these mods will ever be compatible with an unmodified firmware because they have to hook into the wdtv application/OS tools to work.  

Unless I'm mistaken even your mod is creating a alternate .bin where you've changed/edited/replaced some of files contained within the original .bin file.  In my thinking, even your mod is a custom firmware because it modified what came from Western Digital, even if it doesn't enable networking etc like WDLXTV.



I may be poorly expressed when speaking of unmodified firmware, i would like to say using these mods with wdtv.bin (WD or mine), that is to say not a firmware like wdlxtv or a root.bin ; it should be possible to flash a kind of official firmware and tell it to search for these apps on a USB key

My point is that the ability to use .app.bin packs is not in any way built into the standard WDTV firmware or yours where you've only replaced some of the XML and image files.  There is simply no support for .app.bin in the official WD firmware.

To be able to use the .app files requires that you use a firmware that has the .app.bin support built in and today that means wdlxtv or ext boot.

I'm sure someone could strip out the exta stuff from wdlxtv or add just the .app.bin support to the WD official firmware but it would still be a 'custom' firmware because some of the official scripts/executables would have to have been replaced or modified.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: NullStmt on October 05, 2009, 06:41:26 AM
pibos, your mentioned in your post
Handling events on standard or custom pages (ex: remote control, you can enhance the functionality in basic_browse_xxx.xml responding to "options" button on an movie and presenting custom actions for it: download subtitle, etc)

I am interested in doing exactly this.  Either while playing a movie or from the browse list I would like to add some options to the options button for that specific movie.  I'm about to download your extention and the example, but if you have any helpful advice before I start I would appreciate it.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: lilibabe on October 05, 2009, 08:30:30 AM
Where are you pibos ?!? No news... bad news !

Where is the long awaited WDTVExt 0.8 ?
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: roberto1999 on February 04, 2010, 02:35:29 AM
Can somebody tell me where can I find source code of WDTVEXT 0.7? It would be nice to port it or enhance it for WDTV-Live! Thank's
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on February 04, 2010, 04:49:57 AM
try here
http://sourceforge.net/projects/wdtvosdemulator/files/ (http://sourceforge.net/projects/wdtvosdemulator/files/)


Can somebody tell me where can I find source code of WDTVEXT 0.7? It would be nice to port it or enhance it for WDTV-Live! Thank's
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on February 04, 2010, 07:41:31 AM
WDTV Ext relies hevily on PLT redirection for hooking API, redirection available because of the way dmasod was compiled (non PIC). you will not be able to port this on the live (it is compiled with PIC) without a proper method of hooking functions.

I have developed a method for API hooking and I am already working on porting this to LIVE.
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: roberto1999 on February 04, 2010, 01:03:46 PM
Thank's. It was only for a study purpose.
Today i read some of your .c files to understand how wdtvlive works.  I didn't understand the relationship between lua, xml files and binaries.
It would be nice (in my intention) obtain the last menu item visited when restart (not reboot) the wdtvlive - in example Live365.
Ciao
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: roberto1999 on February 25, 2010, 02:36:25 PM
Hi Pibos, any news about API Hooking?
I'm writing some tiny C appls for inspect the file using in Live....

Ciao Roberto
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: pibos on February 25, 2010, 02:42:28 PM
Hi Pibos, any news about API Hooking?
I'm writing some tiny C appls for inspect the file using in Live....

Ciao Roberto


I have already in place API hooking for live. What do you want to do with it? can you be more specific
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: roberto1999 on February 26, 2010, 04:55:16 AM
Not much....
-know best the very basic functionality of WDTV-Live;
-improve some useful (for me) functionality of WD
 1) wikipedia information & Lyrics information (dynamically) of movie/songs (for my kids) i.e. while pressing "i" keyboard of remote control during movie view;
 2) A voice of menu that can run a proper "script" to show something.
 3) Understand the rule of Lua language and @@variables in /osd/xml files.
 Ciao Roberto
Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Ron[NL] on February 26, 2010, 11:19:39 AM
I just tried WDTVExt 0.7 + weatherplugin
with my setup (see signature) but it gives a message in the bottom of the screen saying : WDTVext does not support my firmware version .

Too bad, because I really like what you are doing here Pibos. Keep up the good work. I'll keep an eye on this thread.  ;)

Title: Re: !!!MAJOR!!! WDTVExt 0.7 - Simple plugin is out
Post by: Titi on February 27, 2010, 03:04:21 AM
I just tried WDTVExt 0.7 + weatherplugin
with my setup (see signature) but it gives a message in the bottom of the screen saying : WDTVext does not support my firmware version .

Too bad, because I really like what you are doing here Pibos. Keep up the good work. I'll keep an eye on this thread.  ;)

WDTVExt is only working with firmware based on 1.02.07 and 1.02.10. For other you will see the message.
I already tried to continue this project and compile the last source (0.8) but without success. WDTVExt is never starting and dmaosd too.

@Pibos: Is it possible for you to give the source of the 0.7 release (not the one on sourceforge you post abovewhich the prerelease 0.8)? I want to know what is the difference between the two and trying to understand why it is not working.
Thanks a lot in advance.