-
Notifications
You must be signed in to change notification settings - Fork 0
Install on Raspberry Pi
Chris Rowe edited this page May 3, 2015
·
18 revisions
- Raspberry Pi – Grab one from http://www.adafruit.com/products/2358 if you don't have one already
- 8GB SD Card (Smaller cards may work)
- Sensor
- Hardware: keyboard, mouse, hdmi cable + power supply + usb cable + ethernet cable + monitor
- Install OS: instructions to setup NOOBS are the easiest way to install if you did not get a card with Raspian pre installed.
- Hardware: console cable + ethernet cable
- Install OS: Download + install (Raspian)
- Connect: using a console cable
- I ended up using the second link to install the driver but it did not work. To fix this I found http://zittlau.ca/fix-usb-serial-console-on-raspberry-pi-for-yosemite/ You could avoid this issue by using the first link, though I think the link I found has a newer version.
- Hardware: ethernet cable + power supply + usb cable
- Install OS:
- Connect:
sudo apt-get update
// This makes sure your package list is up to date.
sudo apt-get install lsb-release
// Install
lsb_release -a
// Run
You should see
Distributor ID: Debian
Description: Debian GNU/Linux 7.x (wheezy)
Release: 7.x
Codename: wheezy
$ node --version
// v0.10.x is recommended if you will be interacting with USB devices
wget http://node-arm.herokuapp.com/node_0.10.36_armhf.deb
sudo dpkg -i node_0.10.36_armhf.deb
# Check version again
node -v
mkdir drivers
cd drivers
git clone https://github.com/openpipekit/opk-temper1-cli.git
git clone https://github.com/openpipekit/opk-phant-cli.git
./opk-temper1-cli/install
sudo ./opk-temper1-cli/detect
sudo ./opk-temper1-cli/pull --path 0001:0005:01 --scale farenheit
sudo ./opk-temper1-cli/pull --path 0001:0005:01 --scale farenheit | ./opk-phant-cli/push --url data.sparkfun.com --public_key NJymJmGb9otlJgXpJRVz --private_key 5dyndn9mb1tE26ev2WAn --field_name temp
watch -n60 "sudo ./opk-temper1-cli/pull --path 0001:0005:01 --scale farenheit | ./opk-phant-cli/push --url data.sparkfun.com --public_key NJymJmGb9otlJgXpJRVz --private_key 5dyndn9mb1tE26ev2WAn --field_name temp"
- Use screen to keep pipe watch running without having to keep the terminal open http://aperiodic.net/screen/quick_reference
- If you are deploying several pis you might be able to use the cheaper and lower power consumption Raspberry Pi Model A+ https://www.adafruit.com/products/2266
screen /dev/cu.usbserial 115200
detach C-a d
screen -x