Skip to content

BritishGasHive Using Ruby

josephdouce edited this page Mar 9, 2015 · 4 revisions

You Will Need

RUBY https://www.ruby-lang.org/en/documentation/installation/

BritishGasHive Gem [https://rubygems.org/gems/BritishGasHive](BritishGasHive Gem)

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

[https://github.com/josephdouce/rubygem-BritishGasHive](Git Hub)

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.

OpenHAB Item

OpenHAB Update

UI

Installation

###Linux / OS X

###Windows


##Configuration

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.

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally