Closed rutgerh closed 8 years ago
you need to edit p1meterdata.js to :
var gasTotalUsage = returnRegExResult(data, /^0-1:24\.3\.0(.*)\(m3\)[\r]?[\n]?\(0+(\d+\.\d+)\)/m, 2);
watch the 2); :+1:
I did get it working with this regex; var gasTotalUsage = returnRegExResult(data, /^0-1:24.2.1(?:.*)(0+(\d+.\d+))/m, 1);
Thanks
Hi All,
I'm struggling to get my gasmeter working, energy consumption is working correctly.
Output from smartmeter:
In p1meterdata.js I have this regex;
var gasTotalUsage = returnRegExResult(data, /^0-1:24\.2\.1\(\d+[SW]\)\((\d+\.\d+)\*m3\)/m);
As far I can test the regex is working: https://regex101.com/r/kY1pE6/1
The status of gas usage is saying "Unknown" , any suggestions were to look ? I think i'm missing something.