Google Home Assi - kein Jessie

Begonnen von AlterMann, 18 März 2019, 19:51:43

Vorheriges Thema - Nächstes Thema

AlterMann

Hi,

nachdem ich erfolglos versucht habe die Installation nach dem Wiki gemacht habe und im err Dschungel gelandet bin habe ich noch mal gelesen das Jessie nicht unterstützt wird? Ist so korrekt? Betrifft das nur Jessie oder auch Stretch. Bei mir kommt bei der Installation und beim Update :


Linux Matthias 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 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: Mon Mar 18 19:39:56 2019 from 192.168.178.36
pi@Matthias:~ $ sudo npm install -g gassistant-fhem --unsafe-perm
(node:3344) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request-promise/node_modules/request-promise-core/node_modules/lodash'
npm ERR! error rolling back  gassistant-fhem@1.3.0 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request-promise/node_modules/request-promise-core/node_modules/lodash'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/gassistant-fhem/node_modules/request-promise/node_modules/request-promise-core/node_modules/lodash' }
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:120:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "gassistant-fhem" "--unsafe-perm"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@Matthias:~ $



Liebe Grüße AM
Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

dominik

Hi,
versuch mal npm mit
sudo npm install -g npm
auf Version > 6.x zu aktualisieren. Dann sollte es klappen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

AlterMann

#2
Ok und Danke das lief mit einer Warnung durch und das Gerät konnte erstellt werden und ist aktiv (grün). Allerdings bekomme ich keinen Link:


Waiting for login url from gassistant-fhem


Im Log meckert das Gerät über mein selbst erstelltes ssh Zertifikat. Wie übergebe ich Passwort und Name? oder geht der Zugang nur ohne ssh?

Zitat
[24.3.2019, 02:20:16] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1553390416941
[24.3.2019, 02:20:17] [FHEM] longpoll error: Error: self signed certificate, retry in: 30000msec

in Google kommt:

We're sorry, but something went wrong. Please try again.

Aktualisiert habe ich heute mit Neuanmeldung

iebe Grüße AM
Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

presskopf

Ich hatte es auch erst mit Jessie versucht und bin ebenfalls in der Sackgasse gelandet.
Ob ich den gleichen Fehler hatte, weiß ich nicht mehr.
GdD lief das Upgrade auf Stretch sauber durch und das Thema war erledigt.

dominik

ZitatError: self signed certificate, retry in: 30000msec

Self signed Zertifikate werden nicht unterstuetzt. Entweder letsencrypt Zertifikat verwenden, oder eine WEB Instanz ohne Zertifikat erstellen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

AlterMann

Hi

das hatte ich mir gedacht...kann man das eigene Zertifikat durch ein Richtiges ersetzen? Und wenn ja wie? Habe schon ne Weile gesucht, weil IFTTT ja auch meckert aber so richtig konnte ich zum Ersatz/Austausch nichts finden. Ganz neu aufsetzen wollte ich nicht und ohne SSH will ich auch nicht arbeiten. Ich brauch nur nen Tip wo das steht...stehen könnte...

Liebe Grüße AM
Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

bmaehr

Ich vermute selbstsignierte Zertifikate gehen auch, da ich es geschafft habe mich per SSL auf 127.0.0.1 zu verbinden.
Meine config ist so:

{
    "connections": [
        {
            "name": "FHEM",
     "ssl": true,
            "server": "127.0.0.1",
            "port": "443",
            "auth": {
    "user": "myuser",
    "pass": "mypass",
    "sendImmediately": false
            },
            "webname": "fhem",
            "filter": "group=ghomeDevice"
        }
    ]
}


bmaehr

Zitat von: dominik am 18 März 2019, 20:57:27
Hi,
versuch mal npm mit
sudo npm install -g npm
auf Version > 6.x zu aktualisieren. Dann sollte es klappen.

Ich hab ne neuer nodejs (v11.12.0) nach der Anleitung draufbekommen:
https://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/

AlterMann

Hi

ein Update von nodejs funktioniert so nicht.


pi@Matthias:~ $ curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash

## Installing the NodeSource Node.js 11.x repo...


## Populating apt-get cache...

+ apt-get update
OK:1 http://archive.raspberrypi.org/debian stretch InRelease
Ign:2 http://repo.mosquitto.org/debian wheezy InRelease
OK:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Fehl:4 http://repo.mosquitto.org/debian wheezy Release
  404  Not Found [IP: 2001:ba8:1f1:f271::2 80]
Paketlisten werden gelesen... Fertig
E: The repository 'http://repo.mosquitto.org/debian wheezy Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting
pi@Matthias:~ $


Sorry von welche config meinst Du?

Liebe Grüße

AM
Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

dominik

pi@raspberrypi:~ $ nodejs -v
v8.11.1
pi@raspberrypi:~ $ npm -v
6.5.0


Die Versionen sollten ausreichen.

Bzgl. Zertifikat, du brauchst nur ein 2. WEB definieren
define FHEMWEB WEB2 8086
und dort kein SSL einrichten. Danach in der gassistant-fhem.cfg auf 8086 verbinden.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

AlterMann

Hi

nodejs ist 8.11.1
npm ist 6.8.0

define WEB2 FHEMWEB 8087
ist definiert, cfg angepasst aber ich komme nicht auf die neue Webinstanz das wird abgelehnt. Läuft da ein anderer Dienst. Laut "netstat nlp" is da nichts. Bei gassi verändert sich nichts.
Hätte ich define WEB FHEMWEB 8087 global
machen sollen?

gruß AM
Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

dominik

Ja, hast recht, wahrscheinlich muss da noch global hinten dran. Du kannst ja per Browser testen ob die Instanz verfügbar ist.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

AlterMann

Hi,

mit global hat die neue Instanz geklappt und ich kann die Webseite aufrufen aber ich bekomme immer noch keinen Link....

Mit freundlichem Gruß AM
Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

dominik

Welchen Link? Die Verbindung in der Home App meinst du? gassistant ist gestartet und steht auf connected? Du hast auch im Raum mindestens ein Geraet welches zumindest on/off kann?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

AlterMann

#14
Hi nochmal,

Raspbian/Debian stretch ist Vorraussetzung, jessie wird nicht supported
FHEM mit "update all" auf den letzten Stand bringen
gassistant-fhem installieren und einrichten:
Konsole: sudo npm install -g gassistant-fhem --unsafe-perm
FHEM: define gassistant gassistant

bis hierher alles klar

Ca. 30s warten bis ein Reading gassistantFHEM.loginURL erscheint
Link öffnen und einloggen

hier kommt :gassistantFHEM.loginURL Waiting for login url from gassistant-fhem

Das wars dann zu dem Rest komme ich nicht mehr. Und ja ich habe mich über den Link bei Google angemeldet.

Ich habe zwei Shelly1 im Raum

Eventuell wird DSLite nicht unterstützt. Von außen gehe ich auf mein System über OpenVPN mit einem "feste IP" Script. Feste IP ist ein Dienst der DSLite Zugänge erreicht. Wie weiß ich nicht. Alexa Fhem also der FHEM Connector hat keine Probleme!

Habe heute morgen noch mal ein Update gemacht un jetzt geht der Assi an und gleich wieder aus. Im log steht:

Zitat
SyntaxError: Unexpected token } in JSON at position 170 at JSON.parse (<anonymous>) at Server._loadConfig (/usr/lib/node_modules/gassistant-fhem/lib/server.js:47:25) at new Server (/usr/lib/node_modules/gassistant-fhem/lib/server.js:19:25) at module.exports (/usr/lib/node_modules/gassistant-fhem/lib/cli.js:22:18) at Object.<anonymous> (/usr/lib/node_modules/gassistant-fhem/bin/gassistant-fhem:17:22) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)


liebe Grüße AM

Ich bin Techniker und Anwender, kein Programmierer und genau deshalb will ich in FHEM einsteigen. Bald hab ich viel Zeit und Unkraut jäten is nich mein Ding.....

dominik

Posted bitte das Log von gassistant, erreichbar über den Logfile Link im gassistant Device.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik