Introduction: Smart Alarm Clock - Intel Edison - Iot RoadShow - São Paulo

One of the great virtues of anyone who lives or works in a big city is time management. Nowadays the trips are constant and, as traffic is one of the main factors.

Thinking about it, I made a small application that uses the integration with Google Maps and Google Calendar. Basically, the user schedules the appointment on Google Calendar and application uses the parameters of the scheduled commitment to say what time will he should be awake or begin to prepare. The big advantage is, depending on the time of day, traffic conditions are going to be changing and time to arrive too. Therefore, the application saves your time by calculating the time and monitoring the traffic of the site and does it for you.

Step 1: Google Calendar

The first step was to create an ID to access my Google calendar so you could access through the application and not the common interface of Google Calendar. For that I accessed the site https://console.developers.google.com.t's all very well explained in https://developers.google.com/google-apps/calendar.

Step 2: Google Maps

To calculate the time of route between the place I chose and the location of the appointment, I used Google Maps. The Javascript API is very easy to use.

Basically is to create a map, pass a route for him to draw and to this event to retrieve the duration parameter. Once this is done, we have the inputs required to perform the calculations and sound our alarm when necessary.

Step 3: Extras

We're almost ending, and to calculate the correct time we need one more information: how long will it take since waking up to get out of the house. This parameter is important so that you don't have to do anything in a hurry. In the example, I used 30 minutes what I understand to be a good time to take a shower and get out of the house.
In addition, I setup the page to play a video from Youtube whenever the time is equal to the current time. In this case, use the video below: :)

Step 4: Finalize

To finish the project, put the html file in the same folder as my web server Python that I made by following the steps in this tutorial https: wiki.python.orgmoinBaseHttpServer

I accessed my Edison via console and typed the command python HTTPServer.py. Done, our Web server running and we can access the url that was configured and view the results of our page. Intel Edison proved to be a very stable platform and with huge potential for the development of solutions for IoT. I'm offering the source code in this post.

Bedroom Contest

Participated in the
Bedroom Contest