Skip to content

ruiluntran/knx-ets-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KNX-ETS-Utils

Installation

npm install knx-ets-utils

Usage

import {knxDatapointTypeMapper, parseETSGroupAddressCSVExport} from 'knx-ets-utils';

Current Utils

  • knxDatapointTypeMapper: Mapping the CSV datapoint type (e.g. DPST-1-1, DPST-19-1) to the datapoint type (DPT1.001, DPT19.001)
    const datapoint = knxDatapointTypeMapper('DPST-1-1');
    console.log(datapoint); // DPT1.001
  • parseETSGroupAddressCSVExport: Convert the ETS KNX group address CSV export to json.
    const csv = '"Main","Middle","Sub","Address","Central","Unfiltered","Description","DatapointType","Security"; , ,"Wohnzimmer direkt","1/0/2","","","","DPST-1-1","Auto"';
    const groupAddresses = parseETSGroupAddressCSVExport(csv, ['livingRoom', 'kitchen']);
    console.log(groupAddresses); 
    /**  
    [
     {room: 'Wohnzimmer',address: '1/0/1', datapointType: 'DPT1.001' },
      ...
    ]
    **/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors