LogoControl RPi Zero

Willkommen Foren LogoControl LogoControl RPi Zero

1 Beitrag anzeigen (von insgesamt 1)
  • Autor
    Beiträge
  • #3095
    jphermans
    Teilnehmer

    Today I have installed on a raspberry pi zero. This is the smallest pi that you can find in the range. You can find more info about this board on this link: Zero Pi
    This runs good but keep in mention that the startup and shutdown goes slower then on a RPi 2 or 3.
    I have also created a script to backup my config.xml to my synology nas whenever I want this or you can also do this with a cronjob.
    You can find the code of my script here, and you have to fill in your login and password of your Nas or ftpserver.

    #!/bin/bash
    # LOCAL/FTP/SCP/MAIL PARAMETERS
    SERVER="192.168.1.45"        # IP of Network disk, used for ftp
    USERNAME="login"         # FTP username of Network disk used for ftp
    PASSWORD="password"         # FTP password of Network disk used for ftp
    DESTINIATIONMAP="Documenten/Prive/Backups"
    ### END OF USER CONFIGURABLE PARAMETERS
    TIMESTAMP=/bin/date +%Y%m%d%H%M%S
    BACKUPFILE="config_$TIMESTAMP.xml" # backups will be renamed with timestamp
    cp /home/pi/LogoControl/config.xml /tmp/$BACKUPFILE  # copy config.xml to /tmp
    ### Send to Network disk through FTP
    wput -u  /tmp/config* ftp://$USERNAME:$PASSWORD@$SERVER/Documenten/Prive/Backups/$BACKUPFILE
    ### Remove temp backup file
     /bin/rm /tmp/config*
    ### Done!
    

    Don’t forget to make this executable by doing „sudo chmod +x you script.sh“.
    I will keep posting updates if somethings changes in my logocontrol.

    some pictures:
    New RPi Zero
    Mounted in case with wifi adapter

    • Dieses Thema wurde vor vor 8 Jahren, 1 Monat von jphermans bearbeitet.
    • Dieses Thema wurde vor vor 8 Jahren, 1 Monat von jphermans bearbeitet.
    • Dieses Thema wurde vor vor 8 Jahren, 1 Monat von jphermans bearbeitet.
1 Beitrag anzeigen (von insgesamt 1)
  • Du musst angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.