diff options
Diffstat (limited to 'beinc_poller.py')
| -rwxr-xr-x | beinc_poller.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/beinc_poller.py b/beinc_poller.py index 4fbe0e0..a1269c2 100755 --- a/beinc_poller.py +++ b/beinc_poller.py | |||
| @@ -86,6 +86,11 @@ class ValidHTTPSHandler(urllib2.HTTPSHandler): | |||
| 86 | 86 | ||
| 87 | def poll_notifications(scheduler, args, notification_obj): | 87 | def poll_notifications(scheduler, args, notification_obj): |
| 88 | """ | 88 | """ |
| 89 | the core function initiated by the scheduler performing a single poll | ||
| 90 | |||
| 91 | scheduler: scheduler object | ||
| 92 | args: the argparse processed command-line arguments | ||
| 93 | notification_obj: pynotify or pyosd notification object | ||
| 89 | """ | 94 | """ |
| 90 | try: | 95 | try: |
| 91 | post_values = {'password': args.password} | 96 | post_values = {'password': args.password} |
| @@ -193,11 +198,12 @@ def main(): | |||
| 193 | help='BEINC osd-system ("pynotify" or "pyosd") (default: pynotify)') | 198 | help='BEINC osd-system ("pynotify" or "pyosd") (default: pynotify)') |
| 194 | parser.add_argument( | 199 | parser.add_argument( |
| 195 | '-P', '--password', | 200 | '-P', '--password', |
| 196 | metavar='PASSWORD', | 201 | metavar='PASSWORD[FILE]', |
| 197 | type=str, | 202 | type=str, |
| 198 | dest='password', | 203 | dest='password', |
| 199 | default='', | 204 | default='', |
| 200 | help='BEINC taget-password (default & recommended: prompt for passwd)') | 205 | help='BEINC taget-password / text-file containing the target password' |
| 206 | ' (default & recommended: prompt for passwd)') | ||
| 201 | parser.add_argument( | 207 | parser.add_argument( |
| 202 | '-p', '--position', | 208 | '-p', '--position', |
| 203 | metavar='POSITION', | 209 | metavar='POSITION', |
