This project is in development. Please use mit care and only in test mode for now.
The openHAB-cockpit is an web application which allows the management of the openHABian installation. It offers users the possibility to control their server from any browser without the need to use a terminal/ssh connection. Due to this it is a ideal solution for non technical users that use openHAB.
This application requires an installation of openHABian in order to work.
The openHAB-cockpit is based on the cockpit-project. The cockpit-project offers already a great web administration for linux systems. It includes e.g. network and storage management. You can view the system status, check for updates and also use a https based terminal connection.
The openHAB-cockpit is an extension for this cockpit which acts on top and uses predefined api interfaces to communicate with the cockpit-project core. This design is ideal to minimize the development effort and keep the maintainability.
As first step we need to install cockpit itself. We will install this from an abckport repository because we are running on debian (Buster).
- Add debian backports repository
echo 'deb http://deb.debian.org/debian buster-backports main' | sudo tee /etc/apt/sources.list.d/backports.list
- Add apt keys for the repository
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
- Install cockpit
sudo apt update
sudo apt install -t buster-backports cockpit
Now we can install the cockpit addon for openHAB. A later update can be done within the web application.
- Clone the repo and browse to the folder
sudo git clone https://github.com/flo-mic/openHAB-cockpit.git /opt/openhab-cockpit
cd /opt/openhab-cockpit
- Change the file permission for the shell scripts so that they are executable
cd openhab-cockpit
sudo chmod +x src/scripts/*.sh && sudo cp -r dist/*
- Add the app to the known app list of cockpit
sudo ln -s /opt/openhab-cockpit/org.cockpit-project.openhab.metainfo.xml /usr/share/metainfo/org.cockpit-project.openhab.metainfo.xml
You can now access your cockpit under https://openhabiandevice:9090. For the login use your linux credentials (e.g. openhabian/pi). After the login you see a dashboard of your system. Inside the navigation bar you will find the openHAB-cockpit as "openHAB" module.
- The cockpit-project webpage
- The Starter Kit announcement blog post explains the rationale for this project.
- Cockpit Deployment and Developer documentation
- Make your project easily discoverable