Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly - Pushover & Attachment

    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

    Blockly - Pushover & Attachment

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

      root@ioBroker-TEST:~# cd /opt/iobroker/
      root@ioBroker-TEST:/opt/iobroker# npm install pushover-notifications
      
      > bufferutil@1.1.0 install /opt/iobroker/node_modules/bufferutil
      > node-gyp rebuild
      
      make: Verzeichnis „/opt/iobroker/node_modules/bufferutil/build“ wird betreten
        CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
      In file included from ../node_modules/nan/nan.h:82:0,
                       from ../src/bufferutil.cc:16:
      ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle<v8::integer>) [with T = v8::Int32; v8::Handle <v8::integer>= v8::Local<v8::integer>]’:
      ../node_modules/nan/nan_new.h:34:64: warning: ‘v8::Local <v8::int32>v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       To<v8::int32>(v8::Handle <v8::integer>i)   { return i->ToInt32(); }
                                                                      ^
      In file included from ../src/bufferutil.cc:7:0:
      /root/.node-gyp/8.11.3/include/node/v8.h:9796:14: note: declared here
       Local <int32>Value::ToInt32() const {
                    ^~~~~
      In file included from ../node_modules/nan/nan.h:82:0,
                       from ../src/bufferutil.cc:16:
      ../node_modules/nan/nan_new.h: In function ‘v8::Local NanIntern::To(v8::Handle<v8::integer>) [with T = v8::Uint32; v8::Handle <v8::integer>= v8::Local<v8::integer>]’:
      ../node_modules/nan/nan_new.h:39:65: warning: ‘v8::Local <v8::uint32>v8::Value::ToUint32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
       To<v8::uint32>(v8::Handle <v8::integer>i)  { return i->ToUint32(); }
                                                                       ^
      In file included from ../src/bufferutil.cc:7:0:
      /root/.node-gyp/8.11.3/include/node/v8.h:9790:15: note: declared here
       Local <uint32>Value::ToUint32() const {
                     ^~~~~
      In file included from ../node_modules/nan/nan_new.h:189:0,
                       from ../node_modules/nan/nan.h:82,
                       from ../src/bufferutil.cc:16:
      ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::booleanobject>::return_t NanIntern::Factory<v8::booleanobject>::New(bool)’:
      ../node_modules/nan/nan_implementation_12_inl.h:49:38: warning: ‘static v8::Local <v8::value>v8::BooleanObject::New(bool)’ is deprecated: Pass an isolate [-Wdeprecated-declarations]
         return v8::BooleanObject::New(value).As<v8::booleanobject>();
                                            ^
      In file included from /root/.node-gyp/8.11.3/include/node/v8.h:26:0,
                       from ../src/bufferutil.cc:7:
      /root/.node-gyp/8.11.3/include/node/v8.h:4845:56: note: declared here
         V8_DEPRECATED("Pass an isolate", static Local <value>New(bool value));
                                                              ^
      /root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      In file included from ../node_modules/nan/nan_new.h:189:0,
                       from ../node_modules/nan/nan.h:82,
                       from ../src/bufferutil.cc:16:
      ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::script>::return_t NanIntern::Factory<v8::script>::New(v8::Local<v8::string>)’:
      ../node_modules/nan/nan_implementation_12_inl.h:166:69: warning: ‘static v8::Local <v8::script>v8::ScriptCompiler::Compile(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
                                                                           ^
      In file included from /root/.node-gyp/8.11.3/include/node/v8.h:26:0,
                       from ../src/bufferutil.cc:7:
      /root/.node-gyp/8.11.3/include/node/v8.h:1425:21: note: declared here
             Local</v8::script></v8::string></v8::script></v8::script></value></v8::booleanobject></v8::value></v8::booleanobject></v8::booleanobject></uint32></v8::integer></v8::uint32></v8::uint32></v8::integer></v8::integer></v8::integer></int32></v8::integer></v8::int32></v8::int32></v8::integer></v8::integer></v8::integer> 
      
      1 Reply Last reply Reply Quote 0
      • Dutchman
        Dutchman Developer Most Active Administrators last edited by

        Geht doch Installation gelungen welche Version steht jetzt bei deinen Adaptern ?

        Sent from my iPhone using Tapatalk

        1 Reply Last reply Reply Quote 0
        • R
          Rambo79 last edited by

          Hab den selben Fehler gemacht. War auch nicht ioB Verzeichnis

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

            3467_pushover.jpg

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

              Sieht soweit OK aus

              Sent from my iPhone using Tapatalk

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

                3467_pushover.jpg

                Leider nichts bzgl. Anhang zu erkennen

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

                  System Neustart könnte auch Mal helfen nach Al dem gefummel und Browser + Cache refresh

                  Sent from my iPhone using Tapatalk

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

                    @Dutchman:

                    System Neustart könnte auch Mal helfen nach Al dem gefummel und Browser + Cache refresh

                    Sent from my iPhone using Tapatalk `

                    ioBroker und Browser neu gestartet, leider keine Verbesserung

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

                      Mit Shift F5 Browser refresh UND cahe gelöscht ?

                      Sent from my iPhone using Tapatalk

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

                        @Dutchman:

                        Mit Shift F5 Browser refresh UND cahe gelöscht ?

                        Sent from my iPhone using Tapatalk `

                        Hat auch keinen Erfolg gebracht.

                        Was mich auf jeden Fall wundert, ist die Version, die angezeigt.

                        Per Console uwrde ja Version 1.2.0 installiert.

                        In der Adapter-Übersicht steht aber immer noch Version 1.1.0

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

                          Hmm dann ist doch die ältere Version installiert.

                          Also nochmal per github installieren und dann den Upload Befehl und nicht aus npm (da ist die neuere Version noch nicht bekannt)

                          Sent from my iPhone using Tapatalk

                          1 Reply Last reply Reply Quote 0
                          • FredF
                            FredF Most Active Forum Testing last edited by

                            @Kev0:

                            Issues würden geschlossen und gemerged, sollte jetzt gehen:

                            https://github.com/qbit/node-pushover/b … /README.md

                            Wer ist so nett und adaptiert die blockly Variante? :oops:

                            Grüße

                            Kevin ` Diese Repo hat doch nichts mit iobroker zu tun…

                            Gesendet von meinem HUAWEI VNS-L31 mit Tapatalk

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

                              @FredF:

                              Diese Repo hat doch nichts mit iobroker zu tun… `

                              Genau. Der Pushover-Adapter 1.1.0 des ioBroker ist etwas anderes, als die npm-Version 1.2.0 der pushover-notifications. Ich befürchte, dass auch die Version 1.1.0 des Pushover-Adapters leider noch nicht mit Attachments umgehen kann.

                              Würde mich aber auch sehr freuen, wenn das bald mal ginge, damit ich meine mit dem phantomjs-Adapter erstellten Screenshots per Pushover verschicken kann.

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

                                Ist dazu bereits ein issue erstellt für den ioBroker pushover Adapter?

                                Sent from my iPhone using Tapatalk

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

                                  Ja, darum habe ich ja gefragt ob jemand das dort implementieren kann.

                                  https://github.com/ioBroker/ioBroker.pushover/issues/5

                                  Ist mir schon klar gewesen das die zuvor genannte Repo nicht für iobroker war…

                                  SebastianSchultz created this issue in ioBroker/ioBroker.pushover

                                  closed Implement usage of attachments #5

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

                                    Dachte mir bereits dass wir hier von 2 verschiedenen Sachen reden.

                                    Vor 1nem Monat wurde die dependency gelöst im pushover npm Paket, ich habe das in git verlinkt nöste Frage ist wann der Entwickler Zeit hat sich die an zu nehmen 😉

                                    Sent from my iPhone using Tapatalk

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

                                      Hängt die Änderung in Blockly direkt mit der Änderung des Pushover-Adapters zusammen? Evtl. könnte man das ja getrennt voneinander machen. Im Pushover-Adapter müsste man ja theoretisch nur das aktuelle npm-Repository von pushover-notifications einbinden, oder? Dann könnten zumindest schon mal die mit Attachments arbeiten, die den Pushover-Adapter direkt per Javaskript aufrufen.

                                      Oder geht das sogar schon direkt durch Aufruf von

                                      npm install pushover-notifications
                                      

                                      Gruß,

                                      Thorsten

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

                                        Hängt miteinander zusammen

                                        Sent from my iPhone using Tapatalk

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

                                          Also ohne Blockly funktioniert es auf jeden Fall schon mal mit der Version 1.2.0 von pushover-notifications.

                                          Hier die Ausgabe auf dem iPhone:
                                          996_pushover_iphone.png
                                          Und hier die Ausgabe auf der Watch:
                                          996_pushover_watch.png

                                          Hier das zugehörige Javaskript:

                                          sendTo("pushover", {
                                            message: 'Dies ist eine Test-Nachricht', // mandatory - your text message
                                            title: 'ioBroker', // optional - your message's title, otherwise your app's name is used
                                            sound: 'magic', // optional - the name of one of the sounds supported by device clients to override the user's default sound choice
                                                            // pushover, bike, bugle, cashregister, classical, cosmic, falling,
                                                            // gamelan, incoming, intermission, magic, mechanical, pianobar, siren,
                                                            // spacealarm, tugboat, alien, climb, persistent, echo, updown, none
                                            priority: 0, // optional (-2, -1, 0, 1, 2)
                                                            // -2 to always send as a quiet notification,
                                                            // 1 to display as high-priority and bypass the user's quiet hours, or
                                                            // 2 to also require confirmation from the user
                                            file: '/opt/iobroker/phantomjs_images/Gasverbrauch.png', // optional - attachment
                                            //token: 'API/KEY token', // optional - add other than configurated token to the call
                                            //url: , // optional - a supplementary URL to show with your message
                                            //url_title: , // optional - a title for your supplementary URL, otherwise just the URL is shown
                                            //device: , // optional - your user's device name to send the message directly to that device, rather than all of the user's devices
                                            //timestamp // optional - a Unix timestamp of your message's date and time to display to the user, rather than the time your message is received by our API
                                          });
                                          

                                          Der Pfad für die angehängte PNG-Datei ist natürlich an meine Docker-Installation angepasst.

                                          T 1 Reply Last reply Reply Quote 0
                                          • Dutchman
                                            Dutchman Developer Most Active Administrators last edited by

                                            Update das bitte Mal im gut issue Holz den Entwickler auch 🙂

                                            Sent from my iPhone using Tapatalk

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            431
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            9
                                            45
                                            5479
                                            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