Loxberry Autostart

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • s2nrbald
    Smart Home'r
    • 01.05.2019
    • 44

    #1

    Loxberry Autostart

    Hello all, using the forum I have integrated my Roomba into Loxone. However, it only works when I manually run the script first. Can someone point me to an idiots guide for getting my script to autostart on my Loxberry? Thanks.
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11250

    #2
    Try one of these options:
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • s2nrbald
      Smart Home'r
      • 01.05.2019
      • 44

      #3
      Hi Christian, I tried and failed...

      First of all, I saved the following script in the cron.01min folder:

      -----------

      SHELL=/bin/sh
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

      loxberry npm start --prefix /opt/loxberry/rest980

      -----------

      I can manually start the script by going into the folder /opt/loxberry/rest980 and typing npm start.

      What am I doing wrong?

      Kommentar

      • Prof.Mobilux
        Supermoderator
        • 25.08.2015
        • 5457

        #4
        Wrong Skript type. You habve to use a bash script in that folder with a correct shebang and correct file permissions and owner.

        be aware that your script in that folder is started every minute!
        LoxBerry: https://wiki.loxberry.de/start

        Kommentar

        Lädt...