rpi-radio-alarm-go-library

module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: GPL-3.0

README

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

Directories

Path Synopsis
Package api implements a wrapper around the rest api
Package api implements a wrapper around the rest api
Package constants contains some constant values
Package constants contains some constant values
Package logging contains utils to get a logger with e standardized formatting
Package logging contains utils to get a logger with e standardized formatting
Package storage implements a wrapper using the yaml file as "backend"
Package storage implements a wrapper using the yaml file as "backend"
Package types contains all the relevant structs/types for the library
Package types contains all the relevant structs/types for the library

Jump to

Keyboard shortcuts

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