Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Suche anwesensheits skript

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Suche anwesensheits skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      denjo @Albert K last edited by

      @Albert-K alles gemacht

      Albert K 1 Reply Last reply Reply Quote 0
      • Albert K
        Albert K @denjo last edited by

        @denjo

        was zeigt ein ping auf die Fritzbox?

        D 1 Reply Last reply Reply Quote 0
        • D
          denjo @Albert K last edited by

          @Albert-K ich habe aber immer voll die sachen da stehen wenn ich ein adapter neu installiere

          $ ./iobroker url "https://github.com/iobroker-community-adapters/ioBroker.tr-064/tarball/master" tr-064
          install https://github.com/iobroker-community-adapters/ioBroker.tr-064/tarball/master
          NPM version: 6.14.8npm install https://github.com/iobroker-community-adapters/ioBroker.tr-064/tarball/master --loglevel error --prefix "/opt/iobroker" (System call)
          ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);                                                                                       ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1026:46: note: declared here   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(                                              ^~~~~~~~~~~~
          ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);                                                                                       ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1026:46: note: declared here   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(                                              ^~~~~~~~~~~~../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:../authenticate_pam.cc:147:83: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]   Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked());                                                                                   ^In file included from /home/iobroker/.cache/node-gyp/12.20.0/include/node/v8-internal.h:14,                 from /home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:27,                 from /home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:67,                 from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:3553:51: note: declared here   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));                                                   ^~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’    serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1);                                                                     ^In file included from /home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:67,                 from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,       ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]   res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked());                                                                     ^In file included from /home/iobroker/.cache/node-gyp/12.20.0/include/node/v8-internal.h:14,                 from /home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:27,                 from /home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:67,                 from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:3553:51: note: declared here   V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));                                                   ^~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’   declarator __attribute__((deprecated(message)))   ^~~~~~~~~~../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’    remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1);                                                                  ^In file included from /home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:67,                 from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,       ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’  username->WriteUtf8(m->username, sizeof(m->username) - 1);                                                          ^In file included from /home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:67,                 from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,       ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’  password->WriteUtf8(m->password, sizeof(m->password) - 1);                                                          ^In file included from /home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:67,                 from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,       ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc: At global scope:../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) {           ^~~~~~../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
          ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) {           ^~~~~~           rand_r../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> exports) {                        ^../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) {                          ^~~~~~~In file included from ../../nan/nan.h:56,                 from ../authenticate_pam.cc:23:../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init);                               ^~~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:737:36: note: in definition of macro ‘NODE_MODULE_X’       (node::addon_register_func) (regfunc),                          \                                    ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init);                               ^~~~/home/iobroker/.cache/node-gyp/12.20.0/include/node/node.h:737:36: note: in definition of macro ‘NODE_MODULE_X’       (node::addon_register_func) (regfunc),                          \                                    ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~
          make: *** [authenticate_pam.target.mk:109: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
          gyp
           ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack     at ChildProcess.emit (events.js:314:20)gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)gyp ERR! System Linux 5.4.72-v7l+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pamgyp ERR! node -v v12.20.0gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok 
          upload [12] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/words.js words.js application/javascript
          upload [11] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/tr-064.png tr-064.png image/png
          upload [10] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/index_m.html index_m.html text/html
          upload [9] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
          upload [8] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
          upload [7] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
          upload [6] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
          upload [5] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
          upload [4] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/it/translations.json i18n/it/translations.json application/json
          upload [3] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
          upload [2] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/es/translations.json i18n/es/translations.json application/json
          upload [1] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/en/translations.json i18n/en/translations.json application/json
          upload [0] tr-064.admin /opt/iobroker/node_modules/iobroker.tr-064/admin/i18n/de/translations.json i18n/de/translations.json application/json
          process exited with code 0
          
          1 Reply Last reply Reply Quote 0
          • D
            denjo @Albert K last edited by

            @Albert-K hier damit ihr mir das glaubt, ich komme mir langsam blöd vor
            08-12-_2020_12-44-38.png 08-12-_2020_12-44-12.png

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @denjo last edited by Thomas Braun

              @denjo
              "Voll die Sachen da stehen" könnte auf krumme Installation von nodeJS hindeuten.

              Ausgabe von

              which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
              

              mal zeigen. Ein- und Ausgabe, nix kürzen.

              J D 2 Replies Last reply Reply Quote 0
              • J
                Jan1 @Thomas Braun last edited by

                @Thomas-Braun
                Sieht schwer danach aus da ein rebuild erwähnt wird.

                1 Reply Last reply Reply Quote 0
                • D
                  denjo @Thomas Braun last edited by

                  @Thomas-Braun sagte in Suche anwesensheits skript:

                  which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs

                  Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l
                  
                  The programs included with the Debian GNU/Linux system are free software;
                  the exact distribution terms for each program are described in the
                  individual files in /usr/share/doc/*/copyright.
                  
                  Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                  permitted by applicable law.
                  Last login: Tue Dec  8 12:25:29 2020 from 192.168.178.121
                  pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                  /usr/bin/nodejs
                  v12.20.0
                  /usr/bin/node
                  v12.20.0
                  /usr/bin/npm
                  6.14.8
                  nodejs:
                    Installiert:           12.20.0-1nodesource1
                    Installationskandidat: 12.20.0-1nodesource1
                    Versionstabelle:
                   *** 12.20.0-1nodesource1 500
                          500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                          100 /var/lib/dpkg/status
                       10.21.0~dfsg-1~deb10u1+rpi1 500
                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                  pi@raspberrypi:~ $
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @denjo last edited by

                    @denjo
                    Gut, das passt.

                    apt policy build-essential
                    
                    D 1 Reply Last reply Reply Quote 0
                    • D
                      denjo @Thomas Braun last edited by

                      @Thomas-Braun

                      pi@raspberrypi:~ $ apt policy build-essential
                      build-essential:
                        Installiert:           12.6
                        Installationskandidat: 12.6
                        Versionstabelle:
                       *** 12.6 500
                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                              100 /var/lib/dpkg/status
                      pi@raspberrypi:~ $
                      
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @denjo last edited by

                        @denjo

                        apt policy libpam0g-dev
                        
                        D 1 Reply Last reply Reply Quote 0
                        • D
                          denjo @Thomas Braun last edited by

                          @Thomas-Braun

                          pi@raspberrypi:~ $ apt policy libpam0g-dev
                          libpam0g-dev:
                            Installiert:           1.3.1-5+rpt2
                            Installationskandidat: 1.3.1-5+rpt2
                            Versionstabelle:
                           *** 1.3.1-5+rpt2 500
                                  500 http://archive.raspberrypi.org/debian buster/main armhf Packages
                                  100 /var/lib/dpkg/status
                               1.3.1-5 500
                                  500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                          pi@raspberrypi:~ $
                          
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @denjo last edited by

                            @denjo
                            Das passt soweit. Ich würde den Adapter allerdings nicht aus git ziehen, sondern aus dem Verwahrort 'default/stable'

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              denjo @Thomas Braun last edited by

                              @Thomas-Braun also ganz normal über adapter meinst du???

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @denjo last edited by

                                @denjo Ja, ganz normal aus der Liste der Adapter.

                                latest:	4.2.1 for 24 days
                                stable:	4.2.1 for 24 days
                                
                                D 4 Replies Last reply Reply Quote 0
                                • D
                                  denjo @Thomas Braun last edited by

                                  @Thomas-Braun mache ich gerade

                                  am anfang habe ich imer ein error stehen ist das normal

                                  $ ./iobroker add tr-064  --host raspberrypi
                                  NPM version: 6.14.8
                                  npm install iobroker.tr-064@4.2.1 --loglevel error --prefix "/opt/iobroker" (System call)
                                  
                                  J 1 Reply Last reply Reply Quote 0
                                  • D
                                    denjo @Thomas Braun last edited by

                                    @Thomas-Braun so adapter ist wieder da und die objekte trotzdem dauert das leider ewigkeiten bis er erkennt das jemand false ist

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      denjo @Thomas Braun last edited by

                                      @Thomas-Braun und jetzt war ich ca für 1 sekunde falso dann wieder true sofort wobei ich nix geändert habe. echt komisch alles

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        Jan1 @denjo last edited by Jan1

                                        @denjo sagte in Suche anwesensheits skript:

                                        npm install iobroker.tr-064@4.2.1 --loglevel error --prefix "/opt/iobroker" (System call)

                                        Das Loglevel ist auf error gestellt, also nur ne Info für Dich wie der geloggt wird, mehr ist das nicht 😉

                                        Was läuft denn für ne FW auf der Fritz? Da gabs mal eine, die nervig bei der WLAN Geschichte war.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          denjo @Jan1 last edited by

                                          @Jan1 7.21 und ich bin immer noch true wobei ich seit 10 min kein wlan an habe.
                                          und in der fritzbox steht das

                                          08-12-_2020_13-34-52.png

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            Jan1 @denjo last edited by

                                            @denjo
                                            Ich bin gerade nicht zu Hause, aber in den Einstellungen des TR-064 gibts eine Option, die die Erkennung anders realisiert. Hast die angehakt?
                                            7.21 ist doch ne Labor oder? Wenn schon Labor, dann wäre 7.24 aktuell.

                                            Falls es mit dem TR-064 nicht klappt, versuchs mal mit dem Radar2, der macht das etwas anders und bei der Erkennung etwas schneller.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            722
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            111
                                            5477
                                            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