Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication question #16

Open
niawag opened this issue Oct 5, 2023 · 3 comments
Open

Authentication question #16

niawag opened this issue Oct 5, 2023 · 3 comments

Comments

@niawag
Copy link
Contributor

niawag commented Oct 5, 2023

Hi Herjar and thanks a lot for this great tool! I've been using it from a bit of time with crontab and almost forgot about it, as I was testing it again I was told that the authentication was maybe out of date. I authenticated once again and got it working easily but I didn't know that it was supposed to happen.
Do you know how long the authentication is supposed to last ?
Is there an "official way" to get warned if the authentication is out of date ? (I can tinker a crontab way to get warned but if there is an official one, it might work better)
Keep up the good work!

@niawag
Copy link
Contributor Author

niawag commented Oct 6, 2023

Here is my bash tinkering, hope it may help others:

#!/bin/bash
/usr/bin/python3 /path_to/radarr_sonarr_watchmon.py > /path_to/radarr_sonarr_watchmon.log 2>&1
if [ $? -ne 0 ]
then
    err=$(cat /path_to/radarr_sonarr_watchmon.log | grep -i error)
    /path_to/telegram.sh Servarr "*radarr_sonarr_watchmon ERROR*  $err" #using telegram bot to get the notification, could be other notification service
fi

@Herjar
Copy link
Owner

Herjar commented Oct 5, 2024

There is no official way to get warned, but I like what you are doing here. Thank you. I can add your bash script, or do you want to do a pull request?

@niawag
Copy link
Contributor Author

niawag commented Oct 6, 2024

Thanks, you can add it no problem !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants