Hello,
I'm writing a few very simple Python scripts. I've searched through the documentation, IOM, examples, and Python beginner websites.
I'm wondering where I could find documentation for some of the functions that seem to be available to Indigo scripts?
For example, I was writing a script to email a trigger notice with date and time if the Smoke Alarm went off. I found the examples for sending an email – those are almost enough.
One thing I want to do is append the date and time. I came up with (almost by luck):
theBody = "Indigo Smoke Alarm Trigger\n" + str(indigo.server.getTime().date()) + "\n" + str(indigo.server.getTime().time())
I see in the IOM documentation where indigo.server.getTime() is documented, But I don't see where .date() or .time() is documented. Where would these be documented? Are these two actually part of the Python language?
I'm sure there has got to be a better way to append the date and time to a string. Again, would that actually be part of Python rather than Indigo?
Thanks,
Barry.