GithubHelp home page GithubHelp logo

gomovies's Introduction

gomovies

Web interface for omxplayer

Installation on local PC (Raspberry PI)

It requires setup Golang environment, usage of (Remote installation](#Remote installation on Raspberry PI) is preferable

  • Install omxplayer
  • Clone this repository to Go workspace on Raspberry
  • Build
    pi@raspberrypi:~$ make
    
  • Configure
    • Create in directory $HOME/.gomovies/ file config.json with following content (minimal required):
      {
      "dirs": [
          "/media/pi/disk1/movies/",
          "/media/pi/disk2/movies/"
          ...
      ]
      
    • Supported configuration options
      • Required
        • dirs - list of directories with video files
      • Optional
        • web_port - http port, default 8000
        • video_file_exts - extensions of video files, default is [".avi", ".mkv"]
        • tmdb_api_key - api key of The Movie Data Base (TMDb). It is used for getting details about movies.
        • tmdb_poster_small - size of small poster, default is w92, see TMDb Images
        • tmdb_poster_large - size of large poster, default is w500, see TMDb Images
        • torrent_remote_ctrl_addr - address for remote control of torrent client, rtorrent is supported for now
  • Start
    pi@raspberrypi:~$ ./gomovies
    
    Or in background
    pi@raspberrypi:~$ nohup ./gomovies &
    
  • Help
    pi@raspberrypi:~$ make help
    

Remote installation on Raspberry PI

It requires Ansible

  • Install Ansible, how
  • Clone this repository
  • Update file init/ansible/raspberry.ini with hostname of remote Raspberry PI, how
  • Build for Raspberry architecture. Golang installation is not needed, build will be done inside docker container
    andrew:~$ make build-rpi3
    
  • Update configuration template, updating of "dirs" is needed, but can be done after installation to Raspberry.
  • Install all components at once. Next will be installed: omxplayer, gomovies, config.json, systemd service. NOTE: Old configuration will be lost
    andrew:~$ make install-rpi3-all TMDB_API_KEY=<TMDb API access key>
    
    • Options:
      • TMDB_API_KEY (optional) - API key to access The Movie DB, e.g. TMDB_API_KEY=a1b2c3d4e5f6i7
      andrew:~$ make install-rpi3-all TMDB_API_KEY=a1b2c3d4e5f6i7
      
  • Also all component can be installed separately.
    andrew:~$ make install-rpi3-player     # install omxplayer
    andrew:~$ make install-rpi3-bin        # install gomovies binaries
    andrew:~$ make install-rpi3-config     # install gomovies config. Old configuration will be lost. Supported option TMDB_API_KEY
    andrew:~$ make install-rpi3-systemd    # install systemd service to manage gomovies app
    

Control gomovies service

  • Start
andrew:~$ make service-start
  • Restart
andrew:~$ make service-restart
  • Stop
andrew:~$ make service-stop

Other

Android Application GoMoviesDroid

gomovies's People

Contributors

andrew00x avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.