NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 … 16 17 18 19 20
Detect and email HDHomeRun lineup changes

 
  • 0 Vote(s) - 0 Average
Detect and email HDHomeRun lineup changes
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#1
2011-02-25, 11:58 PM (This post was last modified: 2011-08-04, 04:46 PM by wtg.)
This was really in the wrong forum... it's not a plug-in or skin. Moved thread to the Community Announcements.

Can't figure out how to remove this messages attachments Sad
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#2
2011-02-25, 11:59 PM (This post was last modified: 2011-02-28, 09:17 PM by wtg.)
I hope you find the script useful. I've had it - or it's predecessor anyway - running for about 2 years and as annoying as it is to have lineup changes, it's at least nice to know about them before you lose a week of scheduled recordings.

By the way, if you do find out about a lineup change, you should then re-run a channel scan through the HDHomeRun's GUI since it'll download the up-to-date channel names and update the XML file. I wish the command-line utility would do that for you, but it doesn't

If you're interested, here's my "To Do" list for the script.

* inform you which, if any, scheduled recordings are in jeopardy because of a lineup change
* pause if tuner in use, waiting for it to free up.


If you have any ideas yourself on how to improve it, by all means share them.
Tim

P.S. Despite having the -WindowStyle Hidden option on the PowerShell command line, the window will flash up on the screen momentarily. This is a known bug in PowerShell that'll hopefully be fixed soon.
ydekmekji
Offline

Posting Freak

Posts: 824
Threads: 275
Joined: Jan 2005
#3
2011-02-26, 03:06 AM
This is incredible! I love it! Thank You... plan to do it and will let you know how it works for me
If you want to know why nPVR is the bomb, ask my wife!
ydekmekji
Offline

Posting Freak

Posts: 824
Threads: 275
Joined: Jan 2005
#4
2011-02-28, 07:17 AM
got everything working except the email part... will keep tweaking Smile
If you want to know why nPVR is the bomb, ask my wife!
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#5
2011-02-28, 02:07 PM
I'm curious what problem are you running into with the email? I'm probably going to make this available over on Silicon Dust's website where it'll have a wider audience and so it'd be helpful to know what problems you're having.
ydekmekji
Offline

Posting Freak

Posts: 824
Threads: 275
Joined: Jan 2005
#6
2011-02-28, 04:03 PM
Here's the error

Quote:Send-MailMessage : A positional parameter cannot be found that accepts argument 'False'.
At C:\Users\Public\NPVR\HDHR\qam_scan.ps1:142 char:19
+ Send-MailMessage <<<< -To $Mail_To `
+ CategoryInfo : InvalidArgument: (Smile [Send-MailMessage], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SendMailMessage

and here's the settings in the script

Quote:# Email settings
$Mail_Server = "smtp.att.yahoo.com" # name or IP address of your SMTP email server
$Mail_Subject = "Scan results"
$Mail_To = "e********i@gmail.com" # To whom the email should be sent
$Mail_From = "y******i@sbcglobal.net" # Email should appear "from" this user
$Mail_User = "y******i@sbcglobal.net" # Username for logging into mail server, if required.
$Mail_Pwd = "****" # Password for logging into mail server, if required
$Mail_UseSSL = $true # set to $true if your mail server requires SSL - most don't
$Mail_Body = @"
Differences were detected in the most recent channel scan. See the attachment. If new channels
have been found
"@

i've put stars to protect for privacy
If you want to know why nPVR is the bomb, ask my wife!
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#7
2011-02-28, 05:25 PM
My apologies... the script is not correct for dealing with an SSL connection to the mail server. My email server doesn't require this and I hadn't tested it.

I'll make what I think are the necessary changes and test it this afternoon.
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#8
2011-02-28, 09:20 PM
Ok, I've updated the script to deal with yahoo and gmail smtp mail servers. I'm not sure if it'll work with your smtp.att.yahoo.com mail server but I've confirmed it works with the standard smtp.mail.yahoo.com mail server at least. Let me know how you make out.
ydekmekji
Offline

Posting Freak

Posts: 824
Threads: 275
Joined: Jan 2005
#9
2011-03-01, 04:03 PM
Is the new updated script in first post of this thread?
If you want to know why nPVR is the bomb, ask my wife!
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#10
2011-03-01, 04:09 PM
Yeah it is. Let me know how it works for you.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NPVRConflicts - Email you if there are recording conflicts danorum 16 17,554 2016-02-03, 04:07 AM
Last Post: meccano
  Email from Schedules Direct regarding end-of-life notification for API 2014-05-30 wlmasonii 5 2,895 2015-07-10, 02:30 AM
Last Post: rkulagow

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode