Preparazione

  1. Scaricare Raspbian dal sito ufficiale http://www.raspberrypi.org/downloads
  2. Scrivere l'immagine sulla sd (>= 4 GB)
    1. # dd bs=1M if=2014-01-07-wheezy-raspbian.img of=/dev/sdd
  3. Collegare console seriale al connettore P1
  4. Entrare in shell user:pi pw:raspberry
  5. Riabilitare root
    1. # sudo passwd root
    2. Entrare la password di root, uscire e riloggarsi
  6. Alternativamente usare la seconda voce del menu di config
    1. # raspi-config
  7. Dallo stesso, alla voce 1) espandere la partizione principale a tutta l'SD, riavviare.
  8. Configurare wifi
    1. Installare WiCd
      1. # apt-get update
      2. # apt-get install wicd-cli wicd-curses
    2. Modificare /etc/network/interfaces lasciando solo
      1. auto lo
        iface lo inet loopback
    3. Configurare la rete (assicurarsi che l'emulatore usi “Esc Keys”)
      1. # wicd-curses
  9. Aggiornare il firmware
    1. # apt-get install rpi-update
    2. # rpi-update
  10. Riavviare e verificare

Installare fhem

  1. Installare perl (normalalmente già presente) e dipendenze accessorie
    1. # apt-get update
    2. # apt-get install perl libdevice-serialport-perl expat libexpat1-dev
    3. # apt-get install libio-socket-ssl-perl libwww-perl
      1. Dopo il warning
    4. # apt-get -f install
  2. Installare modulo XML::Simple
    1. # perl -MCPAN -e shell
    2. cpan> install XML::Simple
  3. Installare fhem
    1. # cd /home
    2. # dpkg -i fhem-5.5.deb
  4. Installare file per moduli PanStamp
    1. # apt-get install subversion
    2. # svn checkout http://panstamp.googlecode.com/svn/trunk/ panstamp-read-only
    3. # cp -r panstamp-read-only/devices/IulianV /opt/fhem/FHEM/lib/SWAP/
  5. Avviare fhem web
    1. # /etc/init.d/fhem start
  6. Verificare se ci sono errori dando 'fheminfo' nella finestra dei comandi
  7. Per l'errore “Missing perl module 'HTTP::Request::Common'”
    1. Installare libreria debian
      1. # apt-get install libwww-perl
    2. Installare moduli perl aggiuntivi
      1. # perl -MCPAN -e shell
        1. cpan[1]> install HTTP::Request::Common
        2. cpan[1]> install Device::SerialPort

Configurare fhem

  1. Entrare nella pagina principale http://192.168.254.253
  2. Configurare panstamp modem arduino
    1. Inserire definizione nel campo di input in alto
    2. define panStick panStamp /dev/ttyACM0@38400

Risorse

raspberry_pi/fhem.txt · Ultima modifica: 2014/11/15 15:50 da cybor
 
Ad eccezione da dove è diversamente indicato, il contenuto di questo wiki è soggetto alla seguente licenza: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki