Skip to content

Commit

Permalink
Merge pull request #67 from tago-io/fix/connectors-elsys
Browse files Browse the repository at this point in the history
Fixing Elsys connector group key
  • Loading branch information
FabianoEger authored Jul 19, 2024
2 parents 9827d64 + f33f8c0 commit b67def6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion decoders/connector/elsys/elt-2/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/elt-lite/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/emk5/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ems-door/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ems/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-co2/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-desk/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-eye/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-lite/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-sound/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down

0 comments on commit b67def6

Please sign in to comment.