OpenSCD plugin for creating new Logical Node Types (LNodeType) for IEC 61850 SCL files.
This project provides a web component and supporting dialogs for generating and managing Logical Node Types (LNodeType) in SCL files. It uses OpenSCD Core, SCL-lib, and Tree Grid for SCL manipulation and UI.
- Create and insert new
LNodeTypeelements into SCL documents - Interactive tree-based selection of Data Objects and attributes for Logical Node Types
- Dialogs for adding Data Objects, editing descriptions, previewing changes, and settings
Clone the repository and install dependencies:
git clone https://github.com/com-pas/oscd-template-generator.git
cd oscd-template-generator
npm installTo start the development server with live reload on http://localhost:8000/:
npm startTo build the project for production:
npm run buildTo run tests:
npm testTo lint and format code:
npm run lint
npm run formatThe main component is oscd-template-generator. It can be integrated into OpenSCD or used standalone in a web application. See index.html for a usage example.
start- Start development server with live reloadbuild- Build the app and output todisttest- Run test suite with coveragelint- Run linter and prettier checksformat- Auto-format codedeploy- Build and deploy to GitHub Pages
oscd-template-generator.ts- Main web componentcomponents/- Dialogs and UI componentsfoundation.ts- Utility functions for tree and selection logicconstants.ts- Shared constantsutils/- Utility helpersindex.html- Demo entry point