Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Aufruf] fullyBrowser Adapter

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Aufruf] fullyBrowser Adapter

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

      Dann würde ich einfach <20 und >0 abfragen. Wenn der Skript funktioniert sollte der Akku ja nie unter 15 kommen (eigentlich nie unter 20)

      (20% Akkustand hab ich als Untergrenze angenommen)

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

        Nö, das scheint irgendwas am Abfrageintervall zu sein.

        Wenn ich direkt den Wert abfrage:

        ! ````
        var request = require('request');
        var link = "http://192.168.XXX.XXX:2323/?cmd=deviceInfo&type=json&password=XXX";
        var state = "javascript.0.Allgemein.Akku_Tablet"/Akku_Tablet/;
        ! function fully() {
        request(link, function(error,response, body) {
        if(error) log('Fehler request: ' + error, 'error');
        else {
        objects = JSON.parse(body);
        bat = objects.batteryLevel;
        setState(state, bat);
        log ("batteryLevel = " + bat);
        }
        });
        }
        ! fully();
        schedule('*/10 * * * *', fully);

        
        Und den dann zum Laden verwende:
        
        >! ````
        const idBatt = 'javascript.0.Allgemein.Akku_Tablet'; // Batterielevel in %
        const idPlug = 'sonoff.0.Ladestecker.POWER'; // Ladegerät ein
        const idVis = 'Vis.Batterieanzeige'; // Für Vis
        >! createState(idVis, 0, {
        type: 'number',
        min: 0,
        max: 7,
        role: 'level',
        states: {
        0: 'leer',
        1: '20 %',
        2: '40 %',
        3: '60 %',
        4: '80 %',
        5: 'voll',
        6: 'Ladegerät'
        } 
        });
        >! var level = getState(idBatt).val;
        var plug = getState(idPlug).val;
        >! function batt() {
        var state = 5; // full 80 %
        if(level <= 79) state = 4; // 79 %
        if(level <= 60) state = 3; // 60 %
        if(level <= 40) state = 2; // 40 %
        if(level <= 30) state = 1; // 20 %
        if(level <= 22) state = 0; // empty 20 %
        if(plug) state = 6; // Ladegerät ein
        setState(idVis, state, true);
        if(level >= 80 && plug) setState(idPlug, false);
        if(level <= 30 && !plug) setState(idPlug, true);
        }
        >! batt(); // Skriptstart
        >! on(idBatt, function(dp) {
        level = dp.state.val;
        batt();
        });
        >! on(idPlug, function(dp) {
        plug = dp.state.val;
        batt();
        });
        

        habe ich den Effekt nicht.

        Also aus Fully scheint der Wert korrekt zu kommen ohne Schwankungen.

        Der Ladestecker ist direkt in meinem Büro. So konnte ich das Schalten deutlich hören. Ich habe zwar keine Fehlersuche gemacht, aber als ich aus einem anderen Grund das Script nicht mehr zum Laden verwendet habe war das Schalten plötzlich wieder weg.

        1 Reply Last reply Reply Quote 0
        • T
          tempestas last edited by

          @Georgius:

          Dann würde ich einfach <20 und >0 abfragen. Wenn der Skript funktioniert sollte der Akku ja nie unter 15 kommen (eigentlich nie unter 20)

          (20% Akkustand hab ich als Untergrenze angenommen) `

          Hallo,

          "null" ist nicht als Wert der Zahl 0 gemeint sondern als 'Null' in JavaScript. 'Null' is a keyword in JavaScript that signifies 'no value' or nonexistence of any value.

          1 Reply Last reply Reply Quote 0
          • S
            Seb0304 last edited by

            Hallo,

            bei mir fällt der Wert auch immer auf Null, die Aktualisierung( bei mir 1 Minute) funktioniert.

            Ich kopiere mir jetzt den Wert bei Aktualisierung in einen anderen Datenpunkt, dort bleibt er auf dem alten Wert stehen.

            Den neuen Datenpunkt benutze ich für die Akkuanzeige auf dem VIS und für die Batterieladung.

            Gruß Sebastian
            16431_level.jpg
            16431_1.png
            16431_2.png

            1 Reply Last reply Reply Quote 0
            • T
              tempestas last edited by

              ja, genau den Workaround habe ich auch erstmal gewählt.

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

                Das sollte so aber ja nicht die Lösung sein!

                Würde den Adapter schon gerne nutzen ohne irgendwelche extra datenpunkte und so.

                1 Reply Last reply Reply Quote 0
                • arteck
                  arteck Developer Most Active last edited by

                  installiert mal bitte von GIt

                  https://github.com/arteck/iobroker.fullybrowser.git

                  ich hab den Fehler glaube ich gefunden

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

                    Ich habe es mal schnell installiert. Aber momentan noch "im Leerlauf" weil ich erst am Wochenende dazu komme das genauer zu protokollieren.

                    Bisher beobachte ich vorweg ob irgendwelche seltsamen Effekte auftauchen.

                    1 Reply Last reply Reply Quote 0
                    • arteck
                      arteck Developer Most Active last edited by

                      OK

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

                        So wie es auf den ersten Blick aussieht läuft es jetzt mit dem Batterystatus.

                        Ich beobachte das mal weiter.

                        Gruss

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

                          Hier das gleiche - habe auch die Version aus dem Git - bin gerade dabei die Batterie herunter zu fahren - mal sehen was passiert. Bis jetzt sieht es gut aus.

                          Eine andere Frage am Rande. Ich verwende das FireHD10 von Amazon als SmartHome Tablet. Nach der Bewegungserkennung geht nicht das VIS als erstes auf, sondern der blöde Amazon Sperrbildschirm den ich immer erst weg wischen muss. Gibt es evtl. eine Lösung das man direkt auf der Fully Oberfläche mit dem VIS landet?

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

                            @arteck:

                            installiert mal bitte von GIt

                            https://github.com/arteck/iobroker.fullybrowser.git

                            ich hab den Fehler glaube ich gefunden `
                            Hallo arteck, Respekt und Dank, funktioniert einwandfrei!

                            Vorher:
                            488_fullybrowser_batterylevel_sql.jpg

                            Nachher:
                            488_fullybrowser_0.0.9_batterylevel_sql.jpg

                            Somit kann ich meinen workaround wieder "auf sauber" umarbeiten!
                            488_fullybrowser_batterylevel_script_alt.jpg

                            LG aus Wien

                            mxa

                            1 Reply Last reply Reply Quote 0
                            • arteck
                              arteck Developer Most Active last edited by

                              @JB_Sullivan:

                              Hier das gleiche - habe auch die Version aus dem Git - bin gerade dabei die Batterie herunter zu fahren - mal sehen was passiert. Bis jetzt sieht es gut aus.

                              Eine andere Frage am Rande. Ich verwende das FireHD10 von Amazon als SmartHome Tablet. Nach der Bewegungserkennung geht nicht das VIS als erstes auf, sondern der blöde Amazon Sperrbildschirm den ich immer erst weg wischen muss. Gibt es evtl. eine Lösung das man direkt auf der Fully Oberfläche mit dem VIS landet? `

                              ich glaube das kannst du mit der Helligkeit auf 0 umgehen.. also nicht ScreenOff sonder Helligkeit auf 0..und bei bewegung wieder auf was weiss ich 200

                              1 Reply Last reply Reply Quote 0
                              • D
                                dos1973 last edited by

                                funktioniert 1a. Danke

                                nur ein Hinweis,

                                keine Ahnung ob es bereits erwähnt wurde.

                                bei mir war Anfangs kein Abfrage Intervall gesetzt, das führte dazu, dass der IoBroker nicht mehr reagiert, sobald der Adapter auf "grün" geht. Wahrscheinlich wird dann im "1ms" Bereich versucht Daten zu lesen/ schreiben. Ein erster Default Wert der Abfragezeit wäre gut.

                                1 Reply Last reply Reply Quote 0
                                • G
                                  Georgius last edited by

                                  Danke, hatte das Problem. Super

                                  1 Reply Last reply Reply Quote 0
                                  • arteck
                                    arteck Developer Most Active last edited by

                                    super danke.. wurde korrigiert

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

                                      Oha!

                                      Die Systembelastung ging schlagartig zurück.

                                      Ich habe den Effekt mit dem nicht reagierenden ioBroker am NUC zwar nicht stark gemerkt, aber jetzt sehe ich den Unterschied deutlich!

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Kueppert last edited by

                                        Hallo zusammen,

                                        ich erhalten beim Update vom fullyBrowser über die Katze immer eine npm-Fehlermeldung:

                                        ! ````
                                        $ ./iobroker url "https://github.com/arteck/ioBroker.fullybrowser/tarball/master" fullybrowser
                                        install https://github.com/arteck/ioBroker.fullybrowser/tarball/master
                                        npm install https://github.com/arteck/ioBroker.fullybrowser/tarball/master --production --save --prefix "/opt/iobroker" (System call)
                                        npm
                                        ERR! path /root/.npm/_logsnpm
                                        ERR! code EACCESnpm ERR! errno -13
                                        npm ERR! syscall
                                        scandir
                                        npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'npm
                                        ERR! at Error (native)npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                                        npm
                                        ERR! at Error (native)npm ERR! stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'\n at Error (native)',
                                        npm

                                        ERR! errno: -13,npm ERR! code: 'EACCES',
                                        npm ERR! syscall: 'scandir',
                                        npm ERR! path: '/root/.npm/_logs' }
                                        npm ERR!
                                        npm ERR! The operation was rejected by your operating system.
                                        npm ERR! It is likely you do not have the permissions to access this file as the current user
                                        npm ERR!
                                        npm ERR! If you believe this might be a permissions issue, please double-check the
                                        npm ERR! permissions of the file and its containing directories, or try running
                                        npm ERR! the command again as root/Administrator (though this is not recommended).
                                        glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
                                        at Error (native)
                                        stack: 'Error: EACCES: permission denied, scandir '/root/.npm/_logs'\n at Error (native)',
                                        errno: -13,
                                        code: 'EACCES',
                                        syscall: 'scandir',
                                        path: '/root/.npm/_logs' }

                                        ! npm ERR! path /root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74fnpm ERR! code EACCES
                                        npm ERR! errno -13
                                        npm ERR! syscall open
                                        npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                                        npm ERR! at Error (native)
                                        npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                                        npm ERR! at Error (native)
                                        npm ERR! cause:
                                        npm ERR! { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'
                                        npm ERR! at Error (native)
                                        npm ERR! errno: -13,
                                        npm ERR! code: 'EACCES',
                                        npm ERR! syscall: 'open',
                                        npm ERR! path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' },
                                        npm ERR! isOperational: true,
                                        npm ERR! stack: 'Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f'\n at Error (native)',
                                        npm ERR! errno: -13,
                                        npm ERR! code: 'EACCES',
                                        npm ERR! syscall: 'open',
                                        npm ERR! path: '/root/.npm/_cacache/index-v5/f6/d3/856f4e146dc3e8cb995652c4d6a1e16806d6bca7e87878fd9046e55ea74f' }
                                        npm ERR!
                                        npm ERR! The operation was rejected by your operating system.
                                        npm ERR! It is likely you do not have the permissions to access this file as the current user
                                        npm ERR!
                                        npm ERR! If you believe this might be a permissions issue, please double-check the
                                        npm ERR! permissions of the file and its containing directories, or try running
                                        npm ERR! the command again as root/Administrator (though this is not recommended).
                                        ! npm
                                        WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                                        npm WARN
                                        optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                        ! npm
                                        WARN optional
                                        SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 (node_modules/@abandonware/bluetooth-hci-socket):
                                        npm
                                        WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-1 preinstall: npm install node-pre-gypnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 243
                                        ! got /opt/iobroker/node_modules/iobroker.fullybrowser/admin
                                        upload [3] fullybrowser.admin /opt/iobroker/node_modules/iobroker.fullybrowser/admin/words.js words.js application/javascript
                                        upload [2] fullybrowser.admin /opt/iobroker/node_modules/iobroker.fullybrowser/admin/index_m.html index_m.html text/html
                                        upload [1] fullybrowser.admin /opt/iobroker/node_modules/iobroker.fullybrowser/admin/index.html index.html text/html
                                        upload [0] fullybrowser.admin /opt/iobroker/node_modules/iobroker.fullybrowser/admin/fully.png fully.png image/png
                                        process exited with code 0

                                        
                                        Mit npm hab ich sonst nie Probleme. Hab auch keinen user - bei mir läuft alles über root (so sollte es zumindest sein). Mir ist bisher auch bei keinem anderen Update/Installation über die Katze diese Fehlermeldung aufgefallen.
                                        
                                        Jemand ne Idee?
                                        
                                        Gemäß Adapter-Übersicht hat das Update auf aktuell 0.0.10 aber geklappt…
                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          Kueppert last edited by

                                          Hi Arti,

                                          womit setzt du / würdest du Helligkeit auf 0 setzen? Über den Adapter geht es ja nicht (bei mir, is nix in den Objekten dazu). Mit dem PAW-Adapter? Den hatte ich jetzt nicht mehr in Nutzung wegen deinem neuen Adapter.

                                          Danke und Grüße, Thorsten

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            hanswurst0815 last edited by

                                            Mahlzeit,

                                            Ich habe den fullybrower Adapter eben das erste mal installiert. Hatte auch eine Fehlermeldung, aber der Adapter taucht trotzdem in der Liste auf.

                                            Ebenfalls v 0.0.10. Aber irgendwie bekomme ich es nicht zum laufen. Also die angelegte Instanz ist im Run, aber ich kann das eingerichtete Tablet nicht steuern. Bekomme auch unter Objekten/Info bei Status einen Error

                                            13438_fullybrowser.jpg

                                            Obwohl die Verbindung zum Tablet ja scheinbar aufgebaut wurde.

                                            Hat jemand eine Idee?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            473
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            fullybrowser fullybrowser adapter
                                            45
                                            289
                                            39680
                                            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