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="catavolt" data-source="post: 853008" data-attributes="member: 54906"><p>Hi Alex,</p><p>my proposal is to use optional textboxes (solution b), so the URL is coupled to "#WorldWeather<digit>Image" and the button label is coupled to "#WorldWeather<digit>ImageName" (new properties with new textboxes in Config).</p><p>This way a user may choose a predefined weather image (or add a personal one), but name it to his preference.</p><p>Example: User selects a predefined URL for "Precipitation", but is able to change the predefined word "Precipitation" to "Rain Radar Germany".</p><p> </p><p>Actual WorldWeather.xml (Config) looks like this:</p><p> </p><p><span style="font-family: 'courier new'"><entry name="<strong><span style="color: #ff0000">ImagePrecipitationURL</span></strong>"><a href="http://www.wettergefahren.de/wundk/radar/Radarfilm_WEB_DL.gif</entry>" target="_blank">http://www.wettergefahren.de/wundk/radar/Radarfilm_WEB_DL.gif</entry></a></span></p><p> </p><p>With new properties and renamed image properties it would look like this:</p><p> </p><p><span style="font-family: 'courier new'"><entry name="<strong><span style="color: #ff0000">Image2URL</span></strong>"><a href="http://www.wettergefahren.de/wundk/radar/Radarfilm_WEB_DL.gif</entry>" target="_blank">http://www.wettergefahren.de/wundk/radar/Radarfilm_WEB_DL.gif</entry></a></span></p><p><span style="font-family: 'courier new'"><entry name="<strong><span style="color: #ff0000">Image2Name</span></strong>">Rain Radar Germany</entry></span></p><p> </p><p>Actual button description in WorldWeather.xml (skin folder):</p><p> </p><p><span style="font-family: 'courier new'"><control></span></p><p><span style="font-family: 'courier new'"> <description>Satellite image Precipitation</description></span></p><p><span style="font-family: 'courier new'"> <type>button</type></span></p><p><span style="font-family: 'courier new'"> <id>11</id></span></p><p><span style="font-family: 'courier new'"> <onup>10</onup></span></p><p><span style="font-family: 'courier new'"> <ondown>12</ondown></span></p><p><span style="font-family: 'courier new'"> <label><strong><span style="color: #ff0000">#WorldWeather.TranslationPrecipitation</span></strong></label> <visible>string.equals(#WorldWeather.View,Image)+string.equals(<strong><span style="color: #ff0000">#WorldWeather.ImagePrecipitationEnabled</span></strong>,true)+string.equals(#WorldWeather.ImageView,Flat)</visible></span></p><p><span style="font-family: 'courier new'"> </control></span></p><p> </p><p>Button description in WorldWeather.xml (skin folder) after proposed changes:</p><p> </p><p><span style="font-family: 'courier new'"><control></span></p><p><span style="font-family: 'courier new'"> <description>Satellite image Precipitation</description></span></p><p><span style="font-family: 'courier new'"> <type>button</type></span></p><p><span style="font-family: 'courier new'"> <id>11</id></span></p><p><span style="font-family: 'courier new'"> <onup>10</onup></span></p><p><span style="font-family: 'courier new'"> <ondown>12</ondown></span></p><p><span style="font-family: 'courier new'"> <label><strong><span style="color: #ff0000">#WorldWeather.2ImageName</span></strong></label></span></p><p><span style="font-family: 'courier new'"> <visible>string.equals(#WorldWeather.View,Image)+string.equals(<span style="color: #ff0000"><strong>#WorldWeather.Image2Enabled</strong></span>,true)+string.equals(#WorldWeather.ImageView,Flat)</visible></span></p><p><span style="font-family: 'courier new'"> </control></span></p><p> </p><p>Actual image description in WorldWeatherImage.xml (skin folder):</p><p> </p><p><span style="font-family: 'courier new'"><!-- *** Satellite Precipitation Image *** --></span></p><p><span style="font-family: 'courier new'"> <control></span></p><p><span style="font-family: 'courier new'"> <description>Satellite image</description></span></p><p><span style="font-family: 'courier new'"> <type>image</type></span></p><p><span style="font-family: 'courier new'"> <id>0</id></span></p><p><span style="font-family: 'courier new'"> <posX>370</posX></span></p><p><span style="font-family: 'courier new'"> <posY>150</posY></span></p><p><span style="font-family: 'courier new'"> <width>1000</width></span></p><p><span style="font-family: 'courier new'"> <height>562</height></span></p><p><span style="font-family: 'courier new'"> <keepaspectratio>yes</keepaspectratio></span></p><p><span style="font-family: 'courier new'"> <texture mask="osd_mask.png"><strong><span style="color: #ff0000">#WorldWeather.ImagePrecipitation</span></strong></texture></span></p><p><span style="font-family: 'courier new'"> <visible>string.equals(#WorldWeather.View,Image)+control.hasfocus(11)+string.equals(#WorldWeather.ImageView,Flat)</visible></span></p><p><span style="font-family: 'courier new'"> <animation effect="fade" time="300">visiblechange</animation></span></p><p><span style="font-family: 'courier new'"> </control></span></p><p> </p><p>Image description in WorldWeatherImage.xml (skin folder) after proposed changes:</p><p> </p><p><span style="font-family: 'courier new'"><!-- *** Satellite Precipitation Image *** --></span></p><p><span style="font-family: 'courier new'"> <control></span></p><p><span style="font-family: 'courier new'"> <description>Satellite precipitation image</description></span></p><p><span style="font-family: 'courier new'"> <type>image</type></span></p><p><span style="font-family: 'courier new'"> <id>0</id></span></p><p><span style="font-family: 'courier new'"> <posX>370</posX></span></p><p><span style="font-family: 'courier new'"> <posY>150</posY></span></p><p><span style="font-family: 'courier new'"> <width>1000</width></span></p><p><span style="font-family: 'courier new'"> <height>562</height></span></p><p><span style="font-family: 'courier new'"> <keepaspectratio>yes</keepaspectratio></span></p><p><span style="font-family: 'courier new'"> <texture mask="osd_mask.png"><strong><span style="color: #ff0000">#WorldWeather.2Image</span></strong></texture></span></p><p><span style="font-family: 'courier new'"> <visible>string.equals(#WorldWeather.View,Image)+control.hasfocus(11)+string.equals(#WorldWeather.ImageView,Flat)</visible></span></p><p><span style="font-family: 'courier new'"> <animation effect="fade" time="300">visiblechange</animation></span></p><p><span style="font-family: 'courier new'"> </control></span></p><p> </p><p>IMHO this should be feasable - skin changes are marginal <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="catavolt, post: 853008, member: 54906"] Hi Alex, my proposal is to use optional textboxes (solution b), so the URL is coupled to "#WorldWeather<digit>Image" and the button label is coupled to "#WorldWeather<digit>ImageName" (new properties with new textboxes in Config). This way a user may choose a predefined weather image (or add a personal one), but name it to his preference. Example: User selects a predefined URL for "Precipitation", but is able to change the predefined word "Precipitation" to "Rain Radar Germany". Actual WorldWeather.xml (Config) looks like this: [FONT=courier new]<entry name="[B][COLOR=#ff0000]ImagePrecipitationURL[/COLOR][/B]">[url]http://www.wettergefahren.de/wundk/radar/Radarfilm_WEB_DL.gif</entry>[/url][/FONT] With new properties and renamed image properties it would look like this: [FONT=courier new]<entry name="[B][COLOR=#ff0000]Image2URL[/COLOR][/B]">[url]http://www.wettergefahren.de/wundk/radar/Radarfilm_WEB_DL.gif</entry>[/url][/FONT] [FONT=courier new]<entry name="[B][COLOR=#ff0000]Image2Name[/COLOR][/B]">Rain Radar Germany</entry>[/FONT] Actual button description in WorldWeather.xml (skin folder): [FONT=courier new]<control>[/FONT] [FONT=courier new] <description>Satellite image Precipitation</description>[/FONT] [FONT=courier new] <type>button</type>[/FONT] [FONT=courier new] <id>11</id>[/FONT] [FONT=courier new] <onup>10</onup>[/FONT] [FONT=courier new] <ondown>12</ondown>[/FONT] [FONT=courier new] <label>[B][COLOR=#ff0000]#WorldWeather.TranslationPrecipitation[/COLOR][/B]</label> <visible>string.equals(#WorldWeather.View,Image)+string.equals([B][COLOR=#ff0000]#WorldWeather.ImagePrecipitationEnabled[/COLOR][/B],true)+string.equals(#WorldWeather.ImageView,Flat)</visible>[/FONT] [FONT=courier new] </control>[/FONT] Button description in WorldWeather.xml (skin folder) after proposed changes: [FONT=courier new]<control>[/FONT] [FONT=courier new] <description>Satellite image Precipitation</description>[/FONT] [FONT=courier new] <type>button</type>[/FONT] [FONT=courier new] <id>11</id>[/FONT] [FONT=courier new] <onup>10</onup>[/FONT] [FONT=courier new] <ondown>12</ondown>[/FONT] [FONT=courier new] <label>[B][COLOR=#ff0000]#WorldWeather.2ImageName[/COLOR][/B]</label>[/FONT] [FONT=courier new] <visible>string.equals(#WorldWeather.View,Image)+string.equals([COLOR=#ff0000][B]#WorldWeather.Image2Enabled[/B][/COLOR],true)+string.equals(#WorldWeather.ImageView,Flat)</visible>[/FONT] [FONT=courier new] </control>[/FONT] Actual image description in WorldWeatherImage.xml (skin folder): [FONT=courier new]<!-- *** Satellite Precipitation Image *** -->[/FONT] [FONT=courier new] <control>[/FONT] [FONT=courier new] <description>Satellite image</description>[/FONT] [FONT=courier new] <type>image</type>[/FONT] [FONT=courier new] <id>0</id>[/FONT] [FONT=courier new] <posX>370</posX>[/FONT] [FONT=courier new] <posY>150</posY>[/FONT] [FONT=courier new] <width>1000</width>[/FONT] [FONT=courier new] <height>562</height>[/FONT] [FONT=courier new] <keepaspectratio>yes</keepaspectratio>[/FONT] [FONT=courier new] <texture mask="osd_mask.png">[B][COLOR=#ff0000]#WorldWeather.ImagePrecipitation[/COLOR][/B]</texture>[/FONT] [FONT=courier new] <visible>string.equals(#WorldWeather.View,Image)+control.hasfocus(11)+string.equals(#WorldWeather.ImageView,Flat)</visible>[/FONT] [FONT=courier new] <animation effect="fade" time="300">visiblechange</animation>[/FONT] [FONT=courier new] </control>[/FONT] Image description in WorldWeatherImage.xml (skin folder) after proposed changes: [FONT=courier new]<!-- *** Satellite Precipitation Image *** -->[/FONT] [FONT=courier new] <control>[/FONT] [FONT=courier new] <description>Satellite precipitation image</description>[/FONT] [FONT=courier new] <type>image</type>[/FONT] [FONT=courier new] <id>0</id>[/FONT] [FONT=courier new] <posX>370</posX>[/FONT] [FONT=courier new] <posY>150</posY>[/FONT] [FONT=courier new] <width>1000</width>[/FONT] [FONT=courier new] <height>562</height>[/FONT] [FONT=courier new] <keepaspectratio>yes</keepaspectratio>[/FONT] [FONT=courier new] <texture mask="osd_mask.png">[B][COLOR=#ff0000]#WorldWeather.2Image[/COLOR][/B]</texture>[/FONT] [FONT=courier new] <visible>string.equals(#WorldWeather.View,Image)+control.hasfocus(11)+string.equals(#WorldWeather.ImageView,Flat)</visible>[/FONT] [FONT=courier new] <animation effect="fade" time="300">visiblechange</animation>[/FONT] [FONT=courier new] </control>[/FONT] IMHO this should be feasable - skin changes are marginal ;) [/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