Outils pour utilisateurs

Outils du site


take-picture-rpi:take_picture_with_raspberry_pi

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

take-picture-rpi:take_picture_with_raspberry_pi [2018/09/11 08:46] – créée ronantake-picture-rpi:take_picture_with_raspberry_pi [2019/01/10 15:59] (Version actuelle) rguyader
Ligne 1: Ligne 1:
 ====== how to do a picture frame with a Raspberry Pi ====== ====== how to do a picture frame with a Raspberry Pi ======
- +<code bash> 
-  # sudo apt-get install vim feh +sudo apt-get install vim feh 
- +vi /home/pi/.config/lxsession/LXDE-pi/autostart 
-  # vi /home/pi/.config/lxsession/LXDE-pi/autostart +</code>
   @/home/pi/start-picture-frame.sh   @/home/pi/start-picture-frame.sh
   @xset s off    @xset s off 
Ligne 12: Ligne 11:
   @xset s noexpose   @xset s noexpose
   @xset dpms 0 0 0   @xset dpms 0 0 0
- +<code bash> 
-  # echo "hdmi_blanking=1" >> /boot/config.txt +echo "hdmi_blanking=1" >> /boot/config.txt 
-  # mkdir /home/pi/picframe +mkdir /home/pi/picframe 
-  # vi /home/pi/start-picture-frame.sh +vi /home/pi/start-picture-frame.sh 
 +</code> 
 +<code bash>
   #!/bin/bash   #!/bin/bash
   DISPLAY=:0.0 XAUTHORITY=/home/pi/.Xauthority /usr/bin/feh --quiet --recursive --preload --full-screen --auto-zoom --reload 60 --hide-pointer --slideshow-delay 10.0 /home/pi/picframe   DISPLAY=:0.0 XAUTHORITY=/home/pi/.Xauthority /usr/bin/feh --quiet --recursive --preload --full-screen --auto-zoom --reload 60 --hide-pointer --slideshow-delay 10.0 /home/pi/picframe
- +</code> 
-  # chmod 755 /home/pi/start-picture-frame.sh +<code bash> 
-  # /home/pi/start-picture-frame.sh +chmod 755 /home/pi/start-picture-frame.sh 
-  # sudo reboot +/home/pi/start-picture-frame.sh 
 +sudo reboot 
 +</code>
 Terminate picture frame :  Terminate picture frame : 
- +<code bash> 
-  # sudo pkill feh +sudo pkill feh 
- +sudo vi /etc/rc.local 
-  # sudo vi /etc/rc.local +</code>
 Add before "exit 0" : Add before "exit 0" :
 +<code bash>
   sleep 10   sleep 10
   bash /home/pi/start-picture-frame.sh &   bash /home/pi/start-picture-frame.sh &
 +</code>
take-picture-rpi/take_picture_with_raspberry_pi.1536655608.txt.gz · Dernière modification : 2018/09/11 08:46 de ronan