LCARS Wide (16:9) | Page 12

Discussion in 'MediaPortal 1 Skins' started by catavolt, January 11, 2008.

    • Team MediaPortal
    • Administrator

    catavolt Thread Starter Design Group Manager

    System Specs
    Latest WW 0.4.8 nightly ;)
  1. gezortenplotz Portal Member

    System Specs
    hey, very great skin ... would like to use it as standard!
    but on my 60" plasma it looks a bit ... erm ... we definitely need an HD-version of this skin. (y)
    • Premium Supporter

    huha Extension Developer

    System Specs
    Hi Catavolt,
    is there a chance to suppoort this skin also for MP 1.3 in the future?
    P.S. Did you get a plugin on star date already or is this still needed?
    • Team MediaPortal
    • Administrator

    catavolt Thread Starter Design Group Manager

    System Specs
    @huha: It will be ready soon for 1.3.0 Beta.
    Still waiting for a stardate plugin or at least a way to calculate within MP ;)
    • Like Like x 3
    • Premium Supporter

    huha Extension Developer

    System Specs
    catavolt,
    what precision do you need for the stardate - how many digits after the decimal point?
    Does this make sense below?

    2012-11-06 23:20:57.231659 [Debug][(27)]: d=311
    2012-11-06 23:20:57.231659 [Debug][(27)]: y=2012
    2012-11-06 23:20:57.231659 [Debug][(27)]: h=23
    2012-11-06 23:20:57.231659 [Debug][(27)]: m=20
    2012-11-06 23:20:57.232659 [Debug][(27)]: s=-308859,02495015
    2012-11-06 23:20:57.232659 [Debug][(27)]: str_s=-308859,02495015

    2012-11-06 23:21:02.232945 [Debug][(27)]: d=311
    2012-11-06 23:21:02.232945 [Debug][(27)]: y=2012
    2012-11-06 23:21:02.232945 [Debug][(27)]: h=23
    2012-11-06 23:21:02.232945 [Debug][(27)]: m=21
    2012-11-06 23:21:02.233945 [Debug][(27)]: s=-308858,330505705
    2012-11-06 23:21:02.233945 [Debug][(27)]: str_s=-308858,330505705
    2012-11-06 23:21:02.233945 [Debug][(27)]:
    • Team MediaPortal
    • Administrator

    catavolt Thread Starter Design Group Manager

    System Specs
    I think 3 digits after the decimal are sufficient (hundreds of a second) ;)
    • Premium Supporter

    huha Extension Developer

    System Specs
    Hi Catavolt,
    please have a look at the attached files.
    You need to install the StarDate\bin\Release\stardate.dll file into C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows

    The skin label is named #stardate.label

    I have included seconds and calculated the date in an endless loop by
    System.Threading.Thread.Sleep(UPDATE_TIME * 1000);
    DateTime actual = DateTime.Now;
    int d = actual.DayOfYear;
    int y = actual.Year;
    int h = actual.Hour;
    int m = actual.Minute;
    int s = actual.Second;
    double stardate = (y + OFFSET_YEARS + ((((( (m + (s /60.0)) / 60.0) + h) / 24.0) + (d - 1.0) / 265.24)) - 2323.0) * 1000.0;
    string str_stardate = string.Format("{0:F3}", stardate);
    GUIPropertyManager.SetProperty("#stardate.label", str_stardate);

    You can optionally configure a future year and the update interval in the configuration.

    Attached Files:

    • StarDate.zip
      File size:
      946.3 KB
      Uploaded:
      November 7, 2012
      Views:
      3
    • Like Like x 1
    • Team MediaPortal
    • Administrator

    catavolt Thread Starter Design Group Manager

    System Specs
    Big THX huha (y) - downloading and testing soon! Great addition to LCARS IMHO! :D
    • Team MediaPortal
    • Administrator

    catavolt Thread Starter Design Group Manager

    System Specs
    Hehehe, looking strange when the "seconds" count down (until reaching the day when stardate actually started..)
    • Team MediaPortal
    • Administrator

    catavolt Thread Starter Design Group Manager

    System Specs
    Hi @huha, just found a severe issue with stardate.dll.
    When installed in ...\plugins\Windows, it won´t let MPConfig close correct, meaning MPConfig stays as active task in task manager.
    When you e.g. open MPConfig three times and close it correct with the OK button, you get three instances of MPConfig in task manager.
    Encountered this bug when I tried to install TVWishList where the installer refused to install the TVWishList MP plugin because "MPConfig is open".
    Removed stardate.dll from ...\plugins\Windows, and now MPConfig closes as expected (no instance in task manager).
    Please have a look ;)
    • Like Like x 1

Share This Page

Users Viewing Thread (Users: 0, Guests: 0)

Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners