NEWS
Fehler beim Dapter installien Screenshot with PhantomJS
-
Moin Leute wollte diesen Adapter installieren,
dabei bekomme ich diese Meldung, kann mir einer sagen was das soll?
$ ./iobroker add phantomjs
npm install iobroker.phantomjs –production --prefix "/opt/iobroker" (System call)
npm
WARN deprecated
node-uuid@1.4.7: use uuid module instead
Unexpected platform or architecture: linux/armIt seems there is no binary available for your platform/architecture
Try to install PhantomJS globally
npm
ERR! Linux 4.4.34-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.phantomjs" "--production" "--prefix" "/opt/iobroker"npm
ERR! node
v4.6.2npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! phantomjs-prebuilt@2.1.13 install:
node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.13 install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
ERROR: host.raspberrypi Cannot install iobroker.phantomjs: 1
ERROR: process exited with code 25
Benutze einen raspberry pi 2 mit Jessy
Danke
-
hast du ein Binary namens "node"? Probier mal auf Kommandozeile?
Wenn nicht versuch mal
sudo apt-get install nodejs-legacy
dann nochmal versuchen
-
Habe versucht bekomme dabei die folgende Meldung
root@raspberrypi:~# sudo apt-get install nodejs-legacy
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
nodejs-legacy : Hängt ab von: nodejs (>= 0.6.19~dfsg1-3~) soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
root@raspberrypi:~#
ein versuch den adapter zu installieren ergab die selber Meldung wie oben
-
Hast du ein Executable namens "node" ?! Ansonsten leg mal nennSymbolischen Link auf "nodejs" an
-
damit kann ich leider nicht viel anfagen, kannst du mir das bitte genauer erklären.
Danke
-
wenn du an der Kommandozeile "node -v" eingibst was kommt?
-
Ich dachte immer PhantomJS würde schon aus Performance-Gründen nicht auf dem raspi laufen?!
-
das kommt daraus
root@raspberrypi:~# node -v
v4.6.2
root@raspberrypi:~#
-
hm … dann weiss ich nicht was es sen kann. Dachte das node Binary wäre nicht da ... sorry für die Verwirrung
Wer lesen kann ...
Unexpected platform or architecture: linux/armIt seems there is no binary available for your platform/architecture Try to install PhantomJS globally
-
das kommt daraus
root@raspberrypi:~# node -v
v4.6.2
root@raspberrypi:~# `
Fergus es. PhantomJS kann nicht auf dem raspi laufen. -
OK, das ist aber schade…
Aus welchen gründe geht das nicht ganz kurz und knap?
kann mir vielleicht einer weiter helfen in meinem Vorhaben:
Jemand Klingelt > IPCam macht snapshot > versand per mail
bis jetzt hab ich dies alles in iobroker node red realiesiert, das wenn jemand klingelt ich schon mal per Twitter / Mail Meldung bekommen.
ich möchte das nur noch per Bild dazu bekommen, wer auch geklingelt hat.
Ip Cam ist eine kleine Wlan Cam von ebay DIY Z6O6
Hat jemand eine Idee
-
kann mir vielleicht einer weiter helfen in meinem Vorhaben:
Jemand Klingelt > IPCam macht snapshot > versand per mail `
dafür brauchst du kein PhantomJS. PhantomJS ist in der Lage ganze Seiten zu rendern und als Bild ausgeben. Was du brauchst ist ein lokales Abspeichern des Bildes und dann Versand als Attachment. Ich kann dir da leider nicht weiter helfen, aber du solltest deine Vorgehensweise überdenken.Schritt 1 wäre: Kannst du ein Bild von deiner Cam lokal speichern?
LG,
a200
-
ich verweis mal das thema auf hier, hier habe ich detailiert beschrieben