diff --git a/README.md b/README.md index c6656ec..8685e1c 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,27 @@ -# ifttt-webhook-Disk-Usage-Analyzer +# Disk-Usage-Notifier -An IFTTT-Webhook for receiving emails automatically if your Disk Usage exceeds 90% in Ubuntu +An IFTTT-Webhook for receiving emails automatically if your Disk Usage exceeds 90% in Ubuntu v14 and above.
**Basic Dependencies**: * You must be using Ubuntu or any OS version which is based on Ubuntu v14.04 or above * You must have installed python3 or above versions -* You must have one working email account
**To make this work, follow these steps** -1. Download the repo using ```git clone https://github.com/KudosAbhay/ifttt-webhook-Disk-Usage-Analyzer.git``` -2. Create an account on [IFTTT](https://ifttt.com/) -3. Create an IFTTT Webhook - * Go to My Applets - * Click on Create New Applet - * Click on the “+” sign in the statement “If + this then that” - * Type ‘webhook’ and select Webhooks - * Click on ‘Receive a Web Request‘ option - * Enter Event Name - * Hit ‘Create Trigger’ - * Now click on “+” sign in the statement “If this then + that - * Type ‘Gmail‘ and select it - * Click on ‘Send an Email’ - * Type your email ID. Type ``` {{Value1}} ``` in To address, ``` {{Value2}} ``` in CC address, write any subject you want and in the Body Section type ``` {{Value3}} ```. - * Note Down the IFTTT Trigger Name (i.e Event Name which you have used for this Applet) - * Select Finish. Your ifttt-webhook is ready to be fired! -4. Note Down the IFTTT Key which you get [visit here](https://ifttt.com/maker_webhooks) and Click on Documentation Button -5. Insert Trigger Name, IFTTT Key, Your Email ID, Other Email ID to which CC shall be mailed in the Python Code +1. Download the repo using ```git clone https://github.com/KudosAbhay/Disk-Usage-Notifier.git``` +5. Insert your Email ID, Other Email ID which must receive a carbon copy of the same in the main Python Code on Line 29 6. Now run the code and see the output. If your Disk Usage has exceeded 90% in any of the disks, then you will receive an email. # To keep this running automatically in background on Ubuntu: -1. Type ``` chmod a+x Disk-Usage-Analyzer.py``` by going to the repo folder. This will make it executable. +1. Type ``` chmod a+x Disk-Usage-Notifier.py``` by going to the repo folder. This will make it executable. 2. Type ``` crontab -e ``` to open crontab editor. -3. To Run this program every minute use ``` */1 * * * * /usr/bin/python3 /folder/location/Disk-Usage-Analyzer.py ``` in crontab -4. Done! Disk-Usage-Analyzer.py can now send an email automatically at that specified time which you have mentioned in crontab if your Disk Usage exceeds more than 90%. +3. To Run this program every minute use ``` */1 * * * * /usr/bin/python3 /folder/location/Disk-Usage-Notifier.py ``` in crontab +4. Done! Your Disk-Usage-Notifier can now send an email automatically at that specified time which you have mentioned in crontab if your Disk Usage exceeds more than 90%.