NEWS
Blockly - Pushover & Attachment
-
Logisch, du bist nicht im ioBroker Verzeichnis!
Also erst````
cd /opt/iobrokerSent from my iPhone using Tapatalk
-
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>
-
Geht doch Installation gelungen welche Version steht jetzt bei deinen Adaptern ?
Sent from my iPhone using Tapatalk
-
Hab den selben Fehler gemacht. War auch nicht ioB Verzeichnis
-
-
Sieht soweit OK aus
Sent from my iPhone using Tapatalk
-
Leider nichts bzgl. Anhang zu erkennen
-
System Neustart könnte auch Mal helfen nach Al dem gefummel und Browser + Cache refresh
Sent from my iPhone using Tapatalk
-
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
-
Mit Shift F5 Browser refresh UND cahe gelöscht ?
Sent from my iPhone using Tapatalk
-
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
-
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
-
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
-
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.
-
Ist dazu bereits ein issue erstellt für den ioBroker pushover Adapter?
Sent from my iPhone using Tapatalk
-
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…
-
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
-
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
-
Hängt miteinander zusammen
Sent from my iPhone using Tapatalk
-
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:
Und hier die Ausgabe auf der Watch:
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.