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 Plugins
WorldWeather plugin v1.10.0 for MediaPortal 1.3.0 and higher
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="Micropolis" data-source="post: 890541" data-attributes="member: 96567"><p>Dear community,</p><p>attached at the first post of this thread you can find the latest build for testing purposes. This is the last build before I want to publish a release candidate and/or official release. It contains the following changes and significant enhancements:</p><ul> <li data-xf-list-type="ul">refactoring of URL/image static placeholder routines</li> <li data-xf-list-type="ul">add image slideshow functionality using iterative placeholders (see below for a detailed explanation)</li> <li data-xf-list-type="ul">exception fix for location detection routines</li> <li data-xf-list-type="ul">code reorganization to minimize source complexity</li> </ul><p>The included enhancements contains the first solution to fulfill xavier and Afred's request, but I decide to go a different way than described. Please let me explain some things: since version 0.5.1 the plugin allows you to use placeholders inside the weather/starry sky images definitions. Using this it is possible to adjust the URL or local/network location for your personal needs. The next examples tries to illustrate the usage of static and iterative placeholder parameters (based on weather images from ZDF).</p><p> </p><p><strong>Example 1:</strong></p><ul> <li data-xf-list-type="ul">You want to display a wind image, which contains the image for today, today night or tomorrow.</li> <li data-xf-list-type="ul">URL is <a href="http://wwwdyn.zdf.de/ext/weather/wind-brd-" target="_blank">http://wwwdyn.zdf.de/ext/weather/wind-brd-</a><em><x></em>.jpg. (<x> is a number between 0 and 2; 0 is for today, 1 is for today night and 2 is for tomorrow)</li> <li data-xf-list-type="ul">Open the configuration and enter the string "<a href="http://wwwdyn.zdf.de/ext/weather/wind-brd-" target="_blank">http://wwwdyn.zdf.de/ext/weather/wind-brd-</a><em><randomnumber:0,2></em>.jpg" in your favoured weather image field and save it.</li> <li data-xf-list-type="ul">The next time you want to display this image, the expression <em><randomnumber:0,2></em> will be replaced in real-time with a valid random number between 0 and 2. The result is a URL like <a href="http://wwwdyn.zdf.de/ext/weather/wind-brd-1.jpg" target="_blank">http://wwwdyn.zdf.de/ext/weather/wind-brd-1.jpg</a>.</li> </ul><p><strong>Example 2:</strong></p><ul> <li data-xf-list-type="ul">You want to display a image, which contains the temperature, risk of forest fires or UV index randomly.</li> <li data-xf-list-type="ul">URLs are <a href="http://wwwdyn.zdf.de/ext/weather/temp-brd-0.jpg" target="_blank">http://wwwdyn.zdf.de/ext/weather/temp-brd-0.jpg</a>, <a href="http://wwwdyn.zdf.de/ext/weather/forest-brd-0.jpg" target="_blank">http://wwwdyn.zdf.de/ext/weather/forest-brd-0.jpg</a> and <a href="http://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg" target="_blank">http://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg</a>.</li> <li data-xf-list-type="ul">Open the configuration and enter the string "<a href="http://wwwdyn.zdf.de/ext/weather/<randomword:temp,forest,uv>-brd-0.jpg" target="_blank">http://wwwdyn.zdf.de/ext/weather/<randomword:temp,forest,uv>-brd-0.jpg</a>" in your favoured weather image field and save it.</li> <li data-xf-list-type="ul">The next time you want to display this image, the expression <em><randomword:temp,forest,uv></em> will be replaced in real-time with a random word, the result is a URL like h<a href="http://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg" target="_blank">ttp://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg</a>.</li> </ul><p><strong>Example 3:</strong></p><ul> <li data-xf-list-type="ul">You want to display a image slideshow, which contains the rain radar for the last 6 hours.</li> <li data-xf-list-type="ul">URL is <a href="http://wwwdyn.zdf.de/ext/weather/rain-brd-0-" target="_blank">http://wwwdyn.zdf.de/ext/weather/rain-brd-0-</a><em><xx></em>.jpg. (<xx> is a number between 0 and 24)</li> <li data-xf-list-type="ul">Open the configuration and enter the string "<a href="http://wwwdyn.zdf.de/ext/weather/rain-brd-0-" target="_blank">http://wwwdyn.zdf.de/ext/weather/rain-brd-0-</a><em><rangenumberlz:0,24></em>.jpg" in your favoured weather image field and save it.</li> <li data-xf-list-type="ul">The next time you want to display this image, the expression <em><ranngenumberlz:0,24></em> enables the plugin to load images between "rain-brd-0-00.jpg" and "rain-brd-0-24.jpg", to build a slideshow and to display this.</li> </ul><p><strong>Example 4:</strong></p><ul> <li data-xf-list-type="ul">You want to display a image slideshow, which contains the satellite in retrospect for Europe.</li> <li data-xf-list-type="ul">URL is <a href="http://wwwdyn.zdf.de/ext/weather/rain-brd-0-" target="_blank">http://wwwdyn.zdf.de/ext/weather/sat-euri-0-<em><x></em>.jpg</a>. (<x> is a number between 0 and 48)</li> <li data-xf-list-type="ul">Open the configuration and enter the string "<a href="http://wwwdyn.zdf.de/ext/weather/rain-brd-0-" target="_blank">http://wwwdyn.zdf.de/ext/weather/sat-euri-0-<em><rangenumber:0,48></em>.jpg</a>" in your favoured weather image field and save it.</li> <li data-xf-list-type="ul">The next time you want to display this image, the expression <em><ranngenumber:0,48></em> enables the plugin to load images between "sat-euri-0-0.jpg" and "sat-euri-0-48.jpg", to build a slideshow and to display this.</li> </ul><p>The manual contains a list of all available placeholders, which can be interpreted by the plugin currently. Please be aware, 1) that the URL can contain more than one placeholder and 2) that all placeholder definitions are case sensitive. Additionally I must point out, that the image preview functionality inside the configuration dialog isn't supported yet.</p><p> </p><p><strong>At least, some hints:</strong> As many of yours assumed, the described slideshow method can costs many web traffic and CPU power. To decrease this, I suggest to use smaller number ranges and the use of related expert settings (see chapter 4.9), e.g. image resize percentage and image frame delay.</p><p> </p><p>@<a href="https://forum.team-mediaportal.com/members/alfredeneuma.83302/" target="_blank">AlfredENeuma</a>: the solution in example 3/4 is the result of your request from <a href="https://forum.team-mediaportal.com/threads/worldweather-plugin-v0-5-6-for-mediaportal-v1-2-0-or-higher.102775/page-119#post-888829" target="_blank">here</a>.</p><p>@<a href="https://forum.team-mediaportal.com/members/xavier.10592/" target="_blank">xavier</a>: the solution described in example 4 is the result of your proposal from <a href="https://forum.team-mediaportal.com/threads/worldweather-plugin-v0-5-6-for-mediaportal-v1-2-0-or-higher.102775/page-112#post-868756" target="_blank">here</a>.</p><p>@all others: if you have found interesting slideshow solutions, please post it here to share this with other community members.</p><p> </p><p>Feedback and improvement suggestions are very welcome.</p><p> </p><p>Cheers, Micropolis</p></blockquote><p></p>
[QUOTE="Micropolis, post: 890541, member: 96567"] Dear community, attached at the first post of this thread you can find the latest build for testing purposes. This is the last build before I want to publish a release candidate and/or official release. It contains the following changes and significant enhancements: [LIST] [*]refactoring of URL/image static placeholder routines [*]add image slideshow functionality using iterative placeholders (see below for a detailed explanation) [*]exception fix for location detection routines [*]code reorganization to minimize source complexity [/LIST] The included enhancements contains the first solution to fulfill xavier and Afred's request, but I decide to go a different way than described. Please let me explain some things: since version 0.5.1 the plugin allows you to use placeholders inside the weather/starry sky images definitions. Using this it is possible to adjust the URL or local/network location for your personal needs. The next examples tries to illustrate the usage of static and iterative placeholder parameters (based on weather images from ZDF). [B]Example 1:[/B] [LIST] [*]You want to display a wind image, which contains the image for today, today night or tomorrow. [*]URL is [url]http://wwwdyn.zdf.de/ext/weather/wind-brd-[/url][I]<x>[/I].jpg. (<x> is a number between 0 and 2; 0 is for today, 1 is for today night and 2 is for tomorrow) [*]Open the configuration and enter the string "[url]http://wwwdyn.zdf.de/ext/weather/wind-brd-[/url][I]<randomnumber:0,2>[/I].jpg" in your favoured weather image field and save it. [*]The next time you want to display this image, the expression [I]<randomnumber:0,2>[/I] will be replaced in real-time with a valid random number between 0 and 2. The result is a URL like [url]http://wwwdyn.zdf.de/ext/weather/wind-brd-1.jpg[/url]. [/LIST] [B]Example 2:[/B] [LIST] [*]You want to display a image, which contains the temperature, risk of forest fires or UV index randomly. [*]URLs are [url]http://wwwdyn.zdf.de/ext/weather/temp-brd-0.jpg[/url], [url]http://wwwdyn.zdf.de/ext/weather/forest-brd-0.jpg[/url] and [url]http://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg[/url]. [*]Open the configuration and enter the string "[url]http://wwwdyn.zdf.de/ext/weather/<randomword:temp,forest,uv>-brd-0.jpg[/url]" in your favoured weather image field and save it. [*]The next time you want to display this image, the expression [I]<randomword:temp,forest,uv>[/I] will be replaced in real-time with a random word, the result is a URL like h[URL='http://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg']ttp://wwwdyn.zdf.de/ext/weather/uv-brd-0.jpg[/URL]. [/LIST] [B]Example 3:[/B] [LIST] [*]You want to display a image slideshow, which contains the rain radar for the last 6 hours. [*]URL is [url]http://wwwdyn.zdf.de/ext/weather/rain-brd-0-[/url][I]<xx>[/I].jpg. (<xx> is a number between 0 and 24) [*]Open the configuration and enter the string "[url]http://wwwdyn.zdf.de/ext/weather/rain-brd-0-[/url][I]<rangenumberlz:0,24>[/I].jpg" in your favoured weather image field and save it. [*]The next time you want to display this image, the expression [I]<ranngenumberlz:0,24>[/I] enables the plugin to load images between "rain-brd-0-00.jpg" and "rain-brd-0-24.jpg", to build a slideshow and to display this. [/LIST] [B]Example 4:[/B] [LIST] [*]You want to display a image slideshow, which contains the satellite in retrospect for Europe. [*]URL is [URL='http://wwwdyn.zdf.de/ext/weather/rain-brd-0-']http://wwwdyn.zdf.de/ext/weather/sat-euri-0-[I]<x>[/I].jpg[/URL]. (<x> is a number between 0 and 48) [*]Open the configuration and enter the string "[URL='http://wwwdyn.zdf.de/ext/weather/rain-brd-0-']http://wwwdyn.zdf.de/ext/weather/sat-euri-0-[I]<rangenumber:0,48>[/I].jpg[/URL]" in your favoured weather image field and save it. [*]The next time you want to display this image, the expression [I]<ranngenumber:0,48>[/I] enables the plugin to load images between "sat-euri-0-0.jpg" and "sat-euri-0-48.jpg", to build a slideshow and to display this. [/LIST] The manual contains a list of all available placeholders, which can be interpreted by the plugin currently. Please be aware, 1) that the URL can contain more than one placeholder and 2) that all placeholder definitions are case sensitive. Additionally I must point out, that the image preview functionality inside the configuration dialog isn't supported yet. [B]At least, some hints:[/B] As many of yours assumed, the described slideshow method can costs many web traffic and CPU power. To decrease this, I suggest to use smaller number ranges and the use of related expert settings (see chapter 4.9), e.g. image resize percentage and image frame delay. @[URL='https://forum.team-mediaportal.com/members/alfredeneuma.83302/']AlfredENeuma[/URL]: the solution in example 3/4 is the result of your request from [URL='https://forum.team-mediaportal.com/threads/worldweather-plugin-v0-5-6-for-mediaportal-v1-2-0-or-higher.102775/page-119#post-888829']here[/URL]. @[URL='https://forum.team-mediaportal.com/members/xavier.10592/']xavier[/URL]: the solution described in example 4 is the result of your proposal from [URL='https://forum.team-mediaportal.com/threads/worldweather-plugin-v0-5-6-for-mediaportal-v1-2-0-or-higher.102775/page-112#post-868756']here[/URL]. @all others: if you have found interesting slideshow solutions, please post it here to share this with other community members. Feedback and improvement suggestions are very welcome. Cheers, Micropolis [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
WorldWeather plugin v1.10.0 for MediaPortal 1.3.0 and higher
Contact us
RSS
Top
Bottom