Coding / Programming Videos

Post your favorite coding videos and share them with others!

Using A Raspberry Pi For Home Automation Part 6 OpenHAB 2

Download Video link >



Using A Raspberry Pi For Home Automation Part 6 OpenHAB 2

Using A Raspberry Pi For Home Automation Part 6

Raspbian Stretch with desktop / 2017-09-07-raspbian-stretch.zip

OpenHAB 2.1 Installation

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install screen mc vim git htop

http://docs.openhab.org/installation/rasppi.html

mkdir ~/zulu
wget http://cdn.azul.com/zulu-embedded/bin/ezdk-1.8.0_152-8.25.0.76-eval-linux_aarch32hf.tar.gz
tar xvfpz ezdk-1.8.0_152-8.25.0.76-eval-linux_aarch32hf.tar.gz -C ~/zulu
sudo update-alternatives –install /usr/bin/java java ~/zulu/ezdk-1.8.0_152-8.25.0.76-eval-linux_aarch32hf/bin/java 100
sudo update-alternatives –config java
java -version

Installing the Zulu open source Java Virtual Machine on Raspberry Pi

sudo adduser –system –no-create-home –group –disabled-login openhab
cd /tmp
wget -O openhab-download.zip https://bintray.com/… https://bintray.com/openhab/mvn/download_file?file_path=org/openhab/distro/openhab/2.1.0/openhab-2.1.0.zip
sudo unzip openhab-download.zip -d /opt/openhab2
rm openhab-download.zip
cd ..
sudo chown -hR openhab:openhab /opt/openhab2
sudo su -s /bin/bash -c ‘/opt/openhab2/start.sh’ openhab
http://your PI IP:8080
sudo nano lib/systemd/system/openhab2.service

[Unit]
Description=The openHAB 2 Home Automation Bus Solution
Documentation=http://docs.openhab.org
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=openhab
Group=openhab
GuessMainPID=yes
WorkingDirectory=/opt/openhab2
#EnvironmentFile=/etc/default/openhab2
ExecStart=/opt/openhab2/start.sh server
ExecStop=/bin/kill -SIGINT $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable openhab2.service
sudo systemctl start openhab2.service
sudo systemctl status openhab2.service

http://docs.openhab.org/installation/linux.html#manual-installation

Other Links:
http://docs.openhab.org/tutorials/beginner/1sttimesetup.html

Part 1 https://www.youtube.com/watch?v=LWBYI-sdu-o
Part 2 https://www.youtube.com/watch?v=IFRA1CLjF2s
Part 3 https://www.youtube.com/watch?v=pV_PdHPRO84
Part 4 https://www.youtube.com/watch?v=iKbkb7eSTBo
Part 5 https://www.youtube.com/watch?v=6TsHOr_Q-Xg
Part 7 https://www.youtube.com/watch?v=6htDrxRqCmQ
Part 8 https://www.youtube.com/watch?v=lgwPHi4mGdM

Part 1 of Part 9 https://www.youtube.com/watch?v=fU1-6sPDbyg
Part 2 of Part 9 https://www.youtube.com/watch?v=SfLzkNKOFjo

Bitchute: https://www.bitchute.com/channel/hasher411
Steemit: https://steemit.com/@hasher411/
Minds: https://www.minds.com/hasher411
Gab: https://gab.ai/Hasher411

source

Bookmark(0)
 

 

View Comments source >

1
Leave a Reply

Please Login to comment
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
trackback

… [Trackback]

[…] Information to that Topic: codingvideos.net/using-a-raspberry-pi-for-home-automation-part-6-openhab-2/ […]

 
Translate »