-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-tvguide.sh
executable file
·32 lines (22 loc) · 1.25 KB
/
start-tvguide.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
SERVICE=tvguide-microservice
. ./lib/common.sh
#### ENV VARS
# You can set these in this script (uncomment and edit the lines) or set them in your .zshrc/.bashrc/etc.
# TV Guide information is provided by SchedulesDirect.com. You will need to pay/subscribe to their service
# (currently $25/year). You will need to get the TV Guide ID(s) from which you want information available to
# RoboDomo. For example, you might have two homes, two different cable TV providers, etc.
# Set your SchedulesDirect username and password here. For security reasons, instead, you should set these
# environment variables outside of this script or any script (or file) that is committed to a repository.
#TVGUIDE_USERNAME={username}
#TVGUIDE_PASWORD={password}
# Set your SchedulesDirect Guide IDs here (separated by commas if you want more than one).
#TVGUID_IDS={guide_id,guide_id...}
#### /ENV VARS
if [[ "$TVGUIDE_USERNAME" == "" || "$TVGUIDE_PASSWORD" == "" || "$TVGUIDE_IDS" = "" ]]; then
echo "The environment varables TVGUIDE_USERNAME, TVGUIDE_PASSWORD, and TVGUIDE_IDS must be set. See start-tvguid.sh for details."
exit 1
fi
stop
pull
start -e "TVGUIDE_USERNAME=$TVGUIDE_USERNAME" -e "TVGUIDE_PASSWORD=$TVGUIDE_PASSWORD" -e "TVGUIDE_IDS=$TVGUIDE_IDS"