Latest version:
> python channels_dvr_monitor_channels.py -h
usage: channels_dvr_monitor_channels.py [-h] [-e EMAIL_ADDRESS] [-f FREQUENCY] [-i IP_ADDRESS] [-l] [-p PORT_NUMBER]
[-P PASSWORD] [-r RECIPIENT_ADDRESS] [-t TEXT_NUMBER] [-v]
Monitor a Channels DVR server for changes in channel lineups.
options:
-h, --help show this help message and exit
-e EMAIL_ADDRESS, --email_address EMAIL_ADDRESS
Email address to use as the sender. Not required if just monitoring on the screen. Use with
-P, and either -r or -t (or both).
-f FREQUENCY, --frequency FREQUENCY
Frequency of queries sent to the Channels DVR server, in minutes. Not required. Default: 30.
Minimum: 5.
-i IP_ADDRESS, --ip_address IP_ADDRESS
IP address of the Channels DVR server. Not required. Default: 127.0.0.1
-p PORT_NUMBER, --port_number PORT_NUMBER
Port number of the Channels DVR server. Not required. Default: 8089
-P PASSWORD, --password PASSWORD
Password to log in to the email account. Use with -e.
-r RECIPIENT_ADDRESS, --recipient_address RECIPIENT_ADDRESS
Email address of the recipient. Not required if -t is specified. Use with -e and -P. May be
the same as -e. May be used with -t too.
-s START_TIME, --start_time START_TIME
Time in 24-hour format HH:MM when you want the first check to start.
-t TEXT_NUMBER, --text_number TEXT_NUMBER
Cell phone number to send a text to in the format: <10 digits>@<SMS gateway>. Not required if
-r is specified. Use with -e and -P. May be used with -r too.
-v, --version Print the version number and exit the program.
If no options are specified, use the default URL http://127.0.0.1:8089 to query the Channels DVR server, and just
print information on the screen. If the -e argument is specified, you must provide at least either -r or -t, or both.
An email will look like this:
A text/SMS message will look like this:
If you have any ideas for improvements, please let me know, I would love to make it better.
If you are a programmer and you have suggestions for improving the code, go ahead and make the changes, and then submit a pull request.
If you notice anything wrong, please don't hesitate to let me know here!
I hope it works for everybody!