Skip to content

Commit

Permalink
introduce a recurring technique to read input from cli args or either…
Browse files Browse the repository at this point in the history
… from json input

and apply it to implement the announce action
further progress towards brianhealey#16
  • Loading branch information
marc-portier committed Dec 26, 2022
1 parent b856844 commit c82494c
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 39 deletions.
19 changes: 17 additions & 2 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,20 @@
# to match your local environment
# --------------------------------------------------------------------------------------------------------------------------------
# local .env file allows to set recurring base values for the API client
# AMPLIPI_API_URL="http://amplipi.local:5000/api" # sets the api_uri default for the -a switch
# AMPLIPI_TIMEOUT=10 # sets the timeout default for the -t switch

# define logconf
# LOGCONF=debug-logconf.yml

# sets the api_uri default for the -a switch
# AMPLIPI_API_URL="http://amplipi.local:5000/api"

# sets the timeout default for the -t switch
# AMPLIPI_TIMEOUT=10

# sets the default arguments for the announce action
# AMPLIPI_ANNOUNCEMENT_MEDIA="https://www.nasa.gov/mp3/640149main_Computers%20are%20in%20Control.mp3"
# AMPLIPI_ANNOUNCEMENT_VOL_F=0.5 # float between 0.0 and 1.0
# AMPLIPI_ANNOUNCEMENT_VOL= # int between -80 and 0
# AMPLIPI_ANNOUNCEMENT_SOURCE_ID # 0..3 source id
# AMPLIPI_ANNOUNCEMENT_ZONES
# AMPLIPI_ANNOUNCEMENT_GROUPS
Loading

0 comments on commit c82494c

Please sign in to comment.