HOWTO_Windows.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>FHEM on Windows</title>
  5. <script type="text/javascript" src="fhemdoc.js"></script>
  6. <noscript>
  7. <link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
  8. </noscript>
  9. <meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
  10. </head>
  11. <body>
  12. <div id="menuScrollArea">
  13. <div id="logo"></div>
  14. <div id="menu">
  15. <h3>FHEM on Windows</h3>
  16. </div>
  17. </div>
  18. <div id="right">
  19. <h2><a href="fhem.html">FHEM</a> on Windows</h2>
  20. The following description will show you how to install FHEM on Windows on a separate
  21. USB-Drive, without any Windows-registry modifications.
  22. You can use the internal HD for installation too, and you can register fhem as
  23. a service, see below.
  24. <br><br>
  25. <h3>Install FHEM:</h3>
  26. <ul>
  27. Download the latest fhem-X.Y.tar.gz package from http://fhem.de#Download
  28. (currently it is fhem-5.4.tar.gz), and unpack it into a directory where you
  29. have at least 350MB+ free space. I will use F:\tmp for this purpose, after
  30. unpacking the .tar.gz file we will have a new directory F:\tmp\fhem-5.4
  31. </ul>
  32. <h3>Install perl:</h3>
  33. <ul>
  34. Download a Strawberry perl Portable-Edition (this version won't
  35. generate Registry-Entries, and can be installed on USB disks) from
  36. http://strawberryperl.com/releases.html, and extract it into the previously
  37. created directory, in our case F:\tmp\fhem-5.4
  38. My file was called strawberry-perl-5.16.2.1-32bit-portable.zip
  39. </ul>
  40. <h3>Start FHEM:</h3>
  41. <ul>
  42. Open a command line window (cmd), change to the previous directory, and start
  43. FHEM:
  44. <ul><code>
  45. C:> F:<br>
  46. F:> cd \tmp\fhem-5.4<br>
  47. F:\tmp\fhem-5.4> mkdir log<br>
  48. F:\tmp\fhem-5.4> perl\bin\perl fhem.pl fhem.cfg<br>
  49. </code></ul>
  50. Note:
  51. <ul>
  52. There is no visible output and the command won't terminate.
  53. You probably have to confirm a Firewall exception (Do not block), as FHEM
  54. opens a Web-Server Port.
  55. </ul>
  56. </ul>
  57. <h3>Connect to the FHEM Web frontend (FHEMWEB):</h3>
  58. <ul>
  59. Start your browser (Firefox, Chrome or Safari are preferred) and open
  60. <ul><code>
  61. http://localhost:8083/fhem
  62. </code></ul>
  63. You'll see a smiling-house icon on a light-yellow background.
  64. </ul>
  65. <h3>Update FHEM to get access to the latest development version (recommended
  66. but not mandatory):</h3>
  67. <ul>
  68. In the browser window, on the FHEMWEB page, in the command line (upper text
  69. input field, right of the smiling house icon), type in the following 4
  70. commands one-by-one, confirming each one with Enter:
  71. <ul><code>
  72. notice confirm update-20130127-001<br>
  73. attr global backup_before_update 0<br>
  74. save<br>
  75. update<br>
  76. </code></ul>
  77. Note:
  78. <ul>
  79. <li>the last command will take a while (around a minute), and after finished
  80. it will ask you to "shutdown restart". Ignore this, and just type
  81. shutdown in the FHEMWEB command line.
  82. <li>Switch to the command line window, and restart FHEM with the last command,
  83. i.e. arrow up and RETURN or type in again:
  84. <ul><code>
  85. perl\bin\perl fhem.pl fhem.cfg
  86. </ul></code>
  87. </li>
  88. </ul>
  89. </ul>
  90. <h3>Install FHEM as a service (better to install perl on the internal hard-disk
  91. for this scenario):</h3>
  92. <ul>
  93. Terminate fhem by typing shutdown again in the FHEMWEB command line.
  94. Install the missing perl modules by typing in the command window:
  95. <ul><code>
  96. F:\tmp\fhem-5.4> PATH=F:\tmp\fhem-5.4\c\bin;F:\tmp\fhem-5.4\perl\bin;%PATH%<br>
  97. F:\tmp\fhem-5.4> perl\bin\cpan -i Win32::Daemon<br>
  98. F:\tmp\fhem-5.4> perl\bin\cpan -i Win32::Console<br>
  99. </ul></code>
  100. Install FHEM as a service
  101. <ul><code>
  102. F:\tmp\fhem-5.4> perl\bin\perl fhem.pl fhem.cfg -i<br>
  103. </code></ul>
  104. </ul>
  105. </body>