==== Preparazione ==== - Scaricare Raspbian dal sito ufficiale [[http://www.raspberrypi.org/downloads]] - Scrivere l'immagine sulla sd (>= 4 GB) - # dd bs=1M if=2014-01-07-wheezy-raspbian.img of=/dev/sdd - Collegare console seriale al connettore P1 {{ :raspberry_pi:gpio-srm.png?direct&100|}} - Entrare in shell user:pi pw:raspberry - Riabilitare root - # sudo passwd root - Entrare la password di root, uscire e riloggarsi - Alternativamente usare la seconda voce del menu di config - # raspi-config - Dallo stesso, alla voce 1) espandere la partizione principale a tutta l'SD, riavviare. - Configurare wifi - Installare WiCd - # apt-get update - # apt-get install wicd-cli wicd-curses - Modificare /etc/network/interfaces lasciando solo -auto lo iface lo inet loopback - Configurare la rete (assicurarsi che l'emulatore usi "Esc Keys") - # wicd-curses - Aggiornare il firmware - # apt-get install rpi-update - # rpi-update - Riavviare e verificare ==== Installare fhem ==== - Installare perl (normalalmente giĆ  presente) e dipendenze accessorie - # apt-get update - # apt-get install perl libdevice-serialport-perl expat libexpat1-dev - # apt-get install libio-socket-ssl-perl libwww-perl - Dopo il warning - # apt-get -f install - Installare modulo XML::Simple - # perl -MCPAN -e shell - cpan> install XML::Simple - Installare fhem - # cd /home - # wget http://fhem.de/fhem-5.5.deb - # dpkg -i fhem-5.5.deb - Installare file per moduli PanStamp - # apt-get install subversion - # svn checkout http://panstamp.googlecode.com/svn/trunk/ panstamp-read-only - # cp -r panstamp-read-only/devices/IulianV /opt/fhem/FHEM/lib/SWAP/ - Avviare fhem web - # /etc/init.d/fhem start - Verificare se ci sono errori dando 'fheminfo' nella finestra dei comandi - Per l'errore "Missing perl module 'HTTP::Request::Common'" - Installare libreria debian - # apt-get install libwww-perl - Installare moduli perl aggiuntivi - # perl -MCPAN -e shell - cpan[1]> install HTTP::Request::Common - cpan[1]> install Device::SerialPort ==== Configurare fhem ==== - Entrare nella pagina principale [[http://192.168.254.253]] - Configurare panstamp modem arduino - Inserire definizione nel campo di input in alto - define panStick panStamp /dev/ttyACM0@38400 ==== Risorse ==== - Fhem/Panstamp Wiki [[http://www.fhemwiki.de/wiki/PanStamp]] - [[http://binerry.de/post/30300770630/introduction-to-home-automation-with-raspberry-pi-and]] - [[http://play.with.free.fr/index.php/tag/fhem/]]