This is a repo for exploring IoT (Internet of Things) using Single Board Computers (SBC).
- Raspberry Pi 3 Model B+ –or– Pi Zero WH
- Enviro+ pHAT –or– Sense HAT
- U-blox7 GPS/GLONASS — (optional)
- Sabre Water Leak Alarm — (optional)
- Raspian (Buster)
- Python 3.7
- cd IoT
- mkdir data
- mkdir logs
- chmod 755 *.py
-
sudo apt-get install git
-
pip install spidev
-
pip3 install spidev
-
pip install RPi.GPIO
-
pip3 install RPi.GPIO
- pip install iotc
- pip3 install iotc
- curl -sSL https://get.pimoroni.com/enviroplus | bash
- pip install sense_hat
-
sudo apt-get install gpsd gpsd-clients python-gps
-
pip install gps
-
pip3 install gps
Testing:
- cgps -s
- gpsmon
- cd IoT
- nano config.py
- cd IoT
- ./enviro.py –or– ./sensehat.py — (required)
- ./ublox7.py — (optional)
- ./msiotcd.py — (required)
- cd IoT/data/logs
- tail -f msiotc.log