Skip to content

BritishGasHive Using Ruby

Digineut edited this page Apr 27, 2015 · 4 revisions

You Will Need

This looks simple but I created the Ruby Gem for this so you don't have to do the hard work, you could do it all in one script.

One you have Ruby installed you can get the example script from GitHub

Ruby Script

Create a Number item with a binding to call the Ruby script and use the output to update your Number item, obviously change the "OpenHABAlertMe.rb to whatever you called your script.

Number Temperature_Hive "Temperature [%.1f °C]" <temperature> (Living) {exec="<[ruby C:/Tools/Scripts/OpenHABAlertMe.rb:60000:REGEX((.*?))]"}

OpenHAB Item

Here is the event bus update

OpenHAB Update

And the corresponding UI

UI

feature overview

Installation

Setup intro

Linux and OS X

Windows

FreeBSD


Configuration

Automation*

User Interfaces

Persistence


Community

(link to openHAB forum)

Development


Bindings


Application Integration

Misc


Samples

A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Binding configurations

Use case examples

Item definition examples

Sitemap definition examples

Collections of Rules on a single page

Single Rules

Scripts

Syntax highlighting for external editors


Release Notes

Clone this wiki locally
You can’t perform that action at this time.