Das hier schon gelesen?
https://github.com/bwssytems/ha-bridge/ ... #autostart
Re: Alexa Echo und FB.Switch [Gelöst]
Re: Re: Alexa Echo und FB.Switch [Gelöst]
Komischerweise sucht er bei diesem Befehl
Die device.db im Ordner /root/data und nicht wie bei mir angegeben
im Ordner /root/ha-bridge/data
Im Log:
Error reading the file: data/device.db - Does not exist or is not readable. continuing...
Die Datei device.db nach /root/data kopiert
Diese Zeile eingefügt
Damit geht es dann.
Das ganze hat mich jetzt mehr Zeit gekostet als die Installation. Wenn es richtig gestartet wurde stand auch im Log
.
und nicht
Wäre dies so im Log gestanden wäre mir das sofort aufgefallen
Gruesse
Mick
Code: Alles auswählen
/usr/bin/java -jar -Dserver.port=8080 /root/ha-bridge/ha-bridge-5.2.1.jar
im Ordner /root/ha-bridge/data
Im Log:
Error reading the file: data/device.db - Does not exist or is not readable. continuing...
Die Datei device.db nach /root/data kopiert
Code: Alles auswählen
crontab -e
Code: Alles auswählen
@reboot sleep 120 && /usr/bin/java -jar -Dserver.port=8080 /root/ha-bridge/ha-bridge-5.2.1.jar
Das ganze hat mich jetzt mehr Zeit gekostet als die Installation. Wenn es richtig gestartet wurde stand auch im Log
Code: Alles auswählen
Error reading the file: data/group.db - Does not exist or is not readable. continuing..
und nicht
Code: Alles auswählen
Error reading the file: root/ha-bridge/data/group.db - Does not exist or is not readable. continuing..
Code: Alles auswählen
root/ha-bridge/data/device.db
Mick
0 x
FB.Switch
Intertechno ITGW-433 Gateway
Zahlreiche Intertechno Schalter
SonOff 4CH Wlan Schalter
Intertechno ITGW-433 Gateway
Zahlreiche Intertechno Schalter
SonOff 4CH Wlan Schalter
Re: Re: Alexa Echo und FB.Switch [Gelöst]
Ich habe alternativ noch ein kleines Start Script erstellt, damit geht es auch.
Danach
und folgendes einfügen
sleep 120 gibt zusätzlich an, wieviele Sekunden gewartet werden sollen (nach dem booten) bis das Script ausgeführt wird.
Code: Alles auswählen
#!/bin/bash
cd /root/ha-bridge
wait 5
java -jar -Dserver.port=8080 ha-bridge-5.2.1.jar
exit
Code: Alles auswählen
crontab -e
Code: Alles auswählen
@reboot sleep 120 && /pfad/zum/script
0 x
FB.Switch
Intertechno ITGW-433 Gateway
Zahlreiche Intertechno Schalter
SonOff 4CH Wlan Schalter
Intertechno ITGW-433 Gateway
Zahlreiche Intertechno Schalter
SonOff 4CH Wlan Schalter
-
- Administrator
- Beiträge: 126
- Registriert: Di 15. Mai 2018, 17:25
- Wohnort: City 17
- x 23
- Kontaktdaten:
Re: Re: Alexa Echo und FB.Switch [Gelöst]
Klasse, danke das du dir so wie Zeit genommen ist und das hier so gut dokumentiert hast.
Gruß
Gruß
0 x
We Do What We Must, Because We Can.