Ankündigung

Einklappen
Keine Ankündigung bisher.

SmartHomeNG starten

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    SmartHomeNG starten

    Hallo Forum,

    ich habe jetzt nochmal aufgeräumt und SmarthomeNG neu installiert, weil das mit dem git nicht so ganz geklappt hat. Dabei habe ich mich an die Komplettanleitung gehalten.

    Aber der Autostart klappt irgendwie nicht (BBB mit Debian 8). Ich finde auf meinem System jetzt folgende Dateien:

    smarthome@ibbgateway:~$ sudo find / -name smarthome.*
    /etc/systemd/system/multi-user.target.wants/smarthome.service
    /etc/systemd/system/smarthome.service
    /usr/local/smarthome.ng
    /usr/local/smarthome.ng/etc/smarthome.conf.default
    /usr/local/smarthome.ng/etc/smarthome.conf
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-07-30
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-08-02
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-08-01
    /usr/local/smarthome.ng/var/log/smarthome.log
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-07-29
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-08-03
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-08-04
    /usr/local/smarthome.ng/var/log/smarthome.log.2016-07-31
    /usr/local/smarthome.ng/var/db/smarthome.db
    /usr/local/smarthome.ng/bin/smarthome.py
    /usr/local/smarthome.ng/examples/smarthome.service
    /usr/local/smarthome.ng/examples/old/js/smarthome.min.js
    /usr/local/smarthome.ng/examples/old/js/smarthome.js
    /usr/local/smarthome/etc/smarthome.conf
    /usr/local/smarthome/var/log/smarthome.log.2016-08-05
    /usr/local/smarthome/var/log/smarthome.log
    /usr/local/smarthome/var/db/smarthome.db
    /usr/local/smarthome/bin/smarthome.py
    /usr/local/smarthome/examples/smarthome.service
    /usr/local/smarthome/examples/old/js/smarthome.min.js
    /usr/local/smarthome/examples/old/js/smarthome.js
    /var/cache/lightdm/dmrc/smarthome.dmrc
    /var/www/html/smartVISU/pages/base/smarthome.py.html
    /lib/systemd/system/smarthome.service
    Da taucht der smarthome.service nun drei Mal auf und somit bin ich als Windows-Mensch wieder überfordert.

    /etc/systemd/system/smarthome.service
    Code:
    [Unit]
    Description=SmartHome.py
    After=eibd.service owserver.service
    
    [Service]
    ExecStart=/usr/bin/python3 /usr/local/smarthome/bin/smarthome.py --foreground
    User=smarthome
    Group=smarthome
    
    [Install]
    WantedBy=multi-user.target
    /lib/systemd/system/smarthome.service laut Konplettanleitung
    Code:
    [Unit]
    Description=SmartHomeNG daemon
    After=network.target
    
    [Service]
    Type=forking
    ExecStart=/usr/bin/python3 /usr/local/smarthome/bin/smarthome.py
    User=smarthome
    PIDFile=/usr/local/smarthome/var/run/smarthome.pid
    Restart=on-abort
    
    [Install]
    WantedBy=default.target
    Was stimmt da jetzt nicht, dass er beim Reboot meines BBB den SmarthomeNG nicht startet?

    Viele Grüße
    Andi

    #2
    Hallo Andi,

    systemd nimmt vorrangig immer die Version des .service Files zum Starten, die in /etc/systemd/system ist. Wenn dort keine vorhanden ist, wird die Version aus /lib/systemd/system verwendet.

    Ich gehe mal davon aus, dass Du mit
    Code:
    sudo systemctl enable smarthome.service
    den Service für den Autostart angemeldet hast. Dies ist erst seit ein paar Tagen in der Komplettanleitung ergänzt. Wenn nicht, probiere das mal zuerst.

    Das Problem mit der Version in /etc... ist, dass sie smarthome.py erst nach dem erfolgreichen Start von eibd und owserver startet. Wenn Du statt des eibd den knxd installiert hast, geht das vermutlich schief.

    Du kannst die Version in /etc/... löschen oder umbenennen. Dann sollte es mit der Version aus /lib/... gehen.

    Gruß Wolfram

    Kommentar


      #3
      Hallo Wolfram,

      vielen Dank für die ausführliche Erklärung. Ich nutze tatsächlich den knxd, das ganze Image auf dem BBB ist aber das von Roberts BBB Cape, die Datei in /etc stammt also vermutlich von ihm. Habe sie jetzt deaktiviert und er startet smarthome.py jetzt beim Rechnerstart.

      Danke und viele Grüße
      Andi

      Kommentar

      Lädt...
      X