• Skip to main content
  • Skip to primary sidebar

JKCrypto

Part 2 : Email Notification if Miner Goes Down

April 20, 2020 by Anuj Saini 5 Comments

Welome to the 2nd part of mining monitoring tutorial series. In this article you will get to know about how to get email notification if your mining rig goes down. We all know the frustration when we realize that our mining rig is not mining since x time. We manually cannot monitor the rig all of the time so some automated monitoring solution is needed.

Powershell script which I have provided below will rescue you in that case. If your rig crashes anytime or mining pool is down then you will be alerted via email regarding its crash. Thus saving your precious time in deciding what to do next ,after crash. Logging in via team viewer is one of the option.

Prerequisite : Part 1 : How to automatically restart miner after crash

After Part 2 Follow :

Part 3 : Automatically Connect to Different Internet Connection if one goes down

Part 4 : What if the whole system hangs up

Configuring Outlook For Gmail Account 

For this script you need to have desktop email client – outlook and a Gmail account.

  • Outlook comes prebundled with MS Office.

Configuring Gmail for IMAP

  1. Login to your Gmail account ( on which you want to receive email notification )
  2. On top right-click on gear icon >> Settings >>Forwarding and POP/IMAP.
  3. in “IMAP Access: ” choose Enable IMAP.
  4. Click on Save Changes

How to Set App Password in Gmail

  1. After login to Gmail, click on your profile picture >> My Account >>Sign-in & security.
  2. Scroll down and in “Signing in to Google” tab click on App Password.

    If you don’t see ” App Password ” enable “2 Step Verification” for your Gmail account first.


  3. In “Select app” choose “mail” and in “Select device” choose “Windows Computer”.
  4. Click on “Generate” and save the generated password for later use.

How to Configure Outlook for Gmail Account

  1. Start outlook
  2. Click File >> Account Settings >> New
  3. Click “Next” and select “Yes” >>”Next”
  4. On next screen choose “Manual setup” >> “Next”
  5. Choose “POP or IMAP” >> “Next”
  6. In “Add Account” enter the following information
    Your name: Enter your name
    Email address: Email your Gmail Address
    Account type: IMAP
    Incoming mail server: imap.Gmail.com
    Outgoing mail server (SMTP): smtp.Gmail.com
    User name: Your Gmail Address
    Password: Enter password which you got in step 4 of “How to Set App Password in Gmail”
  7. Click on “More Settings” >> “Outgoing Server” >> ” Outgoing Server (SMTP) requires authentication”
  8. Click on “Advance” tab and edit as shown in picture.
    Encryption type “SSL” in both.
    IMAP : 993
    SMTP : 465
    email notification
  9. Click “OK” >> “Next”.
  10. Outlook will test the connection, click close if test result is successful otherwise check entered details.

How to get Email Notification after Miner Failure 

  1.  Download script package Part 1 + Part 2.
  2. Configure as per Part 1 of this tutorial series.
  3. Following powershell code is added to Part 1  to make Part 2.
    #Enter mail id on which you want to receive notification
    $EnterYourEmailID = "[email protected]"
    
    
    $Outlook = New-Object -ComObject Outlook.Application
            $Mail = $Outlook.CreateItem(0)
            $Mail.To = $EnterYourEmailID
            $Mail.Subject = "Miner Down"
            $Mail.Body ="... Resetting Mininig Software `n `n For Mining Guides, Crypto News and Crypto Related Stuff Visit https://jkcrypto.com/ "
            $Mail.Send()
    
  4.  Considering you have already made changes as per “Part 1”. Now change “[email protected]” with email id on which you want to receive notification.
  5. Done, Part 2  “Email Notification if Mining Stopped” is complete.

Receiving Notification on Smartphone

Although you will receive email notification on your smartphone regarding “miner down”.If you don’t want to get notified via Gmail mobile app then you can do the following to receive instant notification on your smartphone.

1. Visit this link

2. Get Started >> Login with your google account >> Turn on the applet.

3. Give permission to ifttt

4. Turn on notification and enter your email id.

5. Download ifttt app on your smartphone Android IOS

6. Install and login with your Gmail account.

7. That’s it, you will receive notification on smartphone if mining stopped.

I have made this mining monitoring tutorial as easy as possible. If you are still facing any issues don’t hesitate to ask via comments below. To appreciate my work you can give this article a share.

Anuj Saini

I write about Crypto mining, trading, referral programs. I have been in the cryptocurrency industry for the last 4 years.

Filed Under: Monitoring Tagged With: auto mining, auto script, automated mining script, automatic, automation, batch script, crypto mining, email notification, how to guide, miner down monitor, mining, mining monitoring, mining tracking, monitor miner, monitoring, notification, powershell script, tutorial

Primary Sidebar

Search

Recent

  • Binance Futures Referral Code: JKCRYPTO, Free $500 Welcome Bonus
  • AAX Referral Code: WNvPmcxA2Qo6, Earn 40% Referral Commission
  • OKEx Referral Program : $10 On Signup + Referral Bonus
  • FTX Referral Program : 30% referral commission + 5% fee Discount for Referrals
  • Binance Referral Code: 10186109, 25% Discount

More to See

Binance Futures New Users

Binance Futures Referral Code: JKCRYPTO, Free $500 Welcome Bonus

AAX Referral Code: WNvPmcxA2Qo6, Earn 40% Referral Commission

okex exchange

OKEx Referral Program : $10 On Signup + Referral Bonus

FTX Feature Image

FTX Referral Program : 30% referral commission + 5% fee Discount for Referrals

Bitcoin, Altcoins, Referral Codes, Mining, Crypto News