/rpi-radio-alarm-go-library

Library to interact with the rpi-radio-alarm-go

Primary LanguageGoGNU General Public License v3.0GPL-3.0

rpi-radio-alarm-go-library

GitHub go.mod Go version GitHub release (latest by date) Go Reference GitHub GitHub Release Date GitHub last commit Go Report Card GitHub issues Lines of code

Wrapper library to communicate with the rpi-radio-alarm-go

Installation

  • get the package with go get
  • ensure ./rpi_data.yaml is available (if using the helper interacting with storage)
    settings:
      port: 8000
      run_api: true
      run_telegram_bot: true
      run_discord_bot: false
    alarms:
    - name: Test
      hour: 7
      minute: 0
      days:
      - 0
      - 1
      active: false
    ...
    radio:
      running: false
      pid: -1
    

License

GPLv3