<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">On Tue, Aug 6, 2024 at 2:37 PM George Bingham <<a href="mailto:georgeb1962@gmail.com">georgeb1962@gmail.com</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 6, 2024 at 8:29 AM Peter Bennett <<a href="mailto:pb.mythtv@gmail.com" target="_blank">pb.mythtv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 8/6/24 06:10, James Abernathy wrote:<br>
> Peter, with ntfy.sh can this replace using email from a program? I <br>
> currently use mail to send notifications using a gmail account, but <br>
> that is such a pain to set up.<br>
><br>
> Maybe when I rebuild my backend, I could use ntfy.sh to have my <br>
> mythtv-database-backup.service systemd routine notify me.<br>
><br>
> Jim A<br>
<br>
I was sending text messages by email to get notified on my phone, but <br>
that was very unreliable. I have been using ntfy for about 6 months now <br>
and it works well. You have to set up a unique topic name, I used my <br>
name and phone number as topic name.  You could use a random string of <br>
letters and numbers as topic. It is not secure, anybody who knows your <br>
topic can see your messages.<br>
<br>
Email from a gmail account has stopped working for me. You had to get a <br>
special password from google, but suddenly that stopped being accepted <br>
and I cannot see where on the google web sites to set up or fix that <br>
special application password for the gmail account.<br>
<br>
Peter<br>
<br></blockquote><div><br></div><div><br></div><div>Thanks for these ideas. I will look into ntfy.</div><div><br></div><div>However, I have made progress. I can set the DBUS  session address for my script such that user mythtv can run sudo -E -u <myuser> kdeconnect--cli. I have that working, but it requests mythtv's password, which won't work from within the script. </div><div><br></div><div>I have added this line to the sudoers file:</div><div><br></div><div>mythtv ALL=(george) NOPASSWD: /usr/bin/kdeconnect-cli *</div><div><br></div><div>which should allow mythtv user to run sudo -E -u george /usr/bin/kdeconnect-cli -d <blah blah blah></div><div>But it still prompts for password when I attempt that in a shell (and so my script fails).</div><div><br></div><div>What else needs to be done on ubuntu to make this work without a password prompt???</div><div><br></div><div>(I know that's a ubuntu question, but y'all have more experience with these thing than I , so hoping you've dealt with this sort of thing before).</div><div><br></div><div>Thanks!</div><div><br></div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace">Research 'sudoers no passwd' - it will get you where you are going.</div></div></div>