omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Amazon Echo Programming with Pythonista

    Pythonista
    1
    1
    2180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TutorialDoctor
      TutorialDoctor last edited by TutorialDoctor

      I'm interested in using Pythonista to program Alexa skills. Currently I am playing around with a chatbot script I made a while ago and using the speech module to have the iPad talk to Alexa (really fun). I'm wondering if someone has already created a smart home module that can connect to various devices or not.

      I did find a video of someone using Python to create skills. https://www.youtube.com/watch?v=cXL8FDUag-s

      I feel I am on to something. Anyone done anything with smart home devices? Perhaps HomeKit in Pythonista would be cool? A little program I am playing with below:

      import speech
      
      def talk(x):
      	speech.say(x,"en-au",.5)
      	
      commands = {"key":"value",
      "end":"end",
      "brief":"flash briefing",
      "stop":"stop",
      "simon":"simon says: What is your favorite animal?",
      "1":"volume to 1",
      "2":"volume to 2",
      "3":"volume to 3",
      "4":"volume to 4",
      "5":"volume to 5",
      "6":"volume to 6",
      "7":"volume to 7",
      "8":"volume to 8",
      "9":"volume to 9",
      "10":"volume to 10",
      "bible":"play bible app",
      "?":"What can you do?",
      "weather":"What's the weather like?",
      "movies":"What movie's are playing",
      "joke":"Tell me a joke.",
      "inspire":"Inspire me."
      }
      
      def Main():
      	running=True
      	while running:
      		command=input('Type a command :')
      		if command != "end" or "the":
      			try:
      				talk("Alexa, "+commands[command])
      			except: talk(command)
      		if command=='end':
      			return False
      		if command=='...':
      			talk(command)
      			
      # FUNCTIONS
      #-----------------------------
      Main()
      
      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      Powered by NodeBB Forums | Contributors