Code Monkey home page Code Monkey logo

chronos-ios's Introduction

Chronos

This project is meant to be a proof-of-concept IoT based system. This project models an automated alarm system based on when the user enters and exits their home.

How It Works

Watch a tutorial video here

  • The user downloads the iOS application that tracks their location and notifies the system when the user enters or exits thier home. The user is able to input their home address and update their sleeping preferences in order to let the system better determine their wake up time.

  • The system will be using ngrok to expose our local server (local host 5000) to the web to allow our iOS application to post location events to the system.

  • The inner system will be running on Flask to execute a python module (chronos.py) to then check the user's Google calendar and see their events for the next day and set their alarm based on their schedule as well as user defined preferences.

  • The python module generates two wav files: (1) a wake file to trigger Alexa to litsen and (2) a content file with command for Alexa. It then sends the audio of these files from the computer to the Echo. Here the Echo plays the files, firstly the wake file, which triggers the Echo to begin litsening. It then plays the second file (the command) which tells Alexa what to do.

Dependencies

  • Google's speech-to-text: pip install gtts
  • Flask pyton framework: pip install flask
  • Google Calendar API Crednetials
  • Google's API client package: pip install --upgrade google-api-python-client
  • ngrok: https://ngrok.com
  • Xcode:

Limitations

Because Amazon does not support 3rd party applications accessing Echo's alarms, this project had to be implemeneted in a very hackish manner. I hope that soon Amazon allows its users more access to the core of the Echo's to make them more programmable. This project would be able to be run easily on a Raspberry Pi running Pylexa or something of that sort, however, I wanted to develop a project that utilzed the traditional Echo.

To Do

A big enhancement can be performed by integrating a system that can determine when the user is going to sleep rather than just arriving home.

chronos-ios's People

Contributors

dwallach1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.