sense-api
Version, currently master branch1 version
- master branchlatestSep 3, 2017
github.com/chendo/sense-api.cr
No description declared in shard.yml.
17 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
sense-api:
github: chendo/sense-api.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Jack Chen (chendo) <github@chen.do>
Dependencies
Runtime Dependencies
- cossack~> 0.1github: crystal-community/cossack
README
# Hello Sense API
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.
## Installation
Add this to your application's shard.yml:
```yaml
dependencies:
sense-api:
github: chendo/sense-api.cr
version: ~> 0.1
```
And install dependencies:
```
crystal deps
```
## Usage
```crystal
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))
```
## Contributing
1. Fork it ( https://github.com/[your-github-name]/sense-api/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [chendo](https://github.com/chendo) Jack Chen (chendo) - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 3, 2017
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/chendo/sense-api.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1