2015-01-13 14:49:36 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE menuplugin SYSTEM "../../../dtd/displaymenuplugin.dtd">
|
|
|
|
|
|
|
|
<menuplugin x="0" y="0" width="100%" height="100%" fadetime="0">
|
|
|
|
<background>
|
|
|
|
<area x="0" y="0" width="100%" height="100%" layer="1">
|
|
|
|
<fill color="{clrTransBlack}" />
|
|
|
|
</area>
|
|
|
|
</background>
|
|
|
|
|
|
|
|
<header>
|
|
|
|
<area x="0" y="0" width="1" height="1" layer="1">
|
|
|
|
<fill color="{clrTransparent}" />
|
|
|
|
</area>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<datetime>
|
|
|
|
<area x="0" y="0" width="1" height="1" layer="1">
|
|
|
|
<fill color="{clrTransparent}" />
|
|
|
|
</area>
|
|
|
|
</datetime>
|
|
|
|
|
|
|
|
<colorbuttons>
|
|
|
|
<area x="0" y="0" width="1" height="1" layer="1">
|
|
|
|
<fill color="{clrTransparent}" />
|
|
|
|
</area>
|
|
|
|
</colorbuttons>
|
|
|
|
|
|
|
|
<scrollbar>
|
|
|
|
<area x="98%" y="20%" width="2%" height="65%" layer="3">
|
|
|
|
<fill color="{clrWhite}" />
|
|
|
|
<drawrectangle x="2" y="2" width="{areawidth} - 4" height="{areaheight} - 4" color="{clrTransparent}" />
|
|
|
|
<drawrectangle x="4" y="4 + {areaheight} * {offset} / 1000" width="{areawidth} - 8" height="{areaheight} * {height} / 1000 - 8" color="{clrWhite}" />
|
|
|
|
</area>
|
|
|
|
</scrollbar>
|
2015-01-14 11:28:38 +01:00
|
|
|
|
|
|
|
<!-- Available Variables in detailheader and tab:
|
|
|
|
{summary} short summary of weather
|
|
|
|
{icon} path to use in <drawimage> to display appropriate weather icon
|
2015-01-14 14:20:22 +01:00
|
|
|
{city} configured city to display weather for
|
|
|
|
{latitude} latitude
|
|
|
|
{longitude} longitude
|
2015-01-14 11:28:38 +01:00
|
|
|
|
|
|
|
{hourly[]} array with up to 48 hourly forecasts
|
|
|
|
{hourly[num]} number of forecast, starting at 1
|
|
|
|
{hourly[timestamp]} timestamp in hh:mm
|
|
|
|
{hourly[temperature]} temperature in °C
|
|
|
|
{hourly[apparenttemperature]} apparent (felt) temperature in °C
|
|
|
|
{hourly[summary]} short summary
|
|
|
|
{hourly[icon]} path to use in <drawimage> to display appropriate weather icon
|
|
|
|
{hourly[precipitationintensity]} precipitation intensity in l/qm
|
|
|
|
{hourly[precipitationprobability]} precipitation probability in %
|
|
|
|
{hourly[precipitationtype]} precipitation type (snow, ...)
|
|
|
|
{hourly[humidity]} humidity in %
|
|
|
|
{hourly[windspeed]} wind speed in km/h
|
|
|
|
{hourly[windbearing]} wind bearing in degrees
|
|
|
|
{hourly[windbearingstring]} wind bearing as human readable string (e.g NE, NNE, ...)
|
|
|
|
{hourly[visibility]} visibility in km
|
|
|
|
{hourly[cloudcover]} cloud cover in %
|
|
|
|
{hourly[pressure]} pressure in HPa
|
|
|
|
{hourly[ozone]} Ozone in DU (Dobson Unit)
|
|
|
|
-->
|
|
|
|
<detailheader>
|
|
|
|
<area x="0" y="0" width="100%" height="20%" layer="2">
|
|
|
|
<fill color="{clrTransBlueLight}" />
|
|
|
|
</area>
|
|
|
|
<area x="0" y="0" width="100%" height="20%" layer="3">
|
|
|
|
<drawtext x="20" valign="center" font="{light}" fontsize="40%" color="{clrWhite}" text="{menuheader}" />
|
|
|
|
</area>
|
|
|
|
<area x="{areawidth} - {areaheight}*0.2" y="0" width="{areaheight}*0.2" height="20%" layer="4">
|
|
|
|
<drawimage imagetype="icon" path="{icon}" align="center" valign="center" width="70%" height="70%"/>
|
|
|
|
</area>
|
|
|
|
</detailheader>
|
2015-01-13 14:49:36 +01:00
|
|
|
|
|
|
|
<tab name="current" x="2%" y="20%" width="94%" height="65%" layer="2" scrollheight="{areaheight}/4">
|
2015-01-14 11:28:38 +01:00
|
|
|
<drawtextbox name="summary" x="0" y="5%" width="{areawidth}" font="{semibold}" fontsize="10%" color="{clrWhite}" text="{summary}" />
|
|
|
|
<drawrectangle x="0" y="{height(summary)}" width="{areawidth}" height="1" color="{clrWhite}" />
|
|
|
|
<loop name="hourly" x="0" y="{height(summary)}" orientation="vertical" columnwidth="{areawidth}" rowheight="{areaheight}/5">
|
2015-01-13 14:49:36 +01:00
|
|
|
<drawtext x="0" font="{semibold}" fontsize="9%" valign="center" color="{clrWhite}" text="{hourly[timestamp]}" />
|
|
|
|
<drawimage imagetype="icon" path="{hourly[icon]}" x="{rowheight}" valign="center" width="{rowheight}*0.8" height="{rowheight}*0.8"/>
|
|
|
|
<drawtext name="temp" x="2*{rowheight} + 0.75*{rowheight} - {width(temp)}/2" font="{light}" fontsize="13%" y="0" color="{clrWhite}" text="{hourly[temperature]}°C" />
|
2015-01-14 11:28:38 +01:00
|
|
|
<drawtext name="felt" x="2*{rowheight} + 0.75*{rowheight} - {width(felt)}/2" font="{light}" fontsize="6%" y="{rowheight}*0.6" color="{clrWhite}" text="{tr(felt)} {hourly[apparenttemperature]}°C" />
|
|
|
|
<drawtext x="4*{rowheight}" font="{light}" fontsize="{rowheight}/3" y="0" width="{columnwidth} - 4*{rowheight}" color="{clrWhite}" text="{hourly[summary]}" />
|
|
|
|
<drawtext x="4*{rowheight}" font="{light}" fontsize="{rowheight}/3" y="{rowheight}/3" width="{columnwidth} - 4*{rowheight}" color="{clrWhite}" text="{tr(precipitationprobability)} {hourly[precipitationprobability]}%, {hourly[precipitationintensity]} l/qm" />
|
|
|
|
<drawtext x="4*{rowheight}" font="{light}" fontsize="{rowheight}/3" y="{rowheight}*2/3" width="{columnwidth} - 4*{rowheight}" color="{clrWhite}" text="{tr(windspeed)} {hourly[windspeed]} km/h {tr(from)} {hourly[windbearingstring]}" />
|
2015-01-13 14:49:36 +01:00
|
|
|
<drawrectangle x="0" y="{rowheight} - 1" width="{columnwidth}" height="1" color="{clrWhite}" />
|
|
|
|
</loop>
|
|
|
|
</tab>
|
|
|
|
</menuplugin>
|