-
Notifications
You must be signed in to change notification settings - Fork 21
Configuring a raspberry pi for DoseNet
Ali Hanks edited this page Jul 19, 2018
·
5 revisions
- There are several options for the operating system for a Raspberry Pi in general, but all of our development and testing has been done using Raspian, the officially supported OS for Raspberry Pis, which you can find here
- There is also helpful documentation on how to copy the OS image to the SD card for your Raspberry Pi
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y screen isc-dhcp-server lighttpd
sudo apt-get install -y python python-dev python-pip
sudo pip install ipython
sudo pip install RPIO
sudo apt-get install python-rpi.gpio
sudo pip install datetime pycrypto jupyter
sudo pip install --upgrade numpy
sudo pip install matplotlib
-
cd ~; git clone https://github.com/bearing/dosenet-raspberrypi.git
- This will be enough to run all of our data acquisition for our sensors
-
cd ~; git clone https://github.com/bearing/dosenet-web.git
- Provide tools/pages for using the RPi to host a basic web-based display of DoseNet and a jupyter notebook interface that can be viewed when connected to the RPi over the AdHoc network for data analysis
-
cd ~; git clone https://github.com/bearing/dosenet-analysis.git
- All of the software tools and jupyter notebooks used for data analysis
- Instructions for setting up the RPi to create an AdHoc network can be found here
- Instructions for setting the RPi up to host a jupyter notebook and how to view it can be found here
sudo ln -s ~/dosenet-raspberrypi/main.sh /etc/init.d/main.sh
cd /etc/init.d
sudo update-rc.d -f main.sh remove
-
sudo update-rc.d main.sh defaults
This copies the DoseNet service to the startup folder and updates other system entries as appropriate. See /etc/rc2.d/ etc. for the relevant symbolic links made (no action should be taken).
- The config (
config.csv
) and public key (id_rsa_lbl.pub
) files required for connecting to our data server and are provided by the DoseNet team when a new device is ready to be added to the network. - Once received, these should be copied to
~/config/