User Tools

Site Tools


doc:howto:fhem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:fhem [2013/02/17 17:01]
tomk
doc:howto:fhem [2015/06/23 10:31] (current)
philenotfound [Troubleshooting] Remove vandalism
Line 2: Line 2:
  
 ===== Introduction ===== ===== Introduction =====
-FHEM is a software, written in perl, which enables you to manage (eg. EVL) home automation devices over a Webinterface,​ with the Help of a radio transmitting USB Stick (CUL/CUN).+FHEM is a software, written in perl, which enables you to manage (eg. EVL) home automation devices over a Webinterface,​ with the Help of a radio transmitting USB Stick (CUL/CUN). As an alternative to USB Transmitters/​Receivers LAN-devices can be used (CUNO/​HM-CFG-LAN).
 I installed it on a Buffalo WZR-HP-AG300H,​ which has plenty of memory and storage. You might have to install it on an [[doc:​howto:​usb.storage|external usb storage]] or make a swapfile on the usb drive. I installed it on a Buffalo WZR-HP-AG300H,​ which has plenty of memory and storage. You might have to install it on an [[doc:​howto:​usb.storage|external usb storage]] or make a swapfile on the usb drive.
  
Line 18: Line 18:
 Get some required Packages to use the USB Port, the Serial to USB Tool (ser2net) and perl. Get some required Packages to use the USB Port, the Serial to USB Tool (ser2net) and perl.
 <code bash> <code bash>
-opkg install tar perl perlbase-autoloader perlbase-config perlbase-dynaloader perlbase-errno perlbase-essential perlbase-fcntl perlbase-file perlbase-io perlbase-math perlbase-posix perlbase-selectsaver perlbase-socket perlbase-symbol perlbase-tie perlbase-time perlbase-xsloader ser2net kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-acm+opkg install tar perl perlbase-autoloader perlbase-config perlbase-dynaloader perlbase-errno perlbase-essential perlbase-fcntl perlbase-file perlbase-io perlbase-math perlbase-posix perlbase-selectsaver perlbase-socket perlbase-symbol perlbase-tie perlbase-time perlbase-xsloader ​perlbase-mime perlbase-digest perlbase-scalar ​ser2net kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-acm
 </​code>​ </​code>​
  
Line 27: Line 27:
 Copy the fhem.pl to /usr/sbin and the Rest to /​usr/​lib/​fhem. Copy the fhem.pl to /usr/sbin and the Rest to /​usr/​lib/​fhem.
 The default config file that comes with the archive is best placed in /​etc/​config/​fhem/​fhem.cfg. The default config file that comes with the archive is best placed in /​etc/​config/​fhem/​fhem.cfg.
-At last we create a log directory for fhem in /​var/​log/​fhem.+At last we create a log directory for fhem in /​var/​log/​fhem. Please bear in mind that /var/log is reset upon every reboot. Thus fhem will complain about missing log-files. This can be resolved by changing the log-path to something else for example external storage /mnt/sda1.
  
 <code bash> <code bash>
 cd /tmp cd /tmp
-wget http://​fhem.de/​fhem-5.3.tar.gz +wget http://​fhem.de/​fhem-5.5.tar.gz 
-tar xvfz fhem-5.3.tar.gz +tar xvfz fhem-5.5.tar.gz 
-cd fhem-5.3+cd fhem-5.5
 cp fhem.pl /usr/sbin cp fhem.pl /usr/sbin
 mkdir -p /​usr/​lib/​fhem mkdir -p /​usr/​lib/​fhem
Line 108: Line 108:
   fi   fi
    
-  /​usr/​sbin/​fhem.pl /​etc/​config/​fhem+  /​usr/​sbin/​fhem.pl /​etc/​config/​fhem/fhem.cfg
 } }
 stop(){ stop(){
Line 117: Line 117:
   echo "​restarting"​   echo "​restarting"​
   kill -TERM $(cat /​var/​run/​fhem.pid)   kill -TERM $(cat /​var/​run/​fhem.pid)
-  /​usr/​sbin/​fhem.pl /​etc/​config/​fhem+  /​usr/​sbin/​fhem.pl /​etc/​config/​fhem/fhem.cfg
 } }
 </​code>​ </​code>​
Line 182: Line 182:
 chmod 755 /​etc/​init.d/​fhem && chmod 755 /​etc/​init.d/​ser2net chmod 755 /​etc/​init.d/​fhem && chmod 755 /​etc/​init.d/​ser2net
 </​code>​ </​code>​
- 
 ===== Resources ===== ===== Resources =====
  
   * [0] [[https://​groups.google.com/​forum/#​!msg/​fhem-users/​5hhg43UHlDs/​ihV-6s0GCdoJ|Google Groups - fhem-users (Gerhard Pfeffer)]]   * [0] [[https://​groups.google.com/​forum/#​!msg/​fhem-users/​5hhg43UHlDs/​ihV-6s0GCdoJ|Google Groups - fhem-users (Gerhard Pfeffer)]]
   * [1] [[http://​www.fhemwiki.de/​wiki/​OpenWRT]]   * [1] [[http://​www.fhemwiki.de/​wiki/​OpenWRT]]
doc/howto/fhem.1361116893.txt.bz2 · Last modified: 2013/02/17 17:01 by tomk