Mi Casa Verde. You can read the specifications of the devices for yourself but I like them because they are inexpensive, have low-power requirements, are capable of interfacing with a number of different kind of home automation systems, and most importantly, have a documented JSON/XML API. Coincidentally, they also have a developer special program and lack a ruby gem, so another rainy day project is born!
Tag Archives | ruby
Using Ruby with MiOS from Mi Casa Verde
Being Classy with HTTParty
I recently has a use for HTTParty in a project that potentially required multiple base_uri references at the same time. Just changing the base_uri isn’t thread-safe so you can’t do that so the most common way around this with HTTParty is to make an instance variable and pass that around to all of the calls to get/post/etc. I find that a little cumbersome so instead I made use of dynamic classes to hide all of that nonsense.
Cassandra-CQL 1.1.0
It’s been a while since the last release of the cassandra-cql gem, and this version fixes a few long-standing encoding and data-access bugs as well as support for CQL3. The driver now also uses Travis for continuous integration.
Cassandra-cql ruby gem for Cassandra 1.0
Cassandra-cql has been updated for the latest version of cassandra. It supports all of the datatypes and has proper encoding support for ruby 1.9. It is also now published as a gem so a simple ‘gem install cassandra-cql’ should get you ready to roll with Ruby and Cassandra.
The official location for the code is now Google Code but I also use the Cassandra-CQL github repo if you want to participate that way. For a quick introduction on usage, check out the Google Code Wiki.
Enjoy!
Cassandra-CQL, a Ruby CQL client for Cassandra
Cassandra Query Language (CQL)
Cassandra originally went with a Thrift RPC-based API as a way to provide a common denominator that more idiomatic clients could build upon independently. However, this worked poorly in practice: raw Thrift is too low-level to use productively, and keeping pace with new API methods to support (for example) indexes in 0.7 or distributed counters in 0.8 is too much for many maintainers.
CQL, the Cassandra Query Language, addresses this by pushing all implementation details to the server; all the client has to know for any operation is how to interpret “resultset” objects. So adding a feature like counters just requires teaching the CQL parser to understand “column + N” notation; no client-side changes are necessary.
Continue Reading →
- Basic Time Series with Cassandra March 6, 2011
- Understanding the Cassandra Data Model from a SQL Perspective September 13, 2010
- Beware the supercolumn, its a trap for the unwary! December 4, 2010
- Modbus/RTU via TCP Serial Gateway with Ruby July 28, 2010
- Cassandra Data Model from an SQL Perspective – Consistency Level and Replication Factor September 19, 2010
- Using Ruby with MiOS from Mi Casa Verde January 1, 2013
- Being Classy with HTTParty September 24, 2012
- Cassandra-CQL 1.1.0 September 20, 2012
-
Nagios check for WooFramework
April 30, 2012
-
Ruby for Phidgets
December 16, 2011
- Designing timeseries database in Cassandra | BlogoSfera: [...] I looked at this article: http://rubyscale.c...
- Designing timeseries database in Cassandra | BlogoSfera: [...] I looked at this article: http://rubyscale.c...
- Advanced Time Series Metric Data with Cassandra | Syn Fin dot Net: [...] are already a few good resources for doing t...
-
Tacito Alexandro: Simply, fantastic. With little words, you explain...
- Basic Time Series with Cassandra « Another Word For It: [...] Basic Time Series with Cassandra [...]...

