REST-based web application in Rails for device readings