Samsung / SamsungAutomationStudio

Samsung Automation Studio is to provide development tools and execution environment that can easily configure application logic by connecting both Samsung service and 3rd party service. This project is to share the node for open source NodeRED developed by Samsung Automation Studio team to the community. If you are using nodered, you can easily install the node we provide. And you can use Samsung's IoT and AI-related services more easily, and you can have an extended experience in conjunction with your own services.
Apache License 2.0
56 stars 29 forks source link

ssafy-9th feat : module, module manage tool #80

Closed Sunghyun1320 closed 9 months ago

Sunghyun1320 commented 9 months ago

구현 사항

module - module in 노드 설정, submodule 노드 설정, 호출 module in - 연결된 노드 실행, 연결된 노드에 따라 상태 체크 module out - stack에서 마지막에 호출된 module노드 실행 submodule - module in과 out 사이에 들어가는 하위 모듈

module manage tool - 현재 탭(플로우) 내에 있는 module들의 정보 조회 및 로컬에 저장(추후 개발) global manage tool - 로컬에 저장되어있는 모듈의 json 파일을 불러와 드래그앤드롭으로 import

상세 내용

101-module.js

모든 노드의 정보를 받아와서 우리가 만든 노드들의 정보를 전역에 저장합니다. 이후 호출하는 노드의 정보를 체크할 때 사용합니다

101-module.html

201-config.html

201-config.js

301-submodule.js

자신의 id로 다음 노드를 실행하는 이벤트를 생성합니다.

301-submodule.html

submodule 이름을 설정할 수 있습니다. 에디터를 열 때 작성한 설명을 가져옵니다. submodule에 대한 설명을 작성할 수 있습니다.

401-module-manage-tool.html

401-module-manage-tool.js

현재 탭의 모듈들을 한눈에 확인할 수 있는 모달 창을 생성합니다. 각 모듈에 대한 설명을 확인할 수 있습니다. 각 모듈 이름 옆의 나침반 아이콘을 클릭하면 해당 모듈의 module-in 노드의 위치를 확인할 수 있습니다.

501-global-module-manage-tool.html

501-global-module-manage-tool.js

로컬에 저장된 모듈의 목록과 설명을 확인할 수 있습니다. 각 모듈을 드래그앤드롭으로 nodeRED 작업공간에 import 할 수 있습니다.