https://github.com/thred/openwebif-client
A python client for the OpenWebIF REST interface.
https://github.com/thred/openwebif-client
Last synced: about 12 hours ago
JSON representation
A python client for the OpenWebIF REST interface.
- Host: GitHub
- URL: https://github.com/thred/openwebif-client
- Owner: thred
- License: other
- Created: 2018-10-28T19:57:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T20:35:43.000Z (over 7 years ago)
- Last Synced: 2025-02-28T20:17:54.679Z (over 1 year ago)
- Language: Python
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Purpose
This client currently serves one main purpose:
It scanns the EPG provided by the [OpenWebIF](https://github.com/E2OpenPlugins/e2openplugin-OpenWebif) on the Dreambox for search terms, that are specified in a file, and mails to the result to an email address.
The client is written in Python 2, in order to be executed as a cron job on the Dreambox itself with the following command:
```
./owifc notify -h localhost -f /home/root/ow.params --email-to me@...
```
(the SMTPs has been specified using the config, see below)
The `ow.params` contains the search terms similar to the `search.txt` sample file.
Beside of this, the project can be used as a template for other scripts based on the web interface of the Dreambox.
# Email to Gmail
In order to enable sending emails, specifiy the SMTPS parameter. Using Gmail this looks like:
```
--smtps username:password@smtp.gmail.com:465
```
You can store this in the global configuration (`~/.owifc.conf`), to avoid passing the parameter on each invocation. But be aware, that the password won't be encoded.
```
./owifc config set smtps username:password@smtp.gmail.com:465
```
Make sure to [allow less secure apps to access your account](https://support.google.com/accounts/answer/6010255). If you have 2-step verification enabled you have to [sign in using App Passwords](https://support.google.com/accounts/answer/185833).