Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

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

Installation


User Interfaces


Community

(link to openHAB forum)

Development



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.

Use case examples

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally