element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog Top Tip - configuration of openHAB without a PC
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: tekmeister
  • Date Created: 1 Oct 2014 10:58 AM Date Created
  • Views 853 views
  • Likes 1 like
  • Comments 5 comments
  • forget_me_not
  • openhab
  • iot_modern_security
Related
Recommended

Top Tip - configuration of openHAB without a PC

tekmeister
tekmeister
1 Oct 2014

I haven't seen this mentioned yet, so I thought I'd write a quick post.

 

openHAB configuration is controlled by a number of text files, which define the various rules, items, and sitemaps. The format is quite particular and editing directly on the RPi can be tedious.

 

Initially I was using the openHAB designer on my laptop to configure openHAB. It runs on Windows, Linux, and OSX, providing a GUI with which to modify the various files. By also running openHAB on my laptop, I could preview the interface, and then the saved config files were copied to the RPi via SFTP/Samba for deployment.

 

From what I've read, most people involved in the challenge are following this approach. It is somewhat cumbersome, as you need to copy files across manually.

 

When a recent burglary left me without a PC, suddenly I couldn't rely on the openHAB designer. I was looking for an easy way to continue development and testing. I wanted to be able to edit the openHAB configuration directly on the RPi. Unfortunately, the openHAB designer does not run on the RPi, and even if it did, would no doubt be hideously slow.

 

HABmin

 

Enter HABmin. It allows you to control and configure a running instance of openHAB, using a straight-forward GUI.

 

image

 

image

 

It's tremendously easy to install. From your RPi, download the latest release:

 

wget https://github.com/cdjackson/HABmin/releases/download/0.1.3-snapshot/habmin.zip

 

Then unzip to your openHAB folder. In my case this is done with the command:

unzip habmin.zip -d /opt/openhab

 

Restart openHAB and then you can navigate to the HABmin URL: http://<openHAB IP address>:8080/habmin/index.html

 

The HABmin interface isn't perfect, but find the workflow much better than using openHAB designer. It's also more convenient, as you can edit on the fly. Even now, when I have a replacement laptop, I continue to use HABmin to configure my openHAB install.

  • Sign in to reply
Parents
  • michaelwylie
    michaelwylie over 10 years ago

    Neat, I was not aware. I know this won't help you now, but openHAB designer allows you to modify the files directly if you network your Pi with Samba. I really like the look oh HABmin though, I might give it a try.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tekmeister
    tekmeister over 10 years ago in reply to michaelwylie

    I think you'll be hooked after you've tried it. Just remember to click "Save" or the tick to save changes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to tekmeister

    I've been using it for a while, but it doesn't do proper checking on syntax, etc.

    The format of the files is more like plain text, (ie minimal spacing, squashed together, with little extra white space)

     

    Regardless of what you use, you really do need to restart openHAB for the effects to properly migrate.

    http://www.element14.com/community/people/fvan even reboots the RPi which seems to ensure the necessary open files are closed.

     

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • mcb1
    mcb1 over 10 years ago in reply to tekmeister

    I've been using it for a while, but it doesn't do proper checking on syntax, etc.

    The format of the files is more like plain text, (ie minimal spacing, squashed together, with little extra white space)

     

    Regardless of what you use, you really do need to restart openHAB for the effects to properly migrate.

    http://www.element14.com/community/people/fvan even reboots the RPi which seems to ensure the necessary open files are closed.

     

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • tekmeister
    tekmeister over 10 years ago in reply to mcb1

    I haven't actually checked the generated output of HABmin, but to be honest, I'm not overly fussed on formatting as long as it works.

     

    So far I haven't needed to restart openHAB after making changes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to tekmeister
    So far I haven't needed to restart openHAB after making changes.


    I was changing the sensors, so maybe that binding needs to be restarted.


    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube