Raspberry Pi WiFi Config

Below are instructions on how to configure a wifi adapter on the Raspberry Pi.

O/S – Raspbian Jessie Lite

  1. Login to the RPi  (username:pi password:raspberry)
  2. Input the following string, this loads the wifi config file into a text editor;
    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
  3. The config file should already have something like the below in it;
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  4. Add the below lines into the config file, replacing the XXXX’s with your WiFi info;
  5. So, once the new lines have been added, you config file will look like this;
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  6. To close the editor and save the file, press Ctrl and X then select ‘Y’ and then the ‘Enter’ key.
  7. The system should recognize the config change and connect with wifi adapter after a couple of seconds, it it doesnt – restart the Pi using the following command.
sudo reboot


Raspberry Pi Enable Cron log

By default, logging of Cron is disabled. To enable this log function, follow the steps below:

Use the below command to open up the ‘rsyslog.conf’ fine in the Nano editor

pi@rpi2 /etc $ sudo nano rsyslog.conf

Once the rsyslog is loaded into nano, navigate to the below section and un-comment the ‘cron’ option

# First some standard log files.  Log by facility.
auth,authpriv.*              /var/log/auth.log
*.*;auth,authpriv.none          -/var/log/syslog
cron.*                          /var/log/cron.log
daemon.*                        -/var/log/daemon.log
kern.*                          -/var/log/kern.log
lpr.*                           -/var/log/lpr.log
mail.*                          -/var/log/mail.log
user.*                          -/var/log/user.log

Save the document by pressing CTRL X, Y to confirm the file name and then Enter to comit the save, nano will then close.

Reboot the Raspberry Pi:

sudo reboot

Raspberry Pi Real Time Clock (RTC)

How to setup a Real Time Clock on a Raspberry Pi B v1.1


If you didn’t know, the Raspberry Pi doesn’t hold the time very well, this is because there is no on board Real Time Clock.


To keep the devices time accurate we need to add a module that holds the time whenever the RPi has no power running to it and then updates the RPi with the time saved on the battery powered module when the full power is restored and the system starts running again.

Continue reading Raspberry Pi Real Time Clock (RTC)

piTank Power Bar v1

To run the mains powered electrical items of the piTank I wanted a remotely controllable power bar connected to the same Raspberry Pi as the piTank software.

Future post:The piTank power bar will include input connections for thermal probes, water sensors, switch inputs and an external connector to a viewing panel mounted on the front of the cabinet.

What is the first thing you do when you have a good idea, Google it to see if anyone has done the same!

Continue reading piTank Power Bar v1