ALright I started a new thread to get my python script working because its not about integration now but.....python.
For two days I have read countless webpages on python and cant get this to work:
import urllib
import random
def randomMsg(tts):
RogersS4APIKey= "(My APIKey)"
HeathersAPIKey= "Enter your API KEY here in quotes (in quotes defines it as a string in Python)"
ttsList=tts.split("|")
myMsg=random.choice(ttsList)
#vc.callAction("TTS.Speak",myMsg, None)
vc.callAction("Map.Get","WhoisTalkingtoJarvis&&who is talking to me",None)
myLastResult=vc.getObject("LastResult","")
if myLastResult == "roger":
urllib.urlopen("http://autoremotejoaomgcd.appspot.com/sendmessage?key="+RogersS4APIKey+"&message=jarvistalk=:="+myMsg)
if myLastResult == "heather":
urllib.urlopen("http://autoremotejoaomgcd.appspot.com/sendmessage?key="+HeathersAPIKey+"&message=jarvistalk=:="+myMsg)
vc.callAction("OSD.ShowText",myMsg, None)
#if you want to use VC, uncomment (remove #) the following line:
#vc.callAction("Scrape","http://autoremotejoaomgcd.appspot.com/sendmessage?key="+RogersS4APIKey+"&message=jarvistalk=:="+myMsg,None)
I have read where not to use tab and only use 4 spaces and reworked my call.action and still gives my an error.......I am at the point of breaking my monitor, may I have a little guidance.