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