Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
KudosAbhay authored Oct 17, 2017
1 parent c3a2a2f commit 6ad0ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Disk-Usage-Notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
#Check if this value is > Threshold Value
if(temp > threshold):
conn = http.client.HTTPSConnection("maker.ifttt.com")
payload = "{\n\t\"value1\" : \""+email+"\",\n\t\"value2\" : \""+ccemail+"\",\n\t\"value3\" : \""+message_to_post+"\"\n}"
payload = "{\n\t\"value1\" : \""+email+"\",\n\t\"value2\" : \""+cc_email+"\",\n\t\"value3\" : \""+message_to_post+"\"\n}"
headers = {
'content-type': "application/json",
'cache-control': "no-cache",
}
conn.request("POST", "/trigger/your_IFTTT_Trigger/with/key/your_IFTTT_Key", payload, headers)
conn.request("POST", "/trigger/Disk_Usage_Exceeded/with/key/pb6iH8iLldXveE6cp4EgA9eJhAvW6CwGzL4q77mI-iR", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Expand Down

0 comments on commit 6ad0ff9

Please sign in to comment.