Internet is filled with all kinds of useful information. We are going to build a gadget in this Instructuble using Intel Edison that you can easily use to gather the information and speak out the information using TTS (text to speech synthesis software).
The information available on Internet is aggregated into what is known as RSS feed which stands for Rich Site Summary/Really simple syndication.
This web technology is used to update frequently changing information such as News, Stock price, weather etc... Let's say you need to know the stock price of a corporation. There are plenty of web services that update this particular information and each service provider assigns an unique address for the stock price of your favorite corporation when you access this address, as a response you get the current stock price (with some added meta data). For user input, we are going to use an infrared proximity sensor such as this one to detect the user action and to determine what information the user wants from the Internet.
How does it work? The main interface between the user and the device is an IR proximity sensor. These sensors get triggered whenever some obstacle is placed in front of the sensor. Various operations are triggered depending on number of times the sensor is triggered (operations are configurable). Here are the features:
Have a look at the attached video to see the above features in actions. For TTS, espeak will be used. We will also need an USB sound card which when connected to a speaker, will speak out the information.
This is same as this project done on Galileo.
We need to have access to the Edison console to install packages have a look at this post to know how you can do that.
The packages that we need are on different server than the default one. We need to add additional repository.
Add additional repos by editing the base-feeds.conf file using vi
hit 'i' to start editing the file and paste the following lines
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
Then press 'Esc' key and then ":wq" to save the file and exit.
Install the espeak using following commands:
opkg update opkg install espeak
Next, we need to install python packages for parsing the RSS feeds and managing the gmail account related features.
But before that, we will need to boot strap setup utilities in python so that we can install Python libraries. Following steps will install python setup tools and "pip" onto your Edison.
Install feedparser with following command
pip install feedparser
Next, we need to install GMail for python
wget --no-check-certificate https://github.com/charlierguo/gmail/archive/master.zip
python setup.py install cd