kwaugh
November 21st, 2009, 06:47 AM
I use the HA7NET ethernet bridge to poll my 1-wire devices. it's responses are returned as HTML that I've been parsing with substring finds based on the returned format. For example below is a piece of a returned response with a temperature
<INPUT CLASS="HA7Value" NAME="Temperature_0" ID="Temperature_0" TYPE="text" VALUE="17.6562">
Are there a set of lua libraries (and could you give an example!) of how I could parse the VALUE information from this more efficiently?
I'm guessing that when done properly, I could iterate through the names "Temperature_0", "Temperature_1" and pull the values vs my current string searches.
Thanks!
K
<INPUT CLASS="HA7Value" NAME="Temperature_0" ID="Temperature_0" TYPE="text" VALUE="17.6562">
Are there a set of lua libraries (and could you give an example!) of how I could parse the VALUE information from this more efficiently?
I'm guessing that when done properly, I could iterate through the names "Temperature_0", "Temperature_1" and pull the values vs my current string searches.
Thanks!
K