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
yrWeather Plugin 1.3.0.0
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="burr" data-source="post: 838102" data-attributes="member: 20518"><p><strong>Re: yrWeather Plugin</strong></p><p></p><p>I do understand very well what you mean.</p><p>#yrWeather.weatherIcon.nr is a property that will return a number corresponding to a certain type of weather.</p><p></p><p>My example shows how to get the correct image from the 128X128 folder cause i dont have any of 1280x720 pictures as you want.</p><p></p><p>what i think is the problem in your case ysmp is that you use \ in the begginning of the path, try this code and i believe it will work.</p><p><control></p><p> <description>Weather Background Fanart</description></p><p> <id>0</id></p><p> <type>image</type></p><p> <posx>0</posx></p><p> <posy>0</posy></p><p> <width>1280</width></p><p> <height>720</height> </p><p><texture> #(string.format(animations\weather\{0}.png', #yrWeather.weatherIcon.nr))</texture></p><p><animation effect="fade" start="0" end="100" time="250" delay="100" reversible="false">Visible</animation></p><p> <animation effect="fade" start="100" end="0" time="250" reversible="false">Hidden</animation></p><p> </control></p><p></p><p></p><p>When i test at my end using this an image will show</p><p><texture>#(string.format('weather\128x128\{0}.png', #yrWeather.weatherIcon.nr))</texture></p><p>this way nothing will show</p><p><texture>#(string.format('\weather\128x128\{0}.png', #yrWeather.weatherIcon.nr))</texture></p><p></p><p>Maybe i should change this property</p><p>#yrWeather.weatherIcon.nr</p><p>to</p><p>#yrWeather.weatherCodeNo ?</p></blockquote><p></p>
[QUOTE="burr, post: 838102, member: 20518"] [b]Re: yrWeather Plugin[/b] I do understand very well what you mean. #yrWeather.weatherIcon.nr is a property that will return a number corresponding to a certain type of weather. My example shows how to get the correct image from the 128X128 folder cause i dont have any of 1280x720 pictures as you want. what i think is the problem in your case ysmp is that you use \ in the begginning of the path, try this code and i believe it will work. <control> <description>Weather Background Fanart</description> <id>0</id> <type>image</type> <posx>0</posx> <posy>0</posy> <width>1280</width> <height>720</height> <texture> #(string.format(animations\weather\{0}.png', #yrWeather.weatherIcon.nr))</texture> <animation effect="fade" start="0" end="100" time="250" delay="100" reversible="false">Visible</animation> <animation effect="fade" start="100" end="0" time="250" reversible="false">Hidden</animation> </control> When i test at my end using this an image will show <texture>#(string.format('weather\128x128\{0}.png', #yrWeather.weatherIcon.nr))</texture> this way nothing will show <texture>#(string.format('\weather\128x128\{0}.png', #yrWeather.weatherIcon.nr))</texture> Maybe i should change this property #yrWeather.weatherIcon.nr to #yrWeather.weatherCodeNo ? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
yrWeather Plugin 1.3.0.0
Contact us
RSS
Top
Bottom