{"id":21002500,"url":"https://github.com/pimatic/pimatic-gpio","last_synced_at":"2025-09-10T16:47:03.285Z","repository":{"id":12953302,"uuid":"15631487","full_name":"pimatic/pimatic-gpio","owner":"pimatic","description":"Provides Actuators and Sensors for the Raspberry Pi GPIO Pins.","archived":false,"fork":false,"pushed_at":"2019-05-09T16:54:36.000Z","size":125,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-25T07:51:35.278Z","etag":null,"topics":["gpio","pimatic","pimatic-plugin"],"latest_commit_sha":null,"homepage":"https://pimatic.org/","language":"CoffeeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pimatic.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-04T12:12:32.000Z","updated_at":"2019-05-09T16:54:38.000Z","dependencies_parsed_at":"2022-09-06T11:12:01.527Z","dependency_job_id":null,"html_url":"https://github.com/pimatic/pimatic-gpio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2Fpimatic-gpio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2Fpimatic-gpio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2Fpimatic-gpio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pimatic%2Fpimatic-gpio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pimatic","download_url":"https://codeload.github.com/pimatic/pimatic-gpio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224937477,"owners_count":17395120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["gpio","pimatic","pimatic-plugin"],"created_at":"2024-11-19T08:18:55.444Z","updated_at":"2024-11-19T08:18:55.986Z","avatar_url":"https://github.com/pimatic.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"pimatic-gpio\n============\nActuators and sensors for the Raspberry Pi GPIO pins. This plugin uses the node.js module\n[onoff](https://github.com/fivdi/onoff).\n\nPlugin Configuration\n-------------\nYou can load the plugin by editing your `config.json` to include:\n\n    { \n       \"plugin\": \"gpio\"\n    }\n\nin the `plugins` Array. \n\nDevice Configuration\n-------------\nDevices can be added by adding them to the `devices` Array in the config file.\nSet the `class` property to `GpioSwitch`, `GpioPresence`, or `GpioContact`, respectively. By default, \nthe device state will be `true` , i.e. *on*, *opened*, or *present*, when the GPIO pin is HIGH. If you need \nthe device to be active on LOW, set the property `inverted` to `true`. \n\nThe `GpioSwitch` device additionally provides the optional `defaultState` property which can be used to set the \ninitial switch state to the given value. If the property is not present the last state will be recovered from \ndatabase or it will be set to `false` if the last state cannot be obtained. \n\nFor device configuration options see the [device-config-schema](device-config-schema.coffee) file.\n\n### GPIO Pin Numbering\n\nUse the GPIO numbers from the [RPi Low-level peripherals wiki page](http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29). \n\n### Internal Pull-up and Pull-down Resistors\n\nOn Raspberry Pi, most GPIOs have either their pull-up or pull-down resistor\nactivated by default. For further details, see \n[Configuring pull-up and pull-down resistors](https://github.com/fivdi/onoff#configuring-pullup-and-pulldown-resistors).\n\n### Device examples\n\n#### GpioSwitch Device (\"active LOW\" and \"defaultState\")\n\n    { \n      \"id\": \"led-light\",\n      \"class\": \"GpioSwitch\", \n      \"name\": \"led light\",\n      \"gpio\": 17,\n      \"inverted\": true,\n      \"defaultState\": false\n    }\n\n#### GpioPresence Sensor\n\n    { \n      \"id\": \"presence-sensor\",\n      \"class\": \"GpioPresence\", \n      \"name\": \"motion detector\",\n      \"gpio\": 18 \n    }\n\n#### GpioContact Sensor\n\n    { \n      \"id\": \"contact-sensor\",\n      \"class\": \"GpioContact\", \n      \"name\": \"contact detector\",\n      \"debounceTimeout\": 50,\n      \"gpio\": 18 \n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimatic%2Fpimatic-gpio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpimatic%2Fpimatic-gpio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpimatic%2Fpimatic-gpio/lists"}