Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (24 sloc) 1.18 KB
Copyright (C) 2012, Allison Randal.
Sam is a smart home appliance, or Smart Apartment Monitor (a backronym).
This code is distributed under the terms of the MIT License. For more details,
see the full text of the license in the file 'LICENSE'.
Before running Sam, you'll need several libraries. The core requirements are
ZeroMQ, and the python daemon library:
$ sudo apt-get install python-zmq
$ sudo apt-get install python-daemon
The TinkerForge brick APIs (used for collecting sensor data, like temperature,
humidity, and light levels) require a daemon downloaded from the TinkerForge
website, which depends on Twisted, GUDev, and libusb:
$ sudo apt-get install python-twisted python-gudev libusb-1.0-0
$ wget
$ sudo dpkg -i brickd_linux_latest.deb
If you want to do web scraping (for collecting weather information) install
$ sudo apt-get install python-beautifulsoup
For voice recognition, install PocketSphinx:
$ sudo apt-get install python-pocketsphinx gstreamer0.10-pocketsphinx
Sam can be started directly from the source directory with the command:
make testrun