Software stack for project_noe gateways
Flash SD card with RASPBIAN JESSIE LITE, guide can be found here
Connect to Raspberry PI zero using SSH - username: pi password: raspberry
YOU SHOULD CHANGE PASSWORD FOR pi USER or create another user and disable ssh for pi
Run the following command to enable SPI interface:
sudo raspi-config
Enable SPI
Update and upgrade through apt-get
sudo apt-get update && sudo apt-get -y upgrade
To apply changins RPi needs to reboot
sudo reboot
Login to RPi again with new password which you set for pi user
Install git with apt-get
sudo apt-get install git -y
Install docker
sudo curl -sSL https://get.docker.com | sh
Install docker-compose
sudo pip install docker-compose
Select directory where software for project_noe should reside
cd /opt
Clone project_noe gateway repository
sudo git clone https://github.com/IoT-BA/project_noe-gateway
Descend to project_noe-gateway directory
cd project_noe-gateway
Change VALUES for ###GATEWAY_ID###
, ###MQTT_USER###
, ###MQTT_PASS###
for values which were provided for you during gateway registration
Run docker-compose which will run dockerized gateway stack
docker-compose up --build --force-recreate -d --remove-orphans