0

Cannot get tutorial to work

Hi, Everyone:

I have been searching for solution for hours to get a sample widget to load in the simulator. I have browsed all the posts in this forum returned by various search.
1) I am using ubuntu 9.10
2) Konfabulator 5.4.2
3) Extracted the com.yahoo.widgets.tv.videosample to /devwidgets and renamed it to com.mycompany.widgets.tv.myapp;
4) Edit Content/widget.xml, and changed "identifiyer" to com.mycompany.widgets.tv.myapp to match with the directory name;
5) Also, change the name of the app, author, and other meta data in the widget.xml file.

But when I started the simulator, it does not show up in the dock.

Please help.

Thanks
gw

by
  • G
  • Apr 1, 2010
7 Replies
    • G
    • Apr 1, 2010
    OK. I figured it out. You need to do device reset for the corresponding device.
    It's strange nobody mentioned this, though now I remember there was a mentioning about resetting in the Get Started guide, but I have to say it is very understated.
    0
  • I'm having a similar problem - any help would be appreciated. I'm running Ubuntu 9.04. I'm still having trouble getting a basic sample to load from /devwidgets - not sure what I'm doing wrong.

    I copied one of the existing samples:

    ~/TVWidgets/Konfabulator-Latest-540/TV/Widgets/com.yahoo.widgets.tv.snippetsample.widget

    Renamed the directory in the widget file to:

    com.mycompany.widgets.tv.myapp.widget

    Modified widget.xml

    Name: MyApp Sample
    Change identifier to: com.mycompany.widgets.tv.myapp
    modified author name

    I renamed widget file to be :

    com.mycompany.widgets.tv.myapp.widget

    Copied file to:

    /devwidgets/com.mycompany.widgets.tv.myapp.widget


    Restarted Ubuntu
    Clicked 540 Latest Production Simulator Reset
    Clicked 540 Latest Production

    When I do the /widgets command in the console I don't see it:

    /widgets
    WD 00:00:22:375: [T:3848] Widgets:
    WD 00:00:22:375: [T:3848] * [0] Bootstrap (0x945ff68) (com.yahoo.widgets.tv.bootstrap:/home/jtest/TVWidgets/Konfabulator-Latest-540/TV/default.widget) 207.010kB
    WD 00:00:22:375: [T:3848] [1] Main (0x963c0c0) (com.yahoo.widgets.tv.container:/home/jtest/TVWidgets/Konfabulator-Latest-540/data/Widgets/Installed/com.yahoo.widgets.tv.container.widget) 1.100MB
    WD 00:00:22:375: [T:3848] [2] Profile Widget (0x9db9480) (com.yahoo.widgets.tv.settings:/home/jtest/TVWidgets/Konfabulator-Latest-540/data/Widgets/Installed/com.yahoo.widgets.tv.settings.widget) 1.579MB
    WD 00:00:22:375: [T:3848] [3] Template Widget (0xa1c2ac0) (com.yahoo.widgets.tv.template:/home/jtest/TVWidgets/Konfabulator-Latest-540/data/Widgets/Installed/com.yahoo.widgets.tv.template.widget) 1.356MB
    WD 00:00:22:375: [T:3848] [4] Toolbox Examples (0xa46fea0) (com.yahoo.widgets.tv.toolbox:/home/jtest/TVWidgets/Konfabulator-Latest-540/data/Widgets/Installed/com.yahoo.widgets.tv.toolbox.widget) 1.385MB
    WD 00:00:22:375: [T:3848] [5] VideoSample (0xa6ec260) (com.yahoo.widgets.tv.videosample:/home/jtest/TVWidgets/Konfabulator-Latest-540/data/Widgets/Installed/com.yahoo.widgets.tv.videosample.widget) 1.312MB

    When I look at the logs I see this:

    EI 00:00:01:523: [T:3848] LOADING ALL WIDGETS FROM /devwidgets
    EM 00:00:01:571: [T:3848] 04-12d-2010 12:56:00.347: Start parse
    EM 00:00:01:572: [T:3848] 04-12d-2010 12:56:00.348: End parse
    WE 00:00:01:574: [T:3848] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    WE 00:00:01:574: [T:3848] ERROR!ERROR!ERROR!ERROR!ERROR!
    WE 00:00:01:574: [T:3848] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    WE 00:00:01:574: [T:3848] Bootstrap [com.yahoo.widgets.tv.bootstrap]
    WE 00:00:01:575: [T:3848] Could not include file 'system://Bootstrap/Migration.js' (: Line 3)
    WE 00:00:01:575: [T:3848] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    WM 00:00:01:576: [T:3848]
    ...
    EE 00:00:01:614: [T:3848] SKIPPING FILE : /devwidgets/com.mycompany.widgets.tv.myapp.widget
    ...
    WM 00:00:02:182: [T:3848] RESETTING WIDGETS IN CURRENT PROFILE
    WM 00:00:02:183: [T:3848] Lazy registering WidgetMetadata class
    EI 00:00:02:195: [T:3848] LOADING ALL WIDGETS FROM /devwidgets
    WM 00:00:02:206: [T:3848] ALL DONE

    Any ideas?
    0
    • G
    • Apr 16, 2010
    Did you do "reset" after you made all the copying and editing? That's what got me. BR.
    0
  • Hi Kyle,

    Try this:

    1. Run the Vizio simulator. This creates ~/TVWidgets/Konfabulator-Vizio
    2. cd ~/TVWidgets/Konfabulator-Vizio/data/Widgets/Installed
    3. cp -r com.yahoo.widgets.tv.template.widget/ /devwidgets/myTest.widget
    4. cd /devwidgets/myTest.widget/Contents/
    5. vi widget.xml
    6. change com.yahoo.widgets.tv.template to com.yahoo.widgets.tv.myTest
    7. If the Vizio simulator is currently running shut it down by entering /quit in the console.
    8. Reset the simulator by selecting it from the Vizio simulator menu (incidentally, this is the same as manually blowing the data directory away by doing:
    rm -rf ~/TVWidgets/Konfabulator-Vizio/data
    9. Restart the Vizio simulator.

    You should then see your widget in the dock. Also, you don't need to reboot Ubuntu.

    - Ben
    0
  • Hi,

    I've got similar problem.

    In my widget.xml I have:
    <identifier>com.yahoo.keemor.widget</identifier>

    and catalog:
    /devwidgets/com.yahoo.keemor.widget

    My keemor widget shows in TV Widget Software, but it isn't listed in Widget Gallery and I can't add it to the Dock.

    Look here http://keemor.com/konfabulator.png


    I use WDK 1.0 (on Ubuntu 9.10) and the situation is the same LG/Samsung/Vizio/Latest Simulators

    Does anyone have any idea what I'm doing wrong?

    Greetz
    Romek
    0
  • Thanks a lot Ben - that walk-through worked for me.

    The problem was I was zipping the directory into a single .widget file before dropping it into the /devwidgets directory. Once I unzipped my sample and just left the exploded directory in /devwidgets, it showed up properly in the simulator after I reset.

    It's probably better for beginners to copy stuff out of:

    ~/TVWidgets/Konfabulator-Vizio/data/Widgets/Installed/

    for testing instead of

    ~/TVWidgets/Konfabulator-Vizio/TV/Widgets/

    Thanks for the help!
    0
  • QUOTE (Romek @ Apr 19 2010, 05:22 AM) <{POST_SNAPBACK}>
    Does anyone have any idea what I'm doing wrong?


    I just haven't noticed my widget in the dock, everything is OK.
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets