Disable Serial console login via Raspi-Config - select advanced menu
sudo raspi-config
sudo nano /boot/config.txt
change
enable_uart = 0
to
enable_uart = 1
sudo apt-get install minicom
sudo apt-get install python-serial
reboot
Disable Serial console login via Raspi-Config - select advanced menu
sudo raspi-config
sudo nano /boot/config.txt
change
enable_uart = 0
to
enable_uart = 1
sudo apt-get install minicom
sudo apt-get install python-serial
reboot
Win32DiskImager says SD card too small even though I'm trying to write an 8gb image to an 8gb SD card
Use SDImager.exe instead. It will write disk image until it runs out of room on the SD card. Most Linux images have blank (allocated) space at the end of the image so normally the unwritable data is not important.
https://sourceforge.net/projects/sdimager/
Forget Energenie's own sample. See http://bennuttall.com/whats-new-gpio-zero-v1-2/
https://pypi.python.org/pypi/energenie
from energenie import switch_on, switch_off from time import sleep # turn all plug sockets on and off switch_on() switch_off() # turn a plug socket on and off by number switch_on(3) switch_off(3)
sudo apt-get install python-pip
sudo pip install energenie
sudo apt-get install mysql-client python-mysqldb -y