This commit is contained in:
Bluepr1nt
2017-03-29 13:20:03 +02:00
parent 4e791937ad
commit d58ddbf35a
+5 -3
View File
@@ -28,6 +28,8 @@ var parseTelegram = function(data, callback){
// }else { // }else {
// console.log("No!!!!") // console.log("No!!!!")
//} //}
//TOE1
regx = /1-0:1\.8\.1\((\d{5}\.\d{3})\*kWh\)/g regx = /1-0:1\.8\.1\((\d{5}\.\d{3})\*kWh\)/g
found = str.match(regx); found = str.match(regx);
@@ -40,7 +42,7 @@ var parseTelegram = function(data, callback){
//TOE2 //TOE2
regx = /1-0:1\.8\.2\((\d{6}\.\d{3})\*kWh\)/g; regx = /1-0:1\.8\.2\((\d{5}\.\d{3})\*kWh\)/g;
found = str.match(regx); found = str.match(regx);
if(found.length > 0) if(found.length > 0)
@@ -48,7 +50,7 @@ var parseTelegram = function(data, callback){
//TTE1 //TTE1
regx = /1-0:2\.8\.1\((\d{6}\.\d{3})\*kWh\)/g; regx = /1-0:2\.8\.1\((\d{5}\.\d{3})\*kWh\)/g;
found = str.match(regx); found = str.match(regx);
if(found.length > 0) if(found.length > 0)
@@ -56,7 +58,7 @@ var parseTelegram = function(data, callback){
//TTE2 //TTE2
regx = /1-0:2\.8\.2\((\d{6}\.\d{3})\*kWh\)/g; regx = /1-0:2\.8\.2\((\d{5}\.\d{3})\*kWh\)/g;
found = str.match(regx); found = str.match(regx);
if(found.length > 0) if(found.length > 0)