Home Automation with Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
Line 41: | Line 41: | ||
Use the graphical interface or some CLI (apt) tool. Setting up WiFi might help :) | Use the graphical interface or some CLI (apt) tool. Setting up WiFi might help :) | ||
=== Install Tools === | |||
# dpkg --configure -a | |||
# apt-get install locate | |||
# apt-get install gnuplot | |||
# apt-get install git | |||
Since there seems to be no kernel module for DHT11, do this: | |||
# cd /home/pi/var/humidity_and_temperature | |||
# git clone git://git.drogon.net/wiringPi | |||
# cd wiringPi/ | |||
# git pull origin | |||
# ./build | |||
=== Set up your shell language === | === Set up your shell language === |
Revision as of 11:34, 6 December 2018
The Why Of Fry
I moved to a house and would like to monitor and automate some things:
- log room temperatures
- log outside temperature
- tbd
Preparation
Parts list
- Raspberry Pi (I formerly used this Rev 2 for http://www.wurst-wasser.net/wiki/index.php/Tomat-O-Mat - I have a garden now and don’t need it anymore)
- Power supply for the Pi
- DHT11 (side project RaspberryPi Humidity and Temperature Sensor)
- DS18B20 (side project RaspberryPi Temperature Sensor)
- some resistors, cables, wires, boards, and the usual soldering equipment
Setting up the Pi
Since the Pi was running Debian Wheezy (which is AFAIK obsolete) I decided to install Raspbian Stretch.
- Download it here: https://www.raspberrypi.org/downloads/
I skipped NOOBS and did the installation myself (with help from https://www.raspberrypi.org/documentation/installation/installing-images/README.md and https://www.raspberrypi.org/documentation/installation/installing-images/mac.md ):
# diskutil list […] /dev/disk5 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *15.8 GB disk5 1: Windows_FAT_32 58.7 MB disk5s1 2: Linux 15.8 GB disk5s2 # diskutil unmountDisk /dev/disk5 Unmount of all volumes on disk5 was successful # dd bs=1m if=2018-11-13-raspbian-stretch-full.img of=/dev/rdisk5 conv=sync 5052+0 records in 5052+0 records out 5297405952 bytes transferred in 486.102151 secs (10897722 bytes/sec) # diskutil eject /dev/rdisk5 Disk /dev/rdisk5 ejected #
After that, enable interfaces (ssh, camera port or 1-wire) as needed.
Update the Software
Use the graphical interface or some CLI (apt) tool. Setting up WiFi might help :)
Install Tools
# dpkg --configure -a # apt-get install locate # apt-get install gnuplot # apt-get install git
Since there seems to be no kernel module for DHT11, do this:
# cd /home/pi/var/humidity_and_temperature # git clone git://git.drogon.net/wiringPi # cd wiringPi/ # git pull origin # ./build
Set up your shell language
I strongly recommend keeping your shell (or complete OS) in english.