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
Development
General Development (no feature request here!)
Picture of the Day for MP1
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="J-B-N" data-source="post: 1052689" data-attributes="member: 17587"><p>Hi, I had a few moments over so I decided to write a small plugin for Mediaportal 1, mostly for fun and keeping my coding skills fresh. I am no longer an active programmer and have never professionally coded in C#. Using the template plugin from the Wiki made the start really simple!</p><p></p><p>Anyhow, I decided to write a plugin that download Bings daily image. I also noticed there is one for Mediaportal 2. The idea is simple – I want a new background image every day.</p><p></p><p>I now have a few questions:</p><ol> <li data-xf-list-type="ol">I opted for a solution that downloads the Bing image to a theme directory in the Titan skin folder. Is there a smarter way? <br /> </li> <li data-xf-list-type="ol">The most important issue is that I want to be able to refresh the background image from a background/separate thread. I simply start a background worker in the plugin Init and download a fresh image if needed. When the download has completed I want to refresh the background – how do I do that? I found code on how to do a skin refresh from the GUI (for the manual download).<br /> </li> <li data-xf-list-type="ol">Lastly, is the recommended way to run code periodically to start a new thread and have it called after a while? I am thinking about checking for a new image every 3 hours or something.</li> </ol><p>Any help is appreciated!</p></blockquote><p></p>
[QUOTE="J-B-N, post: 1052689, member: 17587"] Hi, I had a few moments over so I decided to write a small plugin for Mediaportal 1, mostly for fun and keeping my coding skills fresh. I am no longer an active programmer and have never professionally coded in C#. Using the template plugin from the Wiki made the start really simple! Anyhow, I decided to write a plugin that download Bings daily image. I also noticed there is one for Mediaportal 2. The idea is simple – I want a new background image every day. I now have a few questions: [LIST=1] [*]I opted for a solution that downloads the Bing image to a theme directory in the Titan skin folder. Is there a smarter way? [*]The most important issue is that I want to be able to refresh the background image from a background/separate thread. I simply start a background worker in the plugin Init and download a fresh image if needed. When the download has completed I want to refresh the background – how do I do that? I found code on how to do a skin refresh from the GUI (for the manual download). [*]Lastly, is the recommended way to run code periodically to start a new thread and have it called after a while? I am thinking about checking for a new image every 3 hours or something. [/LIST] Any help is appreciated! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Picture of the Day for MP1
Contact us
RSS
Top
Bottom