home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
LCARS Wide (16:9)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="huha" data-source="post: 929779" data-attributes="member: 63847"><p>Hi Catavolt,</p><p>please have a look at the attached files.</p><p>You need to install the StarDate\bin\Release\stardate.dll file into C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows</p><p> </p><p>The skin label is named <strong>#stardate.label</strong></p><p> </p><p>I have included seconds and calculated the date in an endless loop by</p><p> System.Threading.Thread.Sleep(UPDATE_TIME * 1000);</p><p> DateTime actual = DateTime.Now;</p><p> int d = actual.DayOfYear;</p><p> int y = actual.Year;</p><p> int h = actual.Hour;</p><p> int m = actual.Minute;</p><p> int s = actual.Second;</p><p> double stardate = (y + OFFSET_YEARS + ((((( (m + (s /60.0)) / 60.0) + h) / 24.0) + (d - 1.0) / 265.24)) - 2323.0) * 1000.0;</p><p> string str_stardate = string.Format("{0:F3}", stardate);</p><p> GUIPropertyManager.SetProperty("#stardate.label", str_stardate);</p><p> </p><p>You can optionally configure a future year and the update interval in the configuration.</p></blockquote><p></p>
[QUOTE="huha, post: 929779, member: 63847"] 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 [B]#stardate.label[/B] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
LCARS Wide (16:9)
Contact us
RSS
Top
Bottom