{"id":21666883,"url":"https://github.com/tubbo/grovepi","last_synced_at":"2026-04-17T15:07:19.862Z","repository":{"id":139666413,"uuid":"94046173","full_name":"tubbo/grovepi","owner":"tubbo","description":"[WIP] GrovePi+ library integration for Ruby","archived":false,"fork":false,"pushed_at":"2023-12-15T14:39:48.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T06:47:41.196Z","etag":null,"topics":["grovepi","raspberry-pi","seeedstudio"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tubbo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-12T02:11:05.000Z","updated_at":"2017-06-12T03:26:27.000Z","dependencies_parsed_at":"2024-11-25T11:31:02.784Z","dependency_job_id":"e26dc7bd-7d50-44df-b5e3-b8652684c542","html_url":"https://github.com/tubbo/grovepi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tubbo/grovepi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubbo%2Fgrovepi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubbo%2Fgrovepi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubbo%2Fgrovepi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubbo%2Fgrovepi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tubbo","download_url":"https://codeload.github.com/tubbo/grovepi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubbo%2Fgrovepi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31933785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grovepi","raspberry-pi","seeedstudio"],"created_at":"2024-11-25T11:30:01.995Z","updated_at":"2026-04-17T15:07:19.846Z","avatar_url":"https://github.com/tubbo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrovePi for Ruby\n\nUnofficial bindings for the [GrovePi][] library, allowing you to write\nyour Raspberry Pi software for GrovePi+ in Ruby!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'grovepi'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install grovepi\n\n## Usage\n\nRead the current temperature:\n\n```ruby\nGrovepi.temperature # =\u003e 70\n```\n\nRead the current pH level:\n\n```ruby\nGrovepi.ph # =\u003e 6.83\n```\n\nTurn the LED on and off:\n\n```ruby\nGrovepi.led.active = true\nGrovepi.led.active? # =\u003e true\nGrovepi.led.active = false\nGrovepi.led.active? # =\u003e false\n```\n\n### Low-level API\n\nYou can also use the \"low-level\" API to do raw digital and analog\nreads/writes on the device.\n\nFor example, here is how to perform the above LED functions with the\nlow-level `digitalWrite` and `digitalRead` calls:\n\n```ruby\n# the LED is off..\nGrovepi.digital_read(4)     # =\u003e 0\n# send data bit 1 to port D4 to turn on the LED\nGrovepi.digital_write(4,1)\nGrovepi.digital_read(4)     # =\u003e 1\n# the LED is now on. send data bit 0 to port D4 to turn off the LED\nGrovepi.digital_write(4,0)\nGrovepi.digital_read(4)     # =\u003e 0\n```\n\n## Development\n\nThis gem requires an installation of [Raspbian][], and therefore cannot\nbe compiled on most machines. Provided in this repo is a `Dockerfile`\nwhich describes how to build a Docker container locally for gem testing.\n\nTo build the gem into a Docker container, run:\n\n    docker build .\n\nWhen that's done, you can now run tests in your container:\n\n    docker run 'bin/rake test'\n\nYou can also get a console in your container:\n\n    docker run 'bin/console'\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/tubbo/grovepi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThis Ruby gem is available as open source under the terms of the [MIT\nLicense](http://opensource.org/licenses/MIT). The GrovePi C++ code is\nCopyright (C) 2017 Dexter Industries.\n\n## Code of Conduct\n\nEveryone interacting in the Grovepi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tubbo/grovepi/blob/master/CODE_OF_CONDUCT.md).\n\n[GrovePi]: http://wiki.seeed.cc/GrovePi_Plus/\n[Raspbian]: https://www.raspbian.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftubbo%2Fgrovepi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftubbo%2Fgrovepi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftubbo%2Fgrovepi/lists"}