Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
raspberry:videolooper [2021/05/27 16:17]
admin [Software]
raspberry:videolooper [2021/06/07 17:53]
admin [all in one USB cable]
Line 21: Line 21:
  $ ssh pi@ 192.168.???.????  $ ssh pi@ 192.168.???.????
 on the Pi update and upgrade: on the Pi update and upgrade:
-  $ sudo apt update +  $ sudo apt-get update 
-  $ sudo apt upgrade+  $ sudo apt-get upgrade
 Install the omxplayer: Install the omxplayer:
-  $ sudo apt install omxplayer+  $ sudo apt-get install omxplayer
  
 === Autostart === === Autostart ===
 +
 To create the autostart open: To create the autostart open:
   $ sudo nano /etc/rc.local   $ sudo nano /etc/rc.local
  
 and write before "exit 0" the following: and write before "exit 0" the following:
- printf "  \n" +  printf "  \n" 
- printf "    =============================================\n" +  printf "    =============================================\n" 
- printf "    =             MY VIDEO LOOP                =\n" +  printf "    =             MY VIDEO LOOP                 =\n" 
- printf "    =                                           =\n" +  printf "    =                                           =\n" 
- printf "    =          wolfgang spahn 01-2021           =\n" +  printf "    =          wolfgang spahn 01-2021           =\n" 
- printf "    =         http://dernulleffekt.de           =\n" +  printf "    =         http://dernulleffekt.de           =\n" 
- printf "    =============================================\n" +  printf "    =============================================\n" 
- printf " \n"+  printf " \n"
  
-If one wants to runan additional program these line should be added: +If one wants to run an additional program these line should be added: 
- # start LEDs blinking +  # start LEDs blinking 
- printf "start to blink an LED on GPIO 27\n" +  printf "start to blink an LED on GPIO 27\n" 
- /home/pi/paper-duino-pi/blink_02.py &+  /home/pi/python/blink_02.py & 
 +e.g.: 
 +   $ wget http://www.dernulleffekt.de/programme/blink_02.py.tar 
 +   $ tar xf blink_02.py.tar 
 +   $ sudo chown root:root blink_02.py 
 +   $ sudo chmod 755 blink_02.py
  
 And to start the omxplayer add that: And to start the omxplayer add that:
- # start the omxplayer +  # start the omxplayer 
- printf "start the video loop\n" +  printf "start the video loop\n" 
- omxplayer /home/pi/video/myvideo.mp4 & +  omxplayer /home/pi/video/myvideo.mp4 & 
-The video has to be an mp4 (H264) format\\+
 To run the omxplayer in the background one has to add the "&" at the end of the line.\\ To run the omxplayer in the background one has to add the "&" at the end of the line.\\
  
 +Copy the video to /home/pi/video. It should be has to be an mp4 (H264) format.\\
 +
 +
 +
 +----
 +==== all in one USB cable ====
 +
 +To power and simultaneously connect an USB hub to the Raspberry Pi Zero with just a single USB cable one needs an [[https://en.wikipedia.org/wiki/USB_On-The-Go|USB-OTG]] cable.\\
 +
 +
 +An other possibility would be this [[raspberry:pi_zero_usb-otg|Pi Zero USB-OTG Hack]].\\
 +
 +{{:raspberry:usb-osg_on_zero_01.jpg?400|}}\\
 +
 +----
 +==== SSH over USB====
 +
 +[[raspberry:zero_over_usb|Connect a Raspberry Pi Zero over USB]]
  
 ---- ----