No channels option.So how do I go to the maker channel and build my own recipe
IFTTT keeps changing its UI and hence we have removed the support for it
I want to send an email on trigger.
Hi ,
You can use Bolt Cloud API and Mailgun service to send a mail. Refer this snippet.
import json
import time
import requests
def send_simple_mail():
return requests.post(
"https://api.mailgun.net/v3/samples.mailgun.org/messages",
auth=("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"),
data={"from": "Excited User <excited@samples.mailgun.org>",
"to": ["devs@mailgun.net"],
"subject": "Hello",
"text": "Testing some Mailgun awesomeness!"})
while True:
time.sleep(5)
# Replace api_key with your api key that you will get from bolt cloud
# Replace device_name with your original device name
response = requests.get('http://cloud.boltiot.com/remote/api_key/analogRead?pin=A0&deviceName=device_name')
data = json.loads(response.text)
if data['value'] > 10:
print "temperature is=", data['value']
print "sending sms"
send_simple_mail()
else:
print "temperature is=", data['value']
print "temperature is normal"