title said it all
tested with "!Integer.IsGreater(Window.Property(Daily.1.LowTemperature),0)"
would be nice if someone could confirm this behavior.
(Guess i have to open a ticket for this)
sorry, can't confirm... works ok here
(2016-11-28, 19:20)ronie Wrote: [ -> ]sorry, can't confirm... works ok here
Huh
also if u try "Integer.IsGreater(Window.Property(Daily.1.LowTemperature),-10)"
EDIT:
my "Weathercurves" stopt working as soon daily lowtemp falls under 0°C
---
i got also some problems with an other methode to do the "curves".
i've these in a grouplis.
PHP Code:
<include content="DegreeItem">
<param name="hour_id" value="24" />
<param name="visibleDegree_id" value="-60°C" />
</include>
<include content="DegreeItem">
<param name="hour_id" value="24" />
<param name="visibleDegree_id" value="-59°C" />
</include>
<include content="DegreeItem">
<param name="hour_id" value="24" />
<param name="visibleDegree_id" value="-58°C" />
</include>
PHP Code:
<!-- Weather Temperature Curve (Degree-block)-->
<include name="DegreeItem">
<control type="image">
<left>21</left>
<width>3</width>
<height>5</height>
<texture background="true" colordiffuse="FFFFFFFF">common/Base.png</texture>
<aspectratio>stretch</aspectratio>
<visible>Integer.IsGreater(Window.Property(Hourly.$PARAM[hour_id].Temperature),$PARAM[visibleDegree_id]) + Integer.IsGreater(Window.Property(Daily.1.LowTemperature),$PARAM[visibleDegree_id])</visible>
</control>
</include>
these items are always visible.
visibleDegree_id needs to be an int, not a string ;-)
(2016-11-28, 19:58)ronie Wrote: [ -> ]visibleDegree_id needs to be an int, not a string ;-)
O.K. will give it a whirl lator
will need to set two visibledegree_id's in this case as "$INFO[Window.Property(Hourly.$PARAM[hour_id].Temperature)] returns a String not a Iteger.
these means for me chaging 3840 Includes (No Kidding), only the degreeItemIncludes are 21086 lines of code, this will thake a while..
@Ronie:
Now im a bit confused as "$INFO[Window.Property(Daily.1.LowTemperature]" also returns a String (Temp + Tempunits)
so now im not shure what u exactly mean with
(2016-11-28, 19:58)ronie Wrote: [ -> ]visibleDegree_id needs to be an int, not a string ;-)
does that mean Integer.IsGreather(foo,bar) shuld only work for "plain" Integers?
EDIT:
Doesnt work on my End, also not if i use just Integers to compare to
EDIT2
is it maybe possible that i cant use params there?
as
PHP Code:
<control type="label">
<width>80</width>
<height>33</height>
<font>Font13</font>
<textcolor>TextColor1</textcolor>
<align>right</align>
<label>-5°C</label>
<visible>[IntegerGreaterThan(Window.Property(Daily.1.LowTemperature),-5) + !IntegerGreaterThan(Window.Property(Daily.1.LowTemperature),0)]</visible>
</control>
does work ...