Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.sh.repo - no longer allow "auto" #679

Merged
merged 1 commit into from
Oct 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions config_repo/config.sh.repo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# - Values can optionally be quoted with double quotes, NOT single quotes.
# - If a variable occurs multiple times, only the last value is used.

# Choose between "ZWO", "RPiHQ", or "auto". "auto" prefers ZWO if present.
# Choose between "ZWO" or "RPiHQ". Note that "auto" is no longer allowed.
CAMERA=""


Expand Down Expand Up @@ -160,7 +160,10 @@ UHUBCTL_PORT=2
CAMERA_SETTINGS_DIR="${ALLSKY_CONFIG}"

if [ "${CAMERA}" = "" ]; then
echo "${RED}ERROR: Please set CAMERA in config.sh${NC}"
echo "${RED}ERROR: Please set CAMERA in config/config.sh${NC}"
exit 1
elif [ "${CAMERA}" = "auto" ]; then
echo "${RED}ERROR: 'auto' is no longer a valid CAMERA type. Please reset CAMERA in config/config.sh${NC}"
exit 1
fi

Expand Down