I’ve been trying to read data from a device with http binding for a while.
My item for collecting all data looks like this: String Test_Value1 "Performance [% s]" {http = "<[http://xxx.xxx.xxx.xxx/test.htm:60000:REGEX ((. *))]"}
I get the entire content back.
Now I only want the value 160 from the line
<div id = "pos20"> 160 </div>
read.
I just don’t get the syntax for the REGEX correctly.
There are always errors in the single quotes of “pos20”.
Hi there,
I was able to solve the problem. {http = "<[http://xxx.xxx.xxx.xxx/test.htm:60000:REGEX (. *? <div id = .pos20.> (. *?) </div> (. *) )] "}
The value has a fixed number of characters.
The missing characters are also filled in with and displayed.
This is a space as a wildcard.
e.g .: - 0,5 0,5 1,5
Can I use a replace function to remove the characters?