alexa-fhem: amazon alexa smart home skill für fhem

Begonnen von justme1968, 05 November 2016, 23:21:32

Vorheriges Thema - Nächstes Thema

dk3572

Hallo,

leider bekomme ich das node nicht installiert. Welche Version muss ich nehmen?

pi@raspberrypi ~ $ sudo apt-get purge node
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'node' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
pi@raspberrypi ~ $ cd ~ && wget http://node-arm.herokuapp.com/node_latest_armhf.de
--2016-11-08 05:54:46--  http://node-arm.herokuapp.com/node_latest_armhf.de
Resolving node-arm.herokuapp.com (node-arm.herokuapp.com)... 23.23.118.248
Connecting to node-arm.herokuapp.com (node-arm.herokuapp.com)|23.23.118.248|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-11-08 05:54:46 ERROR 404: Not Found.

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

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


## You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js v4 and later.

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

## Installing the NodeSource Node.js v4.x LTS Argon repo...


## You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js v4 and later.

Tommy82

@Andre, was meinst du damit?

@Dirk,
ich habe das hier genommen
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

und dort dann die V.7
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs


Damit funktioniert es bei mir
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

justme1968

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Tommy82

Hi, oh sorry da hatte ich was vergessen zu schreiben :-(
Was du mit dem custom skill meinst


Gesendet von iPhone mit Tapatalk
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

justme1968

der aktuelle fhem skills ist ein home automation skill. da muss man bei den kommandos de skill namen nicht sagen, es gibt vordefinierte kommandos für lampen und thermostate und es gibt gruppen.

bei einem custom skill ist man frei welche ausdrücken an verwendet, dafür muss man bei den kommandos immer dazu sagen für welchen skill es ist.

wenn home automation komplett geht und wieder mit homebridge verheiratet ist kommt noch ein custom skill dazu der frei konfigurierbar ist.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Tommy82

Ah ok, Danke für die Info, dann warten wir mal ab.

Danke für deine Mühe hier!


Gesendet von iPhone mit Tapatalk
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

dennis_n

Hi,

ersteinmal vielen Dank André. Echt geil was Du hier machst!

Ich habs gestern nur mal schnell auf einem alten Raspberry installiert, aber vielleicht kann mir einer kurz helfen.
Wenn ich es richtig verstanden habe, dann kann ich ja nur sagen "schalte Gerät ein und aus". Wäre es denn auch möglich die Wörter Hoch und Runter zu benutzen?

Gerade für die Steuerung von den Rolläden klingt Ein und Aus nicht so gut. Oder geht das bereits über Webcmd oder EventMap?

Danke

Gruss
Dennis

justme1968

nein. das geht nicht. für rolläden kannst du aber
Zitat"alexa, stelle <gerät> auf <wert> prozent"
verwenden und mit update 0.1.0 auch:
Zitatdie kommandos zum erhöhen und vermindern von prozentwert und temperatur:
  "Alexa, erhöhe Gerätename um Anzahl Prozent"
  "Alexa, reduziere Gerätename um Anzahl Prozent"
  "Alexa, erhöhe Gerätename um Anzahl Grad"
  "Alexa, reduziere Gerätename um Anzahl Grad"

es gab scheinbar mal open und close als alias für on und off, ist aber weg gefallen.

demnächst wieder mit dem custom skill.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

dennis_n

Alles klar. Dann verwende ich mal zunächst Ein und Aus  8)

stera

#189
Hallo,

als Linux Laie komme ich bei der Installation leider noch nicht weiter:

Zitat<home>/.alexa/config.json anpassen (siehe config.json.sample)
    filter funktioniert wie bei homebridge-fhem. siehe thread dort und wiki
  bin/alexa starten

Habe ein Raspberry Pi und folgendes gemacht unter dem pi Konto

mkdir -p ~/.alexa ausgeführt
cd ~/.alexa/

und dort den config.json angepasst

und nun hänge ich beim ausführen /bin/alexa ??



Das ist doch auch noch die falsche Version oder?

Zitatpi@raspberrypi:~ $ node -v
v0.10.29
pi@raspberrypi:~ $ nodejs -v
v0.10.29
pi@raspberrypi:~ $ nodejs -v
v0.10.29

pi@raspberrypi:~ $ sudo apt-get install -y nodejs
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
nodejs ist schon die neueste Version.
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr be                           gt:
  libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
  libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal libxfce4ui-1-0
  xfce-keyboard-shortcuts
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 11 nicht aktualisiert.
pi@raspberrypi:~ $ sudo apt-get install nodejs-legacy
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
nodejs-legacy ist schon die neueste Version.
nodejs-legacy wurde als manuell installiert festgelegt.
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr be                           gt:
  libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
  libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal libxfce4ui-1-0
  xfce-keyboard-shortcuts
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 11 nicht aktualisiert.
pi@raspberrypi:~ $


aber bei einem install steht, dass ich die aktuelle habe  :-\

Gruß,
SteRa








volschin

7000 ist ein BitTorrent Port. Evtl. Blockt da mancher Provider.


Gesendet von iPhone mit Tapatalk
Intel NUC+Ubuntu 22.04+Docker+FHEM6
HomeMatic: HM-MOD-RPI-PCB+HM-USB-CFG2+hmland+diverse, HUE: Hue-Bridge, RaspBee+deCONZ+diverse
Amzn Dash-Buttons, Siro Rollos
4xRPi, 4xCO20, OWL+USB, HarmonyHub, FRITZ!Box 7590, Echo Dots+Show8, Logi Circle 2, HomeBridge
TIG Stack (Telegraf, InfluxDB, Grafana)

Chaos

Hi,

bei der 0.1.0 bekomm ich beim ausführen von bin/alexa
/opt/alexa-fhem/lib/server.js:276
      }.bind(this));
      ^
SyntaxError: missing ) after argument list
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:545:28)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/alexa-fhem/lib/cli.js:3:14)
    at Module._compile (module.js:573:32)

Liegt das an mir, oder ist da ein Fehler im Skript?

MfG
Manuel

AmunRe

Zitat von: Chaos am 08 November 2016, 14:41:51
Hi,

bei der 0.1.0 bekomm ich beim ausführen von bin/alexa
/opt/alexa-fhem/lib/server.js:276
      }.bind(this));
      ^
SyntaxError: missing ) after argument list
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:545:28)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/opt/alexa-fhem/lib/cli.js:3:14)
    at Module._compile (module.js:573:32)

Liegt das an mir, oder ist da ein Fehler im Skript?

MfG
Manuel
Zu alte nodejs Version, ließ ein paar Seiten vorher in diesem Thread.


Gesendet von iPhone mit Tapatalk
4 x Echo Dot, HMLAN Gateway, und diverse HM Komponenten, Philips Hue + OSRAM Plugs

justme1968

#193
welche node version hast du?

falls es > 0.12.7 ist versuch mal das angehängte file für lib/server.js
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Chaos

Hi,

vorher hatte ich 6.9.1 und danach hab ich mal 7.0.0 installiert.
Die "neue" server.js startet ohne Fehler :-)

MfG
Manuel