ewen.chou echo chamber

Putting It All Together

I’ve now blogged about most of the pieces I needed for my morning greeter project. So now it’s time to write about putting it all together into a single, working solution.

Here’s a quick recap of the pieces so far:

  1. Raspberry Pi with Bluetooth USB Adapter
  2. Alexa Voice Service Client
  3. Text-to-Speech
  4. Custom Alexa Skills:
  5. Bluetooth Proximity Detection

Alexa Agent

To make it easier to...

Bye-Bye Yahoo (... Finance API)

Thanks to killerbutterfly2 on Github, I found out that the Yahoo Finance API endpoint that I used when I wrote ASKing for Stock Quotes has gone away. Which (of course) meant that my Alexa Skill stopped working as well.

After combing through Internet search results (all of them were out-of-date) for longer than I care to admit, I finally gave up trying to find an alternative API that was free and easy-to-use.

Then it dawned on me that...

Bluetooth Proximity Detection

Since getting my Raspberry Pi 2 back in February, I’ve wanted to build a gadget that could detect when I’m nearby and take some action. This was the underlying idea for my morning greeter project.

TLDR; I used Bluetooth to check if my iPhone/Apple Watch was nearby. Here’s the code.

A quick search on the Internet shows that the usual way of doing something like this with a Raspberry Pi is through a PIR (Passive Infra...

ASKing for Traffic

Now that we have ways to get the weather, news, and stock quotes, the last piece of information needed for my “morning greeter” program is the traffic.

There are many ways to get traffic conditions but one of the most popular (if not the most popular) ways is Google Maps. A quick web search revealed that it provides an API with various price plans depending on the platform.

For this project, I...

ASKing for Stock Quotes

Another skill I needed for my “morning greeter” program was a way to get stock quotes for multiple companies at a time. Similar to getting news, there are many sources on the internet for getting this information. A popular website for getting stock quotes is Yahoo Finance which also happens to provide a webservice the fits my needs exactly. It allows querying multiple ticker symbols in a single request and can return the data in JSON format.

...