If you've followed my earlier post, you'll have a Pi with up-to-date packages, and you'll know how to log in.
The next step is to get openHAB up and running.
Java Check
If you are running Raspbian, java is already pre-installed.
Check this by running java -version
Copying files to the Pi
Probably the easiest way to transfer files to/from the Pi is to use SFTP - this is enabled by default on Raspbian. I use the free Filezilla client (WinSCP is another popular free choice).
Enter sftp://<IP address of Pi> in the Filezilla host field, and also input the username and password, then click "Quickconnect". After a successful connection you'll be able to see the remote folder on your Pi and you can copy or move files to/from the device.
Downloading files from the Pi
You can also download directly from the Pi using a tool called wget. For example, the command:
wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-runtime.zip
will download the latest version of the openHAB runtime to the current folder.
Get openHAB
The latest version is 1.50, available from here: openHAB - empowering the smart home
You will need the runtime core and addons.
wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-runtime.zip wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-addons.zip
It's probably a good idea to get the demo setup as well.
wget https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-demo-configuration.zip
Installing openHAB
Well it seems I was beaten to this bit by fvan with his post ForgetMeNot - Week 1: EnOceanPi and Sensors. He has listed a great guide to unzipping the files and starting openHAB on the Pi.
openHAB designer on Windows
In order to run the designer on your Windows PC, you will need to ensure that you have the JVM installed. Installers are available here. If you're not sure which one you need, the "x86 offline" is probably the best bet.
The latest designer release is on the openHAB downloads page. Unzip it and run.
Syncing between Windows and the Pi
I'm still playing with the best way to develop on Windows and then deploy to the Pi. Installing SAMBA and mounting the share (as per the linked post in "Installing openHAB") will also work for a Windows PC, but I don't like to install too much on the Pi. Currently I'm just running a local copy of openHAB on Windows for testing and then transferring files to the Pi with Filezilla. I plan to look into using Swish to mount the SSH folder.
Top Comments