{"id":4248,"date":"2014-10-02T22:28:54","date_gmt":"2014-10-02T20:28:54","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=4248"},"modified":"2021-11-22T17:15:15","modified_gmt":"2021-11-22T16:15:15","slug":"wie-kann-openhab-und-eine-demo-anwendung-auf-einem-raspberry-pi-debian-installiert-werden","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=4248","title":{"rendered":"Wie kann OpenHab und eine Demo-Anwendung auf einem Raspberry Pi (Debian) installiert werden?"},"content":{"rendered":"<p>Wie kann <a href=\"https:\/\/www.openhab.org\/\" title=\"openhab\" target=\"_blank\" rel=\"noopener noreferrer\">OpenHab<\/a> und eine Demo-Anwendung auf einem Raspberry Pi (Debian) installiert werden?<\/p>\n<p>OpenHab l\u00e4uft auch auf einem Raspberry Pi. Auf <a href=\"https:\/\/de.wikipedia.org\/wiki\/OpenHAB\" title=\"wikipedia\" target=\"_blank\" rel=\"noopener noreferrer\">Wikipedia<\/a> gibt es einen kurzen \u00dcberblick zu <a href=\"https:\/\/de.wikipedia.org\/wiki\/OpenHAB\" title=\"openhabwiki\" target=\"_blank\" rel=\"noopener noreferrer\">OpenHab<\/a>.<\/p>\n<p>Um erste Erfahrungen mit OpenHab zu machen, kann man die Demo Anwendung von OpenHab installieren. Als Basis dient die aktuelle Debian 7.6 Version, auf der schon Java installiert ist.<\/p>\n<p>1. Zuerst checken ob Java installiert ist und l\u00e4uft mit:<\/p>\n<pre class=\"lang:sh decode:true \" >java -version\r\n<\/pre>\n<p>Ausgabe:<\/p>\n<pre class=\"lang:sh decode:true \" >java version \"1.8.0\"\r\nJava(TM) SE Runtime Environment (build 1.8.0-b132)\r\nJava HotSpot(TM) Client VM (build 25.0-b70, mixed mode)<\/pre>\n<p>2.Verzeichnis anlegen<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nmkdir OpenHab\r\ncd OpenHab<\/pre>\n<p>3. Von hier die https:\/\/openhab.ci.cloudbees.com\/job\/openHAB\/<\/p>\n<p>die aktuelle Version 1.6.0 laden und auspacken (erst die runtime und sp\u00e4ter die demo)<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nwget https:\/\/openhab.ci.cloudbees.com\/job\/openHAB\/lastSuccessfulBuild\/artifact\/distribution\/target\/distribution-1.6.0-SNAPSHOT-runtime.zip\r\n\r\n# Archiv auspacken\r\nunzip distribution-1.6.0-SNAPSHOT-runtime.zip\r\n\r\n# Optional: Archiv l\u00f6schen\r\nrm distribution-1.6.0-SNAPSHOT-runtime.zip<\/pre>\n<p>4. Usermod f\u00fcr User pi setzen und default openhab.cfg erstellen<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nsudo usermod -a -G dialout pi\r\n\r\n# Konfigdatei erstellen, alle default Einstellungen\r\ncd \/configurations\r\ncp openhab_default.cfg openhab.cfg\r\ncd ..\r\n<\/pre>\n<p>5. Demo zip laden uns auspacken (eine Readme Datei wird evl. \u00fcberschrieben)<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nwget https:\/\/openhab.ci.cloudbees.com\/job\/openHAB\/lastSuccessfulBuild\/artifact\/distribution\/target\/distribution-1.6.0-SNAPSHOT-demo.zip\r\n\r\n# Demo Anwendung auspacken\r\nunzip distribution-1.6.0-SNAPSHOT-demo.zip\r\n\r\n# Optional: Archive l\u00f6schen\r\nrm distribution-1.6.0-SNAPSHOT-demo.zip\r\n<\/pre>\n<p>6. Starten von OpenHab und im Browser aufrufen (ip anpassen)<\/p>\n<pre class=\"lang:sh decode:true \" >.\/start.sh\r\n<\/pre>\n<p>Ungef\u00e4hr 1 Minute warten&#8230;<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.59.42.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.59.42.png\" alt=\"Bildschirmfoto 2014-10-02 um 21.59.42\" width=\"1197\" height=\"377\" class=\"aligncenter size-full wp-image-4253\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.59.42.png 1197w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.59.42-300x94.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.59.42-1024x322.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.59.42-900x283.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Dann im Browser die folgende URL der Demo Anwendung aufrufen:<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nhttp:\/\/raspberry-ip:8080\/openhab.app?sitemap=demo<\/pre>\n<p>Hier nun einige Fotos, von der Demoanwendung:<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.03.png\" alt=\"Bildschirmfoto 2014-10-02 um 21.56.03\" width=\"916\" height=\"678\" class=\"aligncenter size-full wp-image-4249\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.03.png 916w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.03-300x222.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.03-900x666.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.29.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.29.png\" alt=\"Bildschirmfoto 2014-10-02 um 21.56.29\" width=\"917\" height=\"378\" class=\"aligncenter size-full wp-image-4250\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.29.png 917w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.29-300x123.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.56.29-900x370.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.57.13.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.57.13.png\" alt=\"Bildschirmfoto 2014-10-02 um 21.57.13\" width=\"1001\" height=\"360\" class=\"aligncenter size-full wp-image-4251\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.57.13.png 1001w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.57.13-300x107.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.57.13-900x323.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.58.16.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.58.16.png\" alt=\"Bildschirmfoto 2014-10-02 um 21.58.16\" width=\"1008\" height=\"739\" class=\"aligncenter size-full wp-image-4252\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.58.16.png 1008w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.58.16-300x219.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/10\/Bildschirmfoto-2014-10-02-um-21.58.16-900x659.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Wie nutzt Ihr OpenHab?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wie kann OpenHab und eine Demo-Anwendung auf einem Raspberry Pi (Debian) installiert werden? OpenHab l\u00e4uft auch auf einem Raspberry Pi. Auf Wikipedia gibt es einen kurzen \u00dcberblick zu OpenHab. Um erste Erfahrungen mit OpenHab zu machen, kann man die Demo Anwendung von OpenHab installieren. Als Basis dient die aktuelle Debian 7.6 Version, auf der schon &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=4248\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWie kann OpenHab und eine Demo-Anwendung auf einem Raspberry Pi (Debian) installiert werden?\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[220,852,5,1361,2426,79,1023],"tags":[2184,1691,1536,1689,1688,568,2178,1687,1690],"class_list":["post-4248","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-heimautomatisierung","category-java","category-java-8","category-openhab","category-programmierung","category-raspberry-pi","tag-anleitung","tag-anwendung","tag-automatisch","tag-demo","tag-hausautomatisierung","tag-installation","tag-java","tag-openhab","tag-openhab-demo"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/4248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4248"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/4248\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4248"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}