Motion automatisch starten

L I V E Stammtisch ab 20:30 Uhr im Chat
  • Hallo,

    ich habe schon viele Seiten gelesen und tue mich noch schwer mit den ganzen Linux Befehlen und Eingaben.
    Geschafft habe ich schon Raspbian und Motion zu installieren mit der Anleitung von >hier<

    Da es eine von vielen Anleitungen ist, wollte ich mal fragen was der beste und sauberste Weg ist. Soll ich die angepasste Version von Motion nehmen oder die Originale?

    Ich habe einen Raspberry Pi mit Kamera Module und möchte fürs erste das Motion nach dem Start automatisch startet. In dem Link oben seht zwar auch was dazu, nur weiß ich nicht wie ich es hinbekommen soll.

    Welche Anleitung würdet ihr mir empfehlen?

    Danke

  • Hallo,

    laufen tut es schon, nur bekomme ich "Step 7" nicht hin. Ich gebe "crontab -e" ein und kann dann die nächste Zeile rein kopieren. Dann soll ich aber speichern und da verlassen sie mich.

    Dann soll man nach anderen Anleitungen Motion mit "sudo motion start" und "sudo motion stop" starten und stoppen können, was bei mir aber nicht geht.

    • Offizieller Beitrag
    Zitat


    Dann soll ich aber speichern und da verlassen sie mich.


    speichern und verlassen in vi (so heisst der standard editor)

    Code
    ESC
    :wq [enter]


    Das [enter] natürlich nicht schreiben sondern einfach nur drücken ;)

  • Ich habe mich mit Putty auf den Raspi verbunden.
    Dann gebe ich "crontab -e" ein.
    Dann kommt:
    pi@raspberrypi ~ $ crontab -e
    no crontab for pi - using an empty one
    GNU nano 2.2.6 File: /tmp/crontab.kWsDvq/crontab

    # Edit this file to introduce tasks to be run by cron.
    #
    # Each task to run has to be defined through a single line
    # indicating with different fields when the task will be run
    # and what command to run for the task
    #
    # To define the time you can provide concrete values for
    # minute (m), hour (h), day of month (dom), month (mon),
    # and day of week (dow) or use '*' in these fields (for 'any').#
    # Notice that tasks will be started based on the cron's system
    # daemon's notion of time and timezones.
    #
    # Output of the crontab jobs (including errors) is sent through
    # email to the user the crontab file belongs to (unless redirected).
    #
    # For example, you can run a backup of all your user accounts
    # at 5 a.m every week with:
    # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
    #

    Dann füge ich ganz unten die Zeile ein:
    @reboot screen -S Motion -dmS sudo motion -c /home/pi/motion/motion-mmalcam.conf

    und dann???

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!