You said above that you wanted the temperature to be read aloud. That's what the script above does. Your questions don't really have anything to do with the plugin, but rather how to work with Indigo itself.
If you want to send an email every fifteen minutes with the temperature, you would do it like any other Indigo email notification. As I said above, I would recommend the Better Email plugin. But if you wanted to use Indigo's built-in email facility, instead of the script above, you would use this script instead (we're using a script here because of the custom message you want to send). Be sure to change the device ID and put in the proper email address.
- Code: Select all
dev = indigo.devices[1909647006]
temp = dev.states['temperature']
now = indigo.server.getTime()
a = u"email@mail.com"
s = u"Current Temperature"
b = u"The temperature at {0:%H:%M %p} was {1}º Celsius.".format(now, temp)
indigo.server.sendEmailTo(a, subject=s, body=b)
If you have any other questions about how to use Indigo, I would recommend very strongly that you read the documentation and post your questions to the
proper forum.
Cheers.