Hello,
I'm fairly new to Big5, I've got a couple of profiles working, but I tried to add one today that comes out OK in the sandbox, but not in the actual device.
The URL is https://www.saws.org/your-water/aqui...el-statistics/
I'm trying to capture the value of the aquifer level in a device. The first instance appears as "Stage 1 Watering Hours / Edwards Aquifer Level: 657.5 Updated 7/12/20"
I started in the sandbox by pasting the contents of the page in the "input" box and working out the regular expression:
${Regex(Regex(input, "Edwards Aquifer Level.*.\b\d{3}\.?\d*")[0],"\b\d{3}\.?\d*")[0]}
Which shows the result of 657.5 in the Result box. That seems good.
I pasted the sandbox string without ${} in the HTTP profile "Device value expression" and put the profile in a manually executed event. When I run the event I got the value of 2020 instead of 657.5
Any thoughts where I'm going wrong?
I'm fairly new to Big5, I've got a couple of profiles working, but I tried to add one today that comes out OK in the sandbox, but not in the actual device.
The URL is https://www.saws.org/your-water/aqui...el-statistics/
I'm trying to capture the value of the aquifer level in a device. The first instance appears as "Stage 1 Watering Hours / Edwards Aquifer Level: 657.5 Updated 7/12/20"
I started in the sandbox by pasting the contents of the page in the "input" box and working out the regular expression:
${Regex(Regex(input, "Edwards Aquifer Level.*.\b\d{3}\.?\d*")[0],"\b\d{3}\.?\d*")[0]}
Which shows the result of 657.5 in the Result box. That seems good.
I pasted the sandbox string without ${} in the HTTP profile "Device value expression" and put the profile in a manually executed event. When I run the event I got the value of 2020 instead of 657.5
Any thoughts where I'm going wrong?
Comment