Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

mozillalives/heritage-videoplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heritage Announcement Videoplayer

scripts and notes to support announcement video player setup on RaspberryPI at Heritage Baptist

loose notes for now, I'll cleanup when I'm done.

going to use this as basic premise https://github.com/timatron/videolooper-raspbian adapting a service from this gist

  • downloaded announcements.sh, hasher.py, sync_video.py and sample-settings.cfg to /home/pi
  • renamed sample-settings.cfg to video-player-settings.cfg and added actual settings
  • ran sudo apt-get -y install omxplayer
  • moved announcements.sh by running sudo mv announcements.sh /etc/init.d/announcements
  • made sure it was executable by running sudo chmod a+x /etc/init.d/announcements
  • ran sudo touch /var/log/announcements.log
  • then ran sudo chown pi:pi /var/log/announcements.log
  • then ran sudo update-rc.d announcements defaults

at this point, you should be able to restart the device and have it automatically start playing the video on boot (provided you have the video in /home/pi/videos/weekly-announcements.mp4)

ran sudo apt-get install python-pip -y ran sudo pip install dropbox

set the following crontab as root by running sudo crontab -e

*/15 * * * 0 /home/pi/sync_video.py -n 2>&1 | /usr/bin/logger -t sync_video

configured timezone by running sudo dpkg-reconfigure tzdata

ran python sync_videos.py script to set oauth token

Dropbox

I created an app, enabled more users, created a special user account for dropbox, shared with new user, used oauth token from new user on PIs.

TODO

  • come up with maintenance plan
  • make sure nothing is insecure in the default setup of raspbian
  • setup automated update cron
  • remote logging/status?

About

scripts and notes to support announcement video player setup on RaspberryPI at Heritage Baptist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published