Hi,
Can someone please help me in getting decimal place numbers from regex expression.
Using Vera 2 way feedback.
I have tried this - Outside Temp\".*temperature=\"(\d+\.?\d*)\" but still get single digit returned.
Thanks in advance
REGEX expression Help
- Cheesegeezer
- Posts: 47
- Joined: Wed Mar 02, 2016 10:15 pm
- Location: On an oil rig somewhere
- Cheesegeezer
- Posts: 47
- Joined: Wed Mar 02, 2016 10:15 pm
- Location: On an oil rig somewhere
Re: REGEX expression Help
I have found the solution to this. In the 2 way feedback, if you send the captured data to a number (i.e. for gauge use) Demopad will round the number to a whole integer. However if you send the captured data directly to a label, then the full number is displayed. So if you want decimal and gauges for the same number you will need to set up 2 feedback values and send them to a number and a label.
This is using the standard format. e.g. Rain\".*value=\"(.+?)\"
This is using the standard format. e.g. Rain\".*value=\"(.+?)\"