An API for accessing the data available from a Hello Sense, which is a nice sleep tracking device which can also track temperature, humidity, air quality, noise and brightness.
Add this to your application's shard.yml:
dependencies:
sense-api:
github: chendo/sense-api.cr
version: ~> 0.1
And install dependencies:
crystal deps
require "sense-api"
# Create an instance
client = Sense::API.new(email: "<email>", password: "password")
# or
client = Sense::API.new(access_token: "<access_token>")
pp client.current_sensors
pp client.temperature_by_week
pp client.timeline(Date.new(2016, 01, 01))
- Fork it ( https://github.com/[your-github-name]/sense-api/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- chendo Jack Chen (chendo) - creator, maintainer