# keezer-pi
Client/Server code for building a Keezer with a Raspberry Pi

## Pi setup
Edit /boot/config.txt

Add
  dtoverlay=w1-gpio

# keezer-pi
Client/Server code for building a Keezer with a Raspberry Pi

## Complete setup guide
Download the raspbian lite image and put it on a micro SD card.

### Configure keyboard (and enable SSH)
`sudo raspi-config`

### Set the machine name
`sudo vi /etc/hosts`
`sudo vi /etc/hostname`

### Backup your wpa_supplicant
`sudo cp /etc/wpa_supplicant/wpa_supplicant.conf ~/wpa_supplicant.conf.bac`

### Connect to Wi-Fi
`wpa_passphrase "network_name" "passphrase" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null`

Then go edit the wpa_supplicant.conf to not have the password

`wpa_cli -i wlan0 reconfigure`

Check with

`ifconfig wlan0`

### Configure Wi-Fi to connect on boot
Set interface wlan0 in dhcpcd.conf

### Update Pi
`sudo apt-get update`
`sudo apt-get upgrade`

### Enable 1 wire interface
Edit /boot/config.txt

Add dtoverlay=w1-gpio

Then reboot the pi

`sudo shutdown -r -t 0`

### Install vim, git, and pip
`sudo apt-get install vim, git, pip`

### Clone the repo
`git clone https://github.com/jjulik/keezer-pi.git`

### Configure keezer-pi
Copy the keezer-pi.config.example to keezer-pi.config

Then edit the settings

### Install keezer-pi
`sudo ./install.sh`

Reboot the pi once more

`sudo shutdown -r -t 0`

And everything should be working correctly now


Update readme with instructions on how to setup keezer-pi from scratch
Update readme with instructions on how to setup keezer-pi from scratch