tested unattended install script on raspbian.ran multiple times, with CTRL-c interrupts.tested unattended install script on dietpi.The script assumes a raspberry pi running raspbian or dietpi, which was setup using one of the embedded links. Make openHAB Demo Installation very easy by automating the previous step using a bash unattended install script. To see the log, enter the command: $ sudo journalctl -f -u rvice $ sudo systemctl -system daemon-reloadįix any issues in the logs. Reload systemd to make the daemon aware of the new configuration. $ sudo nano /usr/lib/systemd/system/rviceĬhange owner recursively on openhab. Make system directory if it doesn't exist and create a start-up file $ sudo mkdir /usr/lib/systemd/system To check if systemd is being used, enter the command: $ ps -p 1 -o comm= Diet-Pi and raspbian use systemd, which is is a linux init system to bootstrap user space and manage processes. Unless running an old version of raspbian, don't use init.d. DHCP might change the ip-address and localhost will keep up with these changes.ĬTRL-o, ENTER, CTRL-x to write and exit nano editor $ sudo cp openhab_default.cfg openhab.cfgĬTRL-w to search for mqtt and uncomment the lines and edit to look like: mqtt:broker.url=tcp://localhost:1883 user=password,user,roleĪdd MQTT binding $ cd /opt/openhab/configurations Even though I am using diet-pi, I created a pi username. The only way to get openHAB to work after stopping is to reboot.Īdd username and password $ sudo nano /opt/openhab/configurations/users.cfgĪnd add the following line, replacing names in spades with real values. I haven't figured out how to recover from stopping openHAB. However, openHAB should really start and run on boot.ĬTRL-z to stop openHAB. Http : //♣ip-address♣:8080/openhab.app?sitemap=demo In the browser, open a new tab and go to (remove spaces around colon): Run the following commands using links and names from above $ cd /opt/openhab ♣demo-setup♣ = ♣https : ///artifact/download/openhab/bin/distribution-1.8.3-demo.zip♣ ♣addons♣ = ♣https : ///artifact/download/openhab/bin/distribution-1.8.3-addons.zip♣ ♣runtime-core♣ = ♣https : ///artifact/download/openhab/bin/distribution-1.8.3-runtime.zip♣ Remember to remove spaces around the colon.Īs of 27MAY2016, the current openHab links for the stable release 1.8.3 are: Https : ///artifact/download/openhab/bin/distribution-1.8.3-runtime.zip Select the link, copy it and paste it to text file. You will see something like this:ĬTRL-Click on Download and Edit Link. To copy a link on a MacBook, hold CTRL and click on link, then select Copy Link In browser, go to openHAB downloads page and copy the following links to text file: The message from window 2 should appear in the first window. Open a second terminal and ssh in $ ssh mosquitto_pub -d -t hello/world -m "Hello from terminal window 2!" Test Mosquito $ mosquitto_sub -d -t hello/world $ sudo apt-get install mosquitto mosquitto-clients $ sudo wget http : ///debian/mosquitto-jessie.list $ sudo apt-get install oracle-java8-jdk -y If not installed, install them $ which java If installed, then you should see /usr/bin/java or /usr/bin/eclipse. Open terminal window and ssh into Raspberry Pi $ ssh update and upgrade $ cd ~/.Ĭheck if java and eclipse are installed. Step-by-step instructions follow, or go to the next step and use an unattended install to do the steps below. My openHab Raspberry Pi is using ♣ip-address♣ = 192.168.1.100.I think the only change if you are using a PC, is to use putty to login and open a terminal window. I use a MacBook but any computer can be used.Setup Raspberry Pi (any model) running raspbian or DietPi.Remove spaces around the colon (https : //).Replace text enclosed in spades with an actual value ♣replace-this♣.openHAB has apt-get install, but it didn't work for me. However, java is operating system independent and uses zip files for installation. In general, raspbian and debian variants use packages enabling simple installation with apt-get. The instructions were verified with 1.8.3, but should work for any new stable version. However, I wanted to install the latest stable version. Home Automation for Geeks' instructions helped me get an old version running (1.7). I struggled with openHAB's installation instructions. openHAB is the leading open-source home automation hub. For many makers, the internet of things is all about home automation. Install latest version of openHAB on Raspberry Pi and get the demo running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |