코딩정보


● HA작업) Node-RED 설치 하기,, 실행 안됨 에서 npm 정상화 연결후 reboot 후 정상


  • 링크


  • 컨텐츠 정보


    본문

    ● HA작업) Node-RED 설치 하기,, 실행 안됨 에서 npm 정상화  연결후  reboot 후  정상

    https://iotmaker.kr/iotbook-install-node-red-add-on/


    애드온 > 애드온스토어 > 검색 > node-red  설치
    3232235521_1684064058.9068.png






















    애드온> 애드온스토어(하단) >검색 Node-RED 


    3232235521_1683612626.1633.png















    설치 > 시작하기전에  >>> 구성 설정

    3232235521_1683612644.5317.png


    공유기 포트 포워드 설정

    3232235521_1683613407.7357.png



    3232235521_1683616330.8652.png

    3232235521_1683616318.3545.png

    log파일 에러내용


    (56/72) Installing v4l-utils-libs (1.22.1-r2)
    (57/72) Installing libxext (1.3.5-r0)
    (58/72) Installing libxfixes (6.0.0-r0)
    (59/72) Installing wayland-libs-client (1.21.0-r1)
    (60/72) Installing libva (2.16.0-r0)
    (61/72) Installing libvdpau (1.5-r0)
    (62/72) Installing vidstab (1.1.0-r2)
    (63/72) Installing libvpx (1.12.0-r1)
    (64/72) Installing libwebp (1.2.4-r1)
    (65/72) Installing x264-libs (0.164_git20220602-r0)
    (66/72) Installing numactl (2.0.16-r1)
    (67/72) Installing x265-libs (3.5-r3)
    (68/72) Installing xvidcore (1.3.7-r1)
    (69/72) Installing libsodium (1.0.18-r2)
    (70/72) Installing libzmq (4.3.4-r1)
    (71/72) Installing ffmpeg-libs (5.1.3-r0)
    (72/72) Installing ffmpeg (5.1.3-r0)
    Executing busybox-1.35.0-r29.trigger
    OK: 213 MiB in 116 packages
    [16:06:15] INFO: Starting installation of custom NPM/Node-RED packages...
    npm WARN config optional Use `--omit=optional` to exclude optional dependencies, or
    npm WARN config `--include=optional` to include them.
    npm WARN config 
    npm WARN config     Default value does install optional deps unless otherwise omitted.
    npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
    up to date, audited 683 packages in 10s
    90 packages are looking for funding
      run `npm fund` for details
    12 vulnerabilities (4 low, 7 moderate, 1 high)
    To address issues that do not require attention, run:
      npm audit fix
    To address all issues possible (including breaking changes), run:
      npm audit fix --force
    Some issues need review, and may require choosing
    a different dependency.
    Run `npm audit` for details.
    This is a test
    So is this...
    s6-rc: info: service init-customizations successfully started
    s6-rc: info: service init-nodered: starting
    up to date, audited 1 package in 138ms
    found 0 vulnerabilities
    s6-rc: info: service init-nodered successfully started
    s6-rc: info: service nodered: starting
    s6-rc: info: service nodered successfully started
    s6-rc: info: service nginx: starting
    [16:06:27] INFO: Starting Node-RED...
    s6-rc: info: service nginx successfully started
    s6-rc: info: service legacy-services: starting
    s6-rc: info: service legacy-services successfully started
    > start
    > node $NODE_OPTIONS node_modules/node-red/red.js --settings /etc/node-red/config.js
    9 May 16:06:29 - [info] 
    Welcome to Node-RED
    ===================
    9 May 16:06:29 - [info] Node-RED version: v3.0.2
    9 May 16:06:29 - [info] Node.js  version: v18.14.2
    9 May 16:06:29 - [info] Linux 6.1.25 x64 LE
    9 May 16:06:30 - [info] Loading palette nodes
    9 May 16:06:32 - [info] Dashboard version 3.4.0 started at /endpoint/ui
    9 May 16:06:33 - [info] Settings file  : /etc/node-red/config.js
    9 May 16:06:33 - [info] Context store  : 'default' [module=memory]
    9 May 16:06:33 - [info] User directory : /config/node-red/
    9 May 16:06:33 - [warn] Projects disabled : editorTheme.projects.enabled=false
    9 May 16:06:33 - [info] Flows file     : /config/node-red/flows.json
    9 May 16:06:33 - [warn] Encrypted credentials not found
    9 May 16:06:33 - [info] Server now running at http://127.0.0.1:46836/
    9 May 16:06:33 - [info] Starting flows
    9 May 16:06:33 - [info] Started flows
    [16:06:33] INFO: Starting NGinx...
    9 May 16:06:38 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:06:38 - [info] [server:Home Assistant] Connected to http://supervisor/core
    9 May 16:12:50 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
    9 May 16:12:50 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
    9 May 16:12:55 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:00 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:06 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:11 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:16 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:21 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:26 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:31 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:36 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:41 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:46 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:52 - [info] [server:Home Assistant] Connecting to http://supervisor/core
    9 May 16:13:52 - [info] [server:Home Assistant] Connected to http://supervisor/core

    ========================

    애러 발생

    기본 구성이 

    http://192.168.0.3:81

    https://ha.11q.duckdns.org/nginx_proxy_manager

    http://192.168.0.3:8181


    저의 npm 구성이 

    1)  시놀로지에서  npm 설치 사용 > 정상 동작

      -> 포트 81

       -> 공유기 포트포워드 81 설정

    2)  Home assistant 에서 npm  설치 사용 > 정상 동작 으로 설정 ( 시놀로지 사용에서 중지 > 동시 사용 문제 없는 조건으로 )

      -> 포트 8181 

       -> 공유기 포트포워드 8181 설정


    3)  시놀로지 에서 추가 인증서  서브도메인 bbb.aaa.duckdns.org   동작 조건및 자동복사 조건 

     cp /volume1/docker/npm/etc/letsencrypt/live/npm-2/*.*   /usr/syno/etc/certificate/_archive/1ehwGc/

     ---> 상기  동작 조건및 자동복사 조건 는 인증서 서브 도메인 동작 조건


    4) 시놀로지에서 >> 역방향 포록시 사용 조건은 시놀로지 >  로그인포털 > 고급 역방향 프록시 > 설정 조건
     
    역방향 프록시 설정 >>>  포트 8181  와 사용자머리글에서 websocket 적용

    3232235521_1683641170.0611.png


    3232235521_1683641810.0399.png

    초기 안되어 삭제 재설치 구성 편집 추가  하였 습니다 >>> 재부팅을 전체 reboot로 진행

    configuration.yaml 파일에서


    먹통되어 터미널에서
    reboot
    sudo reboot
    =====================


    정상 동작의 조건
    -> 구성편집 후 >> 기기 전체 재시작 후 진입 성공

    구성 참조 적용


    credential_secret: password
    theme: default
    http_node:
      username: DEVuser
      password: DEVpw
    http_static:
      username: DEVuser
      password: DEVpw
    ssl: true
    certfile: fullchain.pem
    keyfile: privkey.pem
    system_packages:
      - ffmpeg
    npm_packages:
      - node-red-admin
    init_commands:
      - echo 'This is a test'
      - echo 'So is this...'
    dark_mode: false
    require_ssl: false
    port: 1880

    ================

    구성 yaml 편집후  재시작하여  진입 합니다


    3232235521_1683642436.5878.png

    3232235521_1683642467.441.png

    이제  node-red 의 사용조건을 준비합니다.

    또는
    dns로 진입  가능 합니다.


    HAOS에서 설치 방법




    ☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠1.png

    뷰PDF add1,add2



    관련자료

    댓글 1

    11qkr님의 댓글

    최종
    credential_secret: password
    theme: default
    http_node:
      username: DEVuser
      password: DEVpw
    http_static:
      username: DEVuser
      password: DEVpw
    ssl: true
    certfile: fullchain.pem
    keyfile: privkey.pem
    system_packages:
      - ffmpeg
    npm_packages:
      - node-red-admin
    init_commands:
      - echo 'This is a test'
      - echo 'So is this...'
    dark_mode: false
    require_ssl: false
    port: 1880
    =======



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-17 14:04:29

    오늘의 홈 현황


    • 현재 접속자♨ 98 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 6 명
    • 주간 가입자※ 11 명
    • 오늘 방문자 1,006 명
    • 어제 방문자 2,015 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,327,351 명
    • 전체 게시물※ 8,573 개
    • 전체 댓글수※ 24,619 개
    • 전체 회원수 10,971 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑