Hi All,
I have a webserver setup to provide an interface to switch on some relays and eventually to return some sensor values.
The webserver is working and displays the following HTML in the browser. However when the page refreshes it toggles the values for Water Status. This value should only toggle when I click the hyperlink to send the correct URL ie. http://192.168.1.177/?0
Let me know if you'd like the sketch uploaded also (It's quite messy at the moment).
Thanks
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="refresh" content="5;url=http://192.168.1.177/"/>
<title>Home Automation</title>
</head>
<body>
<p><table width="200" border="1">
<caption>Gardens</caption>
<tr><th width="8" scope="col">Location</th>
<th width="110" scope="col">Soil Status</th>
<th width="60" scope="col">Water Status</th>
<th width="60" scope="col">Humidity</th></tr>
<tr><th scope="row"><a href="http://192.168.1.177/?0">Vege</a></th><td>25</td>
<td>1</td>
<td>1</td></tr>
<tr><th scope="row"><a href="http://192.168.1.177/?1">Tank</a></th><td>0</td>
<td>0</td>
<td>0</td></tr>
<tr><th scope="row"><a href="http://192.168.1.177/?2">Fern</a></th><td>0</td>
<td>0</td>
<td>0</td></tr>
<tr><th scope="row"><a href="http://192.168.1.177/?3">GlassHouse1</a></th><td>0</td>
<td>0</td>
<td>0</td></tr>
<tr><th scope="row"><a href="http://192.168.1.177/?4">GlassHouse2</a></th><td>0</td>
<td>0</td>
<td>0</td></tr>
<tr><th scope="row"><a href="http://192.168.1.177/?5">Vege Trickle</a></th><td>0</td>
<td>0</td>
<td>0</td></tr>
</table>
<p> </p>
</body>
</html>