gopilot

command module
Version: v0.0.0-...-2f8ff05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

README

gopilot

Gopilot is a personal medias storage and a scheduler mp3 player. It use mongoDB GridFS to store your files.
To set an alarm at 19:21:00 => Cron : TZ=Europe/Paris 0 19 21 * * *
Gopilot can play audio on server side (connect your raspberry pi audio jack to a speaker).

Requirements:

libvlc (vlc on archlinux)
mongoDB

Installation

Install mongodb on a dedicated server. The easiest way is to use docker, attention, on raspberry pi 3 you must install a 64 bit Linux distribution like archlinux arm (see AArch64 Installation) :

docker run --name mongodb -p 27017:27017 -v /your_docker_volumes/mongodb:/data/db -d mongo

Create database and admin user :

docker exec -it mongodb bash
mongo
use gopilot
db.createUser(
    {
      user: "gopilot",
      pwd: "4wdfefzfXNF42eoDakgbU",
      roles: [
         { role: "userAdmin", db: "gopilot" }
      ]
    }
)

test connection :

mongo gopilot -u gopilot -p4wdfefzfXNF42eoDakgbU

Compilation

go build gopilot.go

Launch

copy gopilot.toml.example to gopilot.toml and modify according your config. Then start gopilot and open a browser to http://raspberrypiIP:1323

Screenshot

media list

media edit

media video

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL