shorty707
(Shorty707)
1
hey there
my RegEx expression stopped working once the temp values dropped below zero .-(
Number:Temperature LOCALWEATHER_outTemp "Temperatur aussen [%.1f °C]" <temperature> { http="<[WeatherObserverCache:5001:REGEX(.*?outTemp.*?value=\"([0-9]*.[0-9]*)\".*)]" }
anybody can help how to declare the value also to accept minus values?
thanks!!
vzorglub
(Vincent Regaud)
2
Can you post the original text to apply the regex to, please?
shorty707
(Shorty707)
3
it reads from here
for positive values it works
for negative values it ready the next line and results (in case of the screenshot) to 98 but should be -5.2
thanks
vzorglub
(Vincent Regaud)
4
Thanks but a screen shot is not an html text.
shorty707
(Shorty707)
5
sorry
<tr>
<td bgcolor="#EDEFEF"><div class="item_1">Relative Pressure </div></td>
<td bgcolor="#EDEFEF"><input name="RelPress" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="1024.20" maxlength="6" /></td>
</tr>
<tr>
<td bgcolor="#EDEFEF"><div class="item_1">Outdoor Temperature</div></td>
<td bgcolor="#EDEFEF"><input name="outTemp" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="-0.2" maxlength="5" /></td>
</tr>
<tr>
<td bgcolor="#EDEFEF"><div class="item_1">Outdoor Humidity </div></td>
<td bgcolor="#EDEFEF"><input name="outHumi" disabled="disabled" type="text" class="item_2" style="WIDTH: 80px" value="92" maxlength="3" /></td>
</tr>
vzorglub
(Vincent Regaud)
6
Try this one:
REGEX(.*outTemp.*value=\"(.*?)\")