Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JS request Modul installieren

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    JS request Modul installieren

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

      Das hier benutze ich zum Testen

      const request = require('request');
      
      request.head('http://www.google.com', (err, res) => {
        console.log(res);
      });
      

      ('request') ist dort immer unterstrichen und beim Mouseover wird "Cannot find Module 'request' angezeigt.

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

        @AkiraFFM:

        ('request') ist dort immer unterstrichen und beim Mouseover wird "Cannot find Module 'request' angezeigt.

        Diese Hinweise des Parsers sollte man nicht überbewerten.

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

          Welche javascript Version?

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

            Habe auch das Problem mit dem Mouseover. Habe Javascript 4.0.12. Wie kann es sein das der Parser das trotzdem anmeckert?

            1 Reply Last reply Reply Quote 0
            • M
              massa last edited by

              Ich habe ganz plötzlich das gleiche Problem... Hat jemand eine Lösung für das Problem gefunden?
              Ich hatte letzte Woche das node-ssh Modul zusätzlich eingebunden was auch erst funktionierte. Aber ein Tag später hat er das Modul nicht mehr gefunden, obwohl vorhanden! Habe keine Änderungen vorgenommen...
              Das request Modul findet er auch nicht mehr.

              Hat da jemand eine Idee?

              AlCalzone paul53 2 Replies Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer @massa last edited by

                @massa Welche Adapter-Version hast du?

                1 Reply Last reply Reply Quote 0
                • M
                  massa last edited by

                  Habe Version 4.3.3 installiert!
                  Raspberry:
                  Bildschirmfoto 2019-12-01 um 16.50.59.png

                  1 Reply Last reply Reply Quote 0
                  • paul53
                    paul53 @massa last edited by

                    @massa sagte:

                    Das request Modul findet er auch nicht mehr.
                    Hat da jemand eine Idee?

                    Das request Modul muss nicht angefordert werden, denn dafür gibt es im JS-Adapter eine Variable request.
                    Funktioniert node-ssh nicht ?

                    1 Reply Last reply Reply Quote 0
                    • M
                      massa last edited by

                      Ich habe nur das node-ssh Modul in den Settings angegeben!
                      Das seltsame ist ja, dass erst alles normal funktioniert hat und jetzt findet er nicht mal das inkludierte request Modul...
                      Bildschirmfoto 2019-12-01 um 17.17.49.png

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @massa last edited by paul53

                        @massa sagte:

                        jetzt findet er nicht mal das inkludierte request Modul...

                        Ignoriere die Meldung "Cannot find module ...". Bei mir wird fehlendes Modul "suncalc" angemeckert, obwohl es einwandfrei funktioniert.

                        1 Reply Last reply Reply Quote 0
                        • M
                          massa last edited by

                          Werde es morgen mal austesten! Node-ssh hatte zumindest nicht mehr funktioniert, aber das request Modul würde mir theoretisch auch reichen!
                          Besten Dank schon mal 🙂

                          AlCalzone 1 Reply Last reply Reply Quote 0
                          • AlCalzone
                            AlCalzone Developer @massa last edited by

                            @massa Auch require("request") ist nicht nötig, da die Variable request bereits in allen Skripten standardmäßig verfügbar ist.

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            651
                            Online

                            31.8k
                            Users

                            80.0k
                            Topics

                            1.3m
                            Posts

                            6
                            14
                            1467
                            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