openhab是什么就不解释了,有不懂的百度,本次记录在cubieboard2 linux上安装openhab,相信搜到这个的肯定是想了解下openhab的,基础知识应该是有的
参考了这个链接上的操作http://docs.openhab.org/installation/linux.html#package-repository-installation
先按jdk
echo"deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | sudo tee/etc/apt/sources.list.d/webupd8team-java.list
echo"deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | sudo tee -a/etc/apt/sources.list.d/webupd8team-java.list
sudo apt-key adv --keyserverhkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
安装openhab
1、add the openHAB 2 Bintray repository key to your package manager and allow Apt to use the HTTPS Protocol:
wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
sudo apt-get install apt-transport-https
2、Add the openHAB 2 Stable Repository to your systems apt sources list:
(原文的,这个没有成功,后面安装openhab2时报Unable to locate package openhab2错误)
echo'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee/etc/apt/sources.list.d/openhab2.list
(使用这个成功了)
echo 'deb http://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
sudo apt-get update
3、Now install openHAB with the following command:
sudo apt-get install openhab2
sudo apt-get install openhab2-addons
设置openhab
sudo/etc/init.d/openhab2 start
sudo/etc/init.d/openhab2 status
sudo update-rc.d openhab2 defaults
You should be able to reach the openHAB 2 portal athttp://openhab-device:8080 at this point. If you’re new to openHAB, then you should checkout the beginner’s tutorial!
在cubieboard2上测试可以使用
runtime文件在/usr/share/openhab2
启动文件在/etc/init.d/openhab2
配置文件在/etc/openhab2
文件位置:
陆续我还会在这个上面做些扩展,搞了快2年了,终于开始有的真正的实现实用了,我要在自己的新家里面搭建出一套真正能用实用的家居自动化控制系统(智能家居系统)。
放个自己在卖的东西的链接,望朋友们多多支持,中央控制器控制舞台灯光的设备
https://item.taobao.com/item.htm?scm=12306.300.0.0&id=38169449132