Install BOINC on a Pi

  1. Update software with sudo apt-get update and sudo apt-get upgrade
  2. Install Bonic with sudo apt-get install boinc
  3. Connect to account manager with boinccmd –join_acct_mgr URL name password

State queries

Show CPU/GPU/network run modes and network connection status (version 6.12+)
Show complete client state
Show tasks
Show projects and active tasks
Show file transfers
Show status of all projects
List URLs of attached projects, one per line
Show disk usage by project
Get proxy settings
–get_messages seqno
Show messages with sequence numbers beyond the given seqno
Show host info
–version, -V

Setup a new Pi

  1. Win 32 Disk Imager to write the Raspbian image to sd card.
  2. Boot Pi
  3. Using sudo raspi-config change the following
    1. Hostname
    2. Password
    3. Enable SSH
    4. Resize filesystem
    5. Boot options
    6. Timezone
  4. Update software with sudo apt-get update and sudo apt-get upgrade



Run sudo apt-get update and sudo apt-get upgrade -y to ensure your system is up to date.
The temperature and humidity refers to a time of the day. For the data to be correct, your timezone must be set correctly. When you execute date you should see the local time. If not, then you can set the correct timezone in sudo raspi-config.
To communicate with the sensor, the Adafruit_Python_DHT library is used. It talks to the GPIO pins without using the Wiring Pi library. To install it, get the dependencies with
sudo apt-get install -y build-essential python-dev git and then download and install the library with

mkdir -p /home/pi/sources  
cd /home/pi/sources  
git clone  
cd Adafruit_Python_DHT  
sudo python install  

Now you can already get the temperature and humidity with the command
sudo /home/pi/sources/Adafruit_Python_DHT/examples/ 2302 4. The first argument is the sensor type, it can be 11 or 22 or 2302. The second argument is the RPi GPIO pin which is connected to the sensor data pin.Actually the sensor can be queried from any Python script with just two lines of code. You can try this by starting Python interactive with sudo python then in the interactive mode type

import Adafruit_DHT  
humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.AM2302, 4)  

Press Ctrl-D to quit Python interactive mode.