Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Русский
  3. ioBroker
  4. Визуализация
  5. ioBroker.vis Драйвер
  6. Node-red-vis

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    10
    1
    117

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.4k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

Node-red-vis

Geplant Angeheftet Gesperrt Verschoben ioBroker.vis Драйвер
29 Beiträge 2 Kommentatoren 7.4k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • M Offline
    M Offline
    mike7
    schrieb am zuletzt editiert von
    #1

    Bluefox, спасибо за модуль.

    Но я запутался в 3-х соснах, точнее директориях :) . В NodeRed используются следующие:

    // By default, all user data is stored in the Node-RED install directory. To

    // use a different location, the following property can be used

    //userDir: '/home/nol/.node-red/',

    // By default, the Node-RED UI is available at http://localhost:1880/

    // The following property can be used to specifiy a different root path.

    // If set to false, this is disabled.

    //httpAdminRoot: '/admin',

    // Some nodes, such as HTTP In, can be used to listen for incoming http requests.

    // By default, these are served relative to '/'. The following property

    // can be used to specifiy a different root path. If set to false, this is

    // disabled.

    //httpNodeRoot: '/nodes',

    и еще …

    // When httpAdminRoot is used to move the UI to a different root path, the

    // following property can be used to identify a directory of static content

    // that should be served at http://localhost:1880/.

    //httpStatic: '/home/nol/node-red-dashboard/',

    Как я понимаю, описания view должны сохраняться в userDir, немного исправил код:

    //var settings = require(process.env.NODE_RED_HOME+"/red/red").settings;
    //var base = (settings.get("userDir") || (__dirname + '/../node-red/'));
    var base = RED.settings.userDir || (process.env.NODE_RED_HOME + '/');
    

    UI не должен "висеть" под httpAdminRoot, заменил вызовы httpAdmin на httpNode

    Вроде бы все хорошо, но если установить httpNodeRoot, то появляется ошибка "main/vis-views.json Not exist".

    Выходит, что если установлен httpNodeRoot то в "socket.on('readFile'," _adapter устанавливается в vis.0, а если без httpNodeRoot то vis. Не могу понять почему

    Ну и еще не все элементы грузятся, проскакивает %5C - это '', список чуть позже сформирую

    1 Antwort Letzte Antwort
    0
    • BluefoxB Offline
      BluefoxB Offline
      Bluefox
      schrieb am zuletzt editiert von
      #2

      @mike7:

      Bluefox, спасибо за модуль.

      Но я запутался в 3-х соснах, точнее директориях :) . В NodeRed используются следующие:

      // By default, all user data is stored in the Node-RED install directory. To

      // use a different location, the following property can be used

      //userDir: '/home/nol/.node-red/',

      // By default, the Node-RED UI is available at http://localhost:1880/

      // The following property can be used to specifiy a different root path.

      // If set to false, this is disabled.

      //httpAdminRoot: '/admin',

      // Some nodes, such as HTTP In, can be used to listen for incoming http requests.

      // By default, these are served relative to '/'. The following property

      // can be used to specifiy a different root path. If set to false, this is

      // disabled.

      //httpNodeRoot: '/nodes',

      и еще …

      // When httpAdminRoot is used to move the UI to a different root path, the

      // following property can be used to identify a directory of static content

      // that should be served at http://localhost:1880/.

      //httpStatic: '/home/nol/node-red-dashboard/',

      Как я понимаю, описания view должны сохраняться в userDir, немного исправил код:

      //var settings = require(process.env.NODE_RED_HOME+"/red/red").settings;
      //var base = (settings.get("userDir") || (__dirname + '/../node-red/'));
      var base = RED.settings.userDir || (process.env.NODE_RED_HOME + '/');
      

      UI не должен "висеть" под httpAdminRoot, заменил вызовы httpAdmin на httpNode

      Вроде бы все хорошо, но если установить httpNodeRoot, то появляется ошибка "main/vis-views.json Not exist".

      Выходит, что если установлен httpNodeRoot то в "socket.on('readFile'," _adapter устанавливается в vis.0, а если без httpNodeRoot то vis. Не могу понять почему

      Ну и еще не все элементы грузятся, проскакивает %5C - это '', список чуть позже сформирую `
      Приятно работать с такими людьми. Нашёл ошибку, проинформировал, разобрался, сделал pull request и всё сам.

      Спасибо. :)

      1 Antwort Letzte Antwort
      0
      • M Offline
        M Offline
        mike7
        schrieb am zuletzt editiert von
        #3

        Не все сделал, проблема с httpNodeRoot осталась…

        А за плагин БОЛЬШОЕ спасибо, теперь и "центр управления" нарисую :D

        1 Antwort Letzte Antwort
        0
        • M Offline
          M Offline
          mike7
          schrieb am zuletzt editiert von
          #4

          Bluefox,

          node-red-vis не устанавливается после обновления iobroker.vis до версии 0.2.8

          Ошибка: Cannot find js-controller

          1 Antwort Letzte Antwort
          0
          • BluefoxB Offline
            BluefoxB Offline
            Bluefox
            schrieb am zuletzt editiert von
            #5

            @mike7:

            Bluefox,

            node-red-vis не устанавливается после обновления iobroker.vis до версии 0.2.8

            Ошибка: Cannot find js-controller `
            Ну это просто сообщение. Попозже я его уберу. А так есть новая версия node-red-vis

            1 Antwort Letzte Antwort
            0
            • M Offline
              M Offline
              mike7
              schrieb am zuletzt editiert von
              #6

              @Bluefox:

              Ну это просто сообщение. Попозже я его уберу. А так есть новая версия node-red-vis `
              Ну а пока я не могу его поставить :( , и нет его теперь

              > iobroker.vis@0.2.9 install /home/pi/node-red-data.git/node_modules/node-red-vis/node_modules/iobroker.vis
              > node main.js
              
              Cannot find js-controller
              
              npm ERR! iobroker.vis@0.2.9 install: `node main.js`
              npm ERR! Exit status 10
              npm ERR!
              npm ERR! Failed at the iobroker.vis@0.2.9 install script.
              npm ERR! This is most likely a problem with the iobroker.vis package,
              npm ERR! not with npm itself.
              npm ERR! Tell the author that this fails on your system:
              npm ERR!     node main.js
              npm ERR! You can get their info via:
              npm ERR!     npm owner ls iobroker.vis
              npm ERR! There is likely additional logging output above.
              npm ERR! System Linux 3.18.9-1-ARCH
              npm ERR! command "node" "/usr/sbin/npm" "update" "node-red-vis" "--python=/usr/bin/python2.7"
              npm ERR! cwd /home/pi/node-red-data.git
              npm ERR! node -v v0.10.36
              npm ERR! npm -v 1.4.28
              npm ERR! code ELIFECYCLE
              npm ERR! not ok code 0
              
              1 Antwort Letzte Antwort
              0
              • BluefoxB Offline
                BluefoxB Offline
                Bluefox
                schrieb am zuletzt editiert von
                #7

                @mike7:

                @Bluefox:

                Ну это просто сообщение. Попозже я его уберу. А так есть новая версия node-red-vis `
                Ну а пока я не могу его поставить :( , и нет его теперь

                > iobroker.vis@0.2.9 install /home/pi/node-red-data.git/node_modules/node-red-vis/node_modules/iobroker.vis
                > node main.js
                
                Cannot find js-controller
                
                npm ERR! iobroker.vis@0.2.9 install: `node main.js`
                npm ERR! Exit status 10
                npm ERR!
                npm ERR! Failed at the iobroker.vis@0.2.9 install script.
                npm ERR! This is most likely a problem with the iobroker.vis package,
                npm ERR! not with npm itself.
                npm ERR! Tell the author that this fails on your system:
                npm ERR!     node main.js
                npm ERR! You can get their info via:
                npm ERR!     npm owner ls iobroker.vis
                npm ERR! There is likely additional logging output above.
                npm ERR! System Linux 3.18.9-1-ARCH
                npm ERR! command "node" "/usr/sbin/npm" "update" "node-red-vis" "--python=/usr/bin/python2.7"
                npm ERR! cwd /home/pi/node-red-data.git
                npm ERR! node -v v0.10.36
                npm ERR! npm -v 1.4.28
                npm ERR! code ELIFECYCLE
                npm ERR! not ok code 0
                ```` `  
                

                Спасибо, что попробовал. Исправил:

                V0.2.10

                1 Antwort Letzte Antwort
                0
                • M Offline
                  M Offline
                  mike7
                  schrieb am zuletzt editiert von
                  #8

                  Заработало, спасибо!

                  1 Antwort Letzte Antwort
                  0
                  • M Offline
                    M Offline
                    mike7
                    schrieb am zuletzt editiert von
                    #9

                    Bluefox,

                    решил сделать отображение начальных параметров при загрузке, при получении сообщения vis.control.data обновляю все параметры.

                    Но вот какая штука, если зайти через другой браузер или устройство то никаких сообщений не будет … и обновить не могу

                    Что же такое control.instance?

                    1 Antwort Letzte Antwort
                    0
                    • BluefoxB Offline
                      BluefoxB Offline
                      Bluefox
                      schrieb am zuletzt editiert von
                      #10

                      Это имя инстанции, что бы можно было обновить какой-нибудь конкретный браузер. Например в коридоре. Что бы обновить все инстанции запиши туда FFFFFFFF.

                      1 Antwort Letzte Antwort
                      0
                      • M Offline
                        M Offline
                        mike7
                        schrieb am zuletzt editiert von
                        #11

                        @Bluefox:

                        Это имя инстанции, что бы можно было обновить какой-нибудь конкретный браузер. Например в коридоре. Что бы обновить все инстанции запиши туда FFFFFFFF. `

                        Ну тогда 2 вопроса:

                        Куда записать FFFFFFFF? (У меня Node-RED) в коде on input вызов publishAll

                        Почему сообщения не приходят, если открываешь в другом браузере, устройстве? (если ни разу не открывалось в режиме редактирования)

                        Спасибо
                        671_unbenannt.png
                        671_unbenannt1.png

                        1 Antwort Letzte Antwort
                        0
                        • BluefoxB Offline
                          BluefoxB Offline
                          Bluefox
                          schrieb am zuletzt editiert von
                          #12

                          > Но вот какая штука, если зайти через другой браузер или устройство то никаких сообщений не будет … и обновить не могу
                          В следующей версии (ожидается сегодня) исправлю.

                          Спасибо.

                          1 Antwort Letzte Antwort
                          0
                          • M Offline
                            M Offline
                            mike7
                            schrieb am zuletzt editiert von
                            #13

                            Спасибо,

                            получил "val": "notdefined"

                            Это в "куках" хранится?

                            1 Antwort Letzte Antwort
                            0
                            • BluefoxB Offline
                              BluefoxB Offline
                              Bluefox
                              schrieb am zuletzt editiert von
                              #14

                              ` > Спасибо,

                              получил "val": "notdefined"

                              Это в "куках" хранится? Нет. Обчычно это хранится в local storage > What is HTML Local Storage?

                              With local storage, web applications can store data locally within the user's browser.

                              Before HTML5, application data had to be stored in cookies, included in every server request. Local storage is more secure, and large amounts of data can be stored locally, without affecting website performance.

                              Unlike cookies, the storage limit is far larger (at least 5MB) and information is never transferred to the server.

                              Local storage is per domain. All pages, from one domain, can store and access the same data. `

                              Но именно "notdefined" вообще нигде не хранится. Только если открыть в edit mode, тогда в это значение присвоится что нибудь.

                              Вот думаю не посылать ли User-Agent:

                              Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3
                              
                              1 Antwort Letzte Antwort
                              0
                              • M Offline
                                M Offline
                                mike7
                                schrieb am zuletzt editiert von
                                #15

                                Переставлял все,

                                теперь получаю````
                                main/vis-views.json Not exist

                                1 Antwort Letzte Antwort
                                0
                                • BluefoxB Offline
                                  BluefoxB Offline
                                  Bluefox
                                  schrieb am zuletzt editiert von
                                  #16

                                  Надо посмотреть. Спасибо за репорт.

                                  1 Antwort Letzte Antwort
                                  0
                                  • M Offline
                                    M Offline
                                    mike7
                                    schrieb am zuletzt editiert von
                                    #17

                                    Ошибку выдает функция socket.on('readFile', function (_adapter, fileName, callback), строка 212

                                    должен создаваться новый vis-views.json, но … не создается

                                    PS. восстановил директорию vis с этим файлом, но editor все равно не запускается ни в Firefox, ни в Chrome. Показывает progres bar и все.

                                    1 Antwort Letzte Antwort
                                    0
                                    • BluefoxB Offline
                                      BluefoxB Offline
                                      Bluefox
                                      schrieb am zuletzt editiert von
                                      #18

                                      Вроде починил. Попробуй.

                                      1 Antwort Letzte Antwort
                                      0
                                      • M Offline
                                        M Offline
                                        mike7
                                        schrieb am zuletzt editiert von
                                        #19

                                        Работает, спасибо!

                                        А в metro виджеты с окнами будут? :)

                                        1 Antwort Letzte Antwort
                                        0
                                        • BluefoxB Offline
                                          BluefoxB Offline
                                          Bluefox
                                          schrieb am zuletzt editiert von
                                          #20

                                          А метро виджеты какие-нибудь показываются? Или речь о новых?

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          757

                                          Online

                                          32.5k

                                          Benutzer

                                          81.7k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe