Home Weather Station
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libmosquitto-dev libmosquittopp-dev libssl-dev
mkdir ~/home/pi/git && cd ~/git
git clone https://github.com/eclipse/paho.mqtt.c.git
cd paho.mqtt.c
cmake -DPAHO_BUILD_STATIC=TRUE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_WITH_SSL=TRUE
make
sudo make install
mkdir build
cd build
cmake ../
make
./RaspiStation
- I used this repository to find a correct way of getting the data from my sensors: https://github.com/ControlEverythingCommunity
- Base64 source code from: https://renenyffenegger.ch/notes/development/Base64/Encoding-and-decoding-base-64-with-cpp