
#
#	piview SETUP
#	--------------------
#	version: version 2.0
#
#	piview initialization file
#	is used for configuring important information in your RPI stream's box.
#
#	Once your RPi is online, it is also possible to use the web server interface to edit this file.
#	http://piview.local/   -- where 'piview' is your hostname, see the network section below.
#
#	If you can't access to your web interface using your hostname (i.e. the mDNS address), you are not probably on 
#	the same local network: your piview is behind another router, or behind your smartphone network, a global 
#	network, etc. Alternatively, you can also use the piview's IP address directly.
#	
#	Ethernet and USB tethering are always enabled (using the DHCP protocol by default).
#	To find your piview address and edit this file from your Androïd browser, use a network scan application.
#	If you need a static IP address, configure the appropriate network in the advanced network section below.
#
#	If you want access to your piview from an external network without using remote access, you must
#	configure your router first. Disclaimer — use at your own risk, no firewall is setup.
#	
#
#	Please note: no space between the variable name, the '=' character and the variable value.
#	Please note: the '#' character before each line specify a comment, don not remove.
#






# --------------------------------------------------------------------------------------------------
#	NETWORK CONFIGURATION
# --------------------------------------------------------------------------------------------------

# Enter a valid static address or leave blank to use DHCP.
#
# For IPv6 static address, DNS or gateway configuration, edit the profile manually :
# /etc/systemd/network/eth0.network
# More informations at https://wiki.archlinux.org/index.php/Systemd-networkd

STATIC_ADDRESS=""



# Specify the hostname for this RPI.
#
# The HOSTNAME should be an internet-style hostname, only the ASCII letters 'a' through 'z' (in a case-insensitive
# manner, lower case is safer), the digits '0' through '9', and the hyphen ('-'). No other symbols, punctuation 
# characters, or white space are permitted.
# The original specification (RFC 952) mandated that hostnames could not start with a digit or with a hyphen, and must 
# not end with a hyphen.
# Limit the hostname to 63 characters, which is the length of a DNS label.
# For examples, read the end of this documentation http://www.freedesktop.org/wiki/Software/systemd/hostnamed/

HOSTNAME="piview"



# Remote Access: configure your piview box anytime, anywhere.
#
#	- REMOTE_ACCESS, turn on/off the remote access service: yes or no (default "no")
#	- REMOTE_ACCESS_HTTP_PORT and REMOTE_ACCESS_SSH_PORT, manually specify a particular port
#	  or leave blank to use a random port (default "")
#
# Warning: UPnP must be activated on your router to open automatically NAT/PAT rules.

REMOTE_ACCESS="no"
REMOTE_ACCESS_HTTP_PORT=""
REMOTE_ACCESS_SSH_PORT=""




# ---------------------------------------------------------------------------------------------------------------------
#	AUDIO CONFIGURATION
#	this section values are not used in script, except while testing audio
# ---------------------------------------------------------------------------------------------------------------------

# If you have multiple sound cards connected (e.g. for testing), enter the card interface number to use for streaming.
# Sound card 1 is selected by default.

SOUNDCARD=1

# Or create and use a virtual two-channel device with the two first audio input: yes or no (default "no").
# The virtual stereo device is in fact two interleaved mono streams, the real devices will drift out of sync over time.

VIRTUAL_STEREO="no"


# Audio output configuration.
#
#	- AUDIO_CHANNEL, the number of channels for the output: 1 for mono, 2 for stereo.
#	- AUDIO_QUALITY, the audio quality between 0 and 1 (default 0.3).
#	  Quality 0 is roughly equivalent to 64kbps average, 0.5 is roughly 160kbps, and 1 gives about 400kbps.
#	  Most people seeking very-near-CD-quality audio encode at a quality of 0.5 or, for lossless stereo coupling, 0.6.
#	- AUDIO_SAMPLERATE, the audio sample rate in Hz: try "8000", "11025", "16000", "22050", "32000", "44100" or "48000"

AUDIO_CHANNEL="1"
AUDIO_QUALITY="0.3"
AUDIO_SAMPLERATE="44100"




# ---------------------------------------------------------------------------------------------------------------------
#	ADVANCED AUDIO CONFIGURATION
# ---------------------------------------------------------------------------------------------------------------------

# Blue Icicle audio card settings.
#
#	- BLUEICICLE_IN_GAIN, input gain: min=-8.00dB, max=14.00dB (default 0)

BLUEICICLE_IN_GAIN="0"



# Cirrus Logic/Wolfson audio card settings.
# Please note: only one input can be used for recording.
#
#	- CIRRUS_INPUT, select one input below (default "dmic") :
#
#		- dmic 		to record from the on board digital MEMS microphones
#		- mic		to record from the mic (or headset)
#		- linein	to record from the line input
#		- micbias	to record from the line input + bias voltage
#		- spdifin	to record from the S/PDIF receiver

CIRRUS_INPUT="dmic"

#	- CIRRUS_INL_VOL, audio interface volume (left)  : min=-32.00dB max=16.00dB (default 0)
#	- CIRRUS_INR_VOL, audio interface volume (right) : min=-32.00dB max=16.00dB (default 0)
#	- CIRRUS_INL_PGA, programmable-gain amplifier (left)  : min=0.00dB max=31.00dB (default 0)
#	- CIRRUS_INR_PGA, programmable-gain amplifier (right) : min=0.00dB max=31.00dB (default 0)
#	- CIRRUS_INL_DIG, digital input gain (left)  : min=-64.00dB max=31.50dB (default -6 for dmic, 0 otherwise)
#	- CIRRUS_INR_DIG, digital input gain (right) : min=-64.00dB max=31.50dB (default -6 for dmic, 0 otherwise)

CIRRUS_INL_VOL="0"
CIRRUS_INR_VOL="0"
CIRRUS_INL_PGA="0"
CIRRUS_INR_PGA="0"
CIRRUS_INL_DIG="-6"
CIRRUS_INR_DIG="-6"

#	- CIRRUS_HEADPHONE, turn on/off playback to the headphone output (default "yes").
#	- CIRRUS_LINE_OUT, turn on/off playback to the line output (default "yes").
#	- CIRRUS_SPEAKER, turn on/off playback to the speakers output (default "no").
#	- CIRRUS_SPDIF_OUT, turn on/off playback to the S/PDIF transmitter (default "no").

CIRRUS_HEADPHONE="yes"
CIRRUS_LINE_OUT="yes"
CIRRUS_SPEAKER="no"
CIRRUS_SPDIF_OUT="no"


