I have a web page that displays various high/low/average values that gets updated routinely and is then pushed to an FTP server. Occasionally (but not consistently that I can see) the variable [hour1_wind0_speed_mph] fails to be given its value and instead shows up like this:
The Source shows the following when this happens:
<tr>
<td>Wind Speed</td>
<td>0.0 mph</td>
<td>[hour1_wind0_speed_mph] mph average, last hour</td>
<td>5.8 mph, day's maximum, from the ESE</td>
</tr>
As I noted, it usually displays the value properly. Any ideas as to why it sometimes fails to display?
Windspeed Avg display error?
Moderator: Mattk
-
skyewright
- Platinum Boarder

- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:Windspeed Avg display error?
I believe that is intended to happen if the variable can't be resolved for some reason.obhwx wrote:... the variable [hour1_wind0_speed_mph] fails to be given its value and instead shows up like this:
<SNIP>
<td>[hour1_wind0_speed_mph] mph average, last hour</td>
So presumably on these occasions there is temporarily not a "last hour" figure available for the wind sensor (in which case 'current' might simply be displaying the last received value). You might like to check the relevant log to see if there are gaps in wind sensor readings. You might also like to consider if a re-computation was taking place at the relevant times - perhaps that could affect matters?
PS. If your template is made to include the text
[blank_the_unknown]
then if the variable can't be resolved, the insertion is blank instead of being a copy of the variable name.
