Project

skiff

0.0
No commit activity in last 3 years
No release in over 3 years
DS18b20 One-Wire temperature probe reader.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
>= 0
~> 10.0
~> 3.0
 Project Readme

Skiff

This is Skiff


image

He's very worried about probes...

Lem: A cork?
Skiff: It's your best defense against the aliens' favorite form of research. The probe. You put it...

This gem provides a simple interface to a DS18b20 temperature probe, installed on a Raspberry Pi via the One Wire interface.

Installation

Add this line to your application's Gemfile:

gem 'skiff'

And then execute:

$ bundle

Or install it yourself as:

$ gem install skiff

Usage

# Under Raspbian, the temperature readings are typically
# written to /sys/bus/w1/devices, so that is the default location.
#
# If you need to change it, pass your location in when you create
# the ::Skiff::Manager like this:
# 	manager = ::Skiff::Manager.new your_probe_location

manager = ::Skiff::Manager.new

# to get a list of all the attached probes:

probes = manager.probes

# probes => ["28-0115649922ff", "28-021564c24bff"]

probe = manager.create_probe(probes.first)

# returns an instance of ::Skiff::Probe

# to get the raw temperature of a probe:

temperature = probe.temperature

# or in fahrenheit

fahrenheit = probe.fahrenheit

# and to get all the raw data

raw_data = probe.raw

Development

Don't like something? Need more functionality?

Fork it, write it, create a Pull Request.

Rinse and repeat.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/newellista/skiff.