Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Entwicklung
  4. Visual Studio 2015 mit ioBroker

NEWS

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

Visual Studio 2015 mit ioBroker

Scheduled Pinned Locked Moved Entwicklung
6 Posts 4 Posters 3.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BluefoxB Offline
    BluefoxB Offline
    Bluefox
    wrote on last edited by
    #1

    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
    0
    • carsten04C Online
      carsten04C Online
      carsten04
      Developer
      wrote on last edited by
      #2

      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
      0
      • htreckslerH Offline
        htreckslerH Offline
        htrecksler
        Forum Testing
        wrote on last edited by
        #3

        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.

        Gruss Hermann

        ioBroker auf Proxmox (Debian) auf IntelNuc als Produktivsystem

        1 Reply Last reply
        0
        • carsten04C Online
          carsten04C Online
          carsten04
          Developer
          wrote on last edited by
          #4

          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
          0
          • R Offline
            R Offline
            reiden
            wrote on last edited by
            #5

            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
            0
            • BluefoxB Offline
              BluefoxB Offline
              Bluefox
              wrote on last edited by
              #6

              @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
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Support us

              ioBroker
              Community Adapters
              Donate

              367

              Online

              32.4k

              Users

              81.4k

              Topics

              1.3m

              Posts
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              ioBroker Community 2014-2025
              logo
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Unread 0
              • Categories
              • Unreplied
              • Popular
              • GitHub
              • Docu
              • Hilfe