My use case:
I have a script that logs into the TMobile website to scrape some data and enter that data into an Indigo Variable. The website sometimes requires text code validation, so I use iMessage to send myself a text requesting that code. I respond with the code (which iMessage Plugin by default populates into a variable) and the script continues to log into the website.
My iMessage Code:
- Code: Select all
def getvalidcode():
# This function asks Ryan for the code that is sent by TMobile and returns it
code = ''
indigo.variable.updateValue(1891301906, value="")
messagevariable = "Please send the TMobile confirmation code"
imessageID = 'com.GlennNZ.indigoplugin.iMessage'
imsgPlugin = indigo.server.getPlugin(imessageID)
imsgPlugin.executeAction('sendMessage', props={'message':messagevariable, 'buddyId':'ryanbuckner@gmail.com'})
while len(code) != 6:
time.sleep(15)
code = indigo.variables[1891301906].value
return code
The error: something below about an audio file seems off
- Code: Select all
Aug 25, 2022 at 9:59:33 AM
iMessage Plugin Debug newlist after checking audio file:[('ryanbuckner@gmail.com', '623625')]
iMessage Plugin Error iMessage Received from Buddy(s): Buddy(s) Handle Below:
iMessage Plugin Error ryanbuckner@gmail.com
iMessage Plugin Debug updatevar run.
iMessage Plugin Debug newlist after checking audio file:[('ryanbuckner@gmail.com', '623625')]
iMessage Plugin Error iMessage Received from Buddy(s): Buddy(s) Handle Below:
iMessage Plugin Error ryanbuckner@gmail.com
iMessage Plugin Debug updatevar run.