Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Visual Studio 2015 mit ioBroker

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Visual Studio 2015 mit ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • Bluefox
      Bluefox last edited by

      Habe gerade neue Visual Studio 2015 für Node.JS ausprobiert. Funktioniert wunderbar.
      48_img_002.png
      https://www.visualstudio.com/en-us/feat … js-vs.aspx

      Man muss drauf achten, dass man x86 node.js installiert und nicht x64. Vermutlich geht debuggen mit x64 nicht.

      1 Reply Last reply Reply Quote 0
      • carsten04
        carsten04 Developer last edited by

        Hallo Bluefox,

        ich habe mir jetz auch VS 2015 installiert. Bisher habe ich mich nur mit iobroker-Skripten (zu ccu.io-Zeiten mit Notepad++, jetzt direkt unter iobroker) beschäftigt und möchte jetzt an die Adapterentwicklung heran. Um mit VS Adapter zu entwickeln brauche ich noch einige Tips zum Setup. Was ich hinbekommen habe (war auch nicht sehr schwierig), ist die Installation von VS mit dem node.js-Tool. Wo ich Schwierigkeiten habe, ist das Einbinden von iobroker. Ich habe iobroker auf einem Revo 3610 unter debian laufen. Wenn ich jetzt mit VS entwickeln möchte, muss ich dann alles noch einmal lokal auf meinem VS-Rechner installieren, oder kann ich den Revo 3610 über mein Netzwerk in VS einbinden und welche node.js-Instanz muss ich verwenden (eine lokale, oder die auf dem Revo). Mir sind die Schritte die ich machen muss, auch um vernünftig debuggen zu können, nicht so wirklich klar. Ich bin für jeden Hinweis dankbar.

        Beste Grüße

        Carsten

        1 Reply Last reply Reply Quote 0
        • htrecksler
          htrecksler Forum Testing last edited by

          ich schließe mich dann mal Carsten an. Beim mir ist VS auf einem Windows PC installiert, ioBroker läuft auf einem IntelNuc ebenfalls unter Windows.

          1 Reply Last reply Reply Quote 0
          • carsten04
            carsten04 Developer last edited by

            Ich wollte jetzt erst einmal alles lokal installieren, aber unter win7 scheint das nicht mehr zu gehen. Was habe ich gemacht:

            1. node.js unter win7 installiert -> klappte sofort (habe das msi-Paket welches bei der VS 2015-Installation verlinkt ist genommen -> node.js v0.12.7 und npm v2.11.3)

            2. versucht iobroker zu installieren (nach Anleitung github, also einfach nur: npm install iobroker). Hier hat npm viele Fehler geschmissen und immer wieder python gefordert. Habe dann python 2.7.10 installiert und wieder npm install iobroker ausgeführt. Danach kamen dann nur noch Fehlermeldungen mit denen ich nichts anfangen kann:

            ! ````
            D:\nodejsProjects\iobroker>npm install iobroker

            iobroker@0.5.5 install D:\nodejsProjects\iobroker\node_modules\iobroker
            node lib/setup.js
            ! npm install iobroker.js-controller --production --prefix "D:/nodejsProjects/iobr
            oker"
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.js-controller\node
            _modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferuti
            l
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.js-controller\node
            _modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-val
            idate
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            npm WARN optional dep failed, continuing bufferutil@1.1.0
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.js-controller\node
            _modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_mod
            ules\bufferutil
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            npm WARN optional dep failed, continuing utf-8-validate@1.1.0
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.js-controller\node
            _modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_mod
            ules\utf-8-validate
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            npm WARN optional dep failed, continuing bufferutil@1.1.0
            npm WARN optional dep failed, continuing utf-8-validate@1.1.0
            npm install iobroker.admin --production --prefix "D:/nodejsProjects/iobroker"
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.admin\node_modules
            \socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.admin\node_modules
            \socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            npm WARN optional dep failed, continuing bufferutil@1.1.0
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.admin\node_modules
            \socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modu
            les\ws\node_modules\bufferutil
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            npm WARN optional dep failed, continuing utf-8-validate@1.1.0
            gyp ERR! build error
            gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe fail
            ed with exit code: 1
            gyp ERR! stack at ChildProcess.onExit (D:\nodejs\node_modules\npm\node_modul
            es\node-gyp\lib\build.js:269:23)
            gyp ERR! stack at ChildProcess.emit (events.js:110:17)
            gyp ERR! stack at Process.ChildProcess.handle.onexit (child_process.js:1074
            :12)
            gyp ERR! System Windows_NT 6.1.7601
            gyp ERR! command "node" "D:\nodejs\node_modules\npm\node_modules\node-gyp\
            bin\node-gyp.js" "rebuild"
            gyp ERR! cwd D:\nodejsProjects\iobroker\node_modules\iobroker.admin\node_modules
            \socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modu
            les\ws\node_modules\utf-8-validate
            gyp ERR! node -v v0.12.7
            gyp ERR! node-gyp -v v2.0.1
            gyp ERR! not ok
            npm WARN optional dep failed, continuing bufferutil@1.1.0
            npm WARN optional dep failed, continuing utf-8-validate@1.1.0
            Write "iobroker start" to start the ioBroker
            npm install node-windows --production --prefix "D:\nodejsProjects\iobroker\node

            modules\iobroker\lib/../../../"
            ioBroker service installed. Write "serviceIoBroker start" to start the service a
            nd go to http://localhost:8081 to open the admin UI.
            To see the outputs do not start the service, but write "node node_modules/iobrok
            er.js-controller/controller"
            iobroker@0.5.5 node_modules\iobroker
            └── yargs@1.2.6 (minimist@0.1.0)

            
            Kann mir jemand sagen wie man unter win7 iobroker richtig installiert, oder was ich ändern muss.
            
            Beste Grüße
            
            Carsten
            [115_mainview.txt](/assets/uploads/files/115_mainview.txt)
            1 Reply Last reply Reply Quote 0
            • R
              reiden last edited by

              Hallo carsten04

              Bluefox hat Installationsprogramm für Windows gemacht:

              http://forum.iobroker.org/viewtopic.php?f=17&t=302

              bei mir hat es ohne Probleme auch auf dem MHS-2011 schon vor ein paar Monate funktioniert.

              Gruss reiden

              1 Reply Last reply Reply Quote 0
              • Bluefox
                Bluefox last edited by

                @carsten04:

                Ich wollte jetzt erst einmal alles lokal installieren, aber unter win7 scheint das nicht mehr zu gehen. Was habe ich gemacht:

                1. node.js unter win7 installiert -> klappte sofort (habe das msi-Paket welches bei der VS 2015-Installation verlinkt ist genommen -> node.js v0.12.7 und npm v2.11.3)

                2. versucht iobroker zu installieren (nach Anleitung github, also einfach nur: npm install iobroker). Hier hat npm viele Fehler geschmissen und immer wieder python gefordert. Habe dann python 2.7.10 installiert und wieder npm install iobroker ausgeführt. Danach kamen dann nur noch Fehlermeldungen mit denen ich nichts anfangen kann:

                Kann mir jemand sagen wie man unter win7 iobroker richtig installiert, oder was ich ändern muss.

                Beste Grüße

                Carsten `
                Bei allen Fehlern kommt

                "npm WARN optional dep failed"

                Das heißt es ist nicht schlimm. Das Packet versucht ein Binary zu bauen und falls es nicht geht dann gibt es Fallback-Strategie alles mit JS zu machen.

                Um einen Adapter debuggen zu können muss ioBroker lokal installiert werden. Danach stellt man alles so, damit Adapter läuft. (Ip Adressen, ports…)

                Dann Adapter deaktivieren und in VS2015 mit dem Flag "--force" starten. Adapter muss auch in iobroker/node_modules Verzeichnis liegen (auf der gleiche Ebene wo js-controller ist)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Support us

                ioBroker
                Community Adapters
                Donate

                568
                Online

                31.7k
                Users

                79.8k
                Topics

                1.3m
                Posts

                4
                6
                2963
                Loading More Posts
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes
                Reply
                • Reply as topic
                Log in to reply
                Community
                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                The ioBroker Community 2014-2023
                logo