GithubHelp home page GithubHelp logo

radiogagad's Introduction

radiogagad - the daemon inside my RaspDAC

License: MIT Release Build Status codecov Go Report Card

Build and install

First you need a Go distribution. Then on the build host, targeting a Raspberry Pi 3

make buildarm7

Install by simply copy the binary under /usr/local/bin and setup the service for the service manager used by the distribution

Configuration

Configuration is loaded from /etc/radiogagad.yml if file exists. See radiogagad.yml.template for configuration variables names and their default values.

Inspirations, links and references

RaspDAC pinout

RaspDAC pinout

RaspDAC pinout schema

Power Button

  1. BOOT OK pin must be set to high to stop power button flashes
  2. Soft Shutdown pin must be set to low
  3. Wait for rising edge on Shutdown pin
  4. When button fired, set Soft Shutdown pin to high for 1 second then low to trigger the power off

Examples:

MPD

Winstar OLED WEH001602A

radiogagad's People

Contributors

vinymeuh avatar

Watchers

 avatar  avatar

radiogagad's Issues

radiogagad crash on stopping mpd

radiogaga:~# service mpd stop
 * Stopping mpd ...
radiogaga:~# service radiogagad status
 * status: crashed

In /var/log/messages:

May  9 21:07:01 radiogaga daemon.err radiogagad: panic: runtime error: invalid memory address or nil pointer dereference
May  9 21:07:01 radiogaga daemon.err radiogagad: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x14d14c]
May  9 21:07:01 radiogaga daemon.info radiogagad: Failed to retrieve MPD Status: EOF
May  9 21:07:01 radiogaga daemon.info radiogagad: Failed to retrieve MPD CurrentSong: write tcp 127.0.0.1:54148->127.0.0.1:6600: write: broken pipe
May  9 21:07:01 radiogaga daemon.err radiogagad: goroutine 23 [running]:
May  9 21:07:01 radiogaga daemon.err radiogagad: github.com/vinymeuh/radiogagad/player.MPDFetcher(0x1932da, 0xe, 0x8a6f00, 0x8a6ec0)
May  9 21:07:01 radiogaga daemon.err radiogagad: 	/Users/viny/MyWorkdir/radiogagad/player/mpdfetcher.go:42 +0x21c
May  9 21:07:01 radiogaga daemon.err radiogagad: created by main.main
May  9 21:07:01 radiogaga daemon.err radiogagad: 	/Users/viny/MyWorkdir/radiogagad/main.go:65 +0x3dc

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.