Updates to README to explain recent changes and logging
This commit is contained in:
parent
0a22cfe4ee
commit
dd6553a6f1
1 changed files with 8 additions and 2 deletions
|
@ -13,6 +13,12 @@ feedparser
|
|||
|
||||
The remaining imports should all be part of the standard Python install.
|
||||
|
||||
## Important Notes
|
||||
|
||||
As it currently is written, the script uses the hash of the post title to prevent sending duplicates. However, a recent change to check for the publish time was added, only because some feeds are not in reverse chronological order (latest post at top of feed, ie, entry index 0). Because of this, we do actually need to check the publish times. This still needs some testing and things might be a bit broken because of it. If you see any issues please let me know.
|
||||
|
||||
Logging was recently enabled. Make sure that the user running the script (especially when using systemd timers) has write access to the /var/log/discorss directory. The app will try and create the directory for you, but if your user doesn't have permissions to create directories in /var/log this will fail and this will probably crash the script as is. I will try and remember to catch that exception and exit gracefully with an error message to stdout. If you want the logs to go somewhere else, just edit the log_dir variable near the top of discorss.py. Choose a directory that makes sense. Unfortunately, as far as I know, the XDG standards don't have an equivalent to the /var/log directory in the user directory, so I wasn't sure what the best default was. In the future, we may switch to logging using systemd and journald directly, though it is nice to have a separate file.
|
||||
|
||||
## How to setup
|
||||
|
||||
To configure the script, create /etc/discorss.conf with the following structure:
|
||||
|
|
Loading…
Add table
Reference in a new issue