{"id":15779263,"url":"https://github.com/antonfisher/rpi-jenkins-light","last_synced_at":"2026-05-05T09:33:20.216Z","repository":{"id":143907002,"uuid":"48023765","full_name":"antonfisher/rpi-jenkins-light","owner":"antonfisher","description":"Raspberry Pi Jenkins Light on NodeJs","archived":false,"fork":false,"pushed_at":"2018-05-10T07:19:01.000Z","size":649,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T02:25:52.138Z","etag":null,"topics":["jenkins","nodejs","raspberry-pi"],"latest_commit_sha":null,"homepage":"http://antonfisher.com/posts/2016/01/05/make-raspberry-pi-jenkins-traffic-light/","language":"JavaScript","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/antonfisher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2015-12-15T06:20:47.000Z","updated_at":"2018-05-10T07:19:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfffa00d-1761-4d95-8509-914324d22267","html_url":"https://github.com/antonfisher/rpi-jenkins-light","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/antonfisher/rpi-jenkins-light","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonfisher%2Frpi-jenkins-light","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonfisher%2Frpi-jenkins-light/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonfisher%2Frpi-jenkins-light/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonfisher%2Frpi-jenkins-light/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonfisher","download_url":"https://codeload.github.com/antonfisher/rpi-jenkins-light/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonfisher%2Frpi-jenkins-light/sbom","scorecard":{"id":199460,"data":{"date":"2025-08-11","repo":{"name":"github.com/antonfisher/rpi-jenkins-light","commit":"6de3369180d820f5f3775f0692679c9edab43b1b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-16T22:33:52.305Z","repository_id":143907002,"created_at":"2025-08-16T22:33:52.305Z","updated_at":"2025-08-16T22:33:52.305Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32643737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["jenkins","nodejs","raspberry-pi"],"created_at":"2024-10-04T18:03:46.756Z","updated_at":"2026-05-05T09:33:20.174Z","avatar_url":"https://github.com/antonfisher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Jenkins Light\n\n[![build](https://travis-ci.org/antonfisher/rpi-jenkins-light.svg)](https://travis-ci.org/antonfisher/rpi-jenkins-light)\n[![npm](https://img.shields.io/npm/dt/rpi-jenkins-light.svg?maxAge=86400)](https://www.npmjs.com/package/rpi-jenkins-light)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![GitHub license](https://img.shields.io/github/license/antonfisher/rpi-jenkins-light.svg)](https://github.com/antonfisher/rpi-jenkins-light/blob/master/LICENSE)\n![status](https://img.shields.io/badge/status-beta-lightgray.svg)\n\n![Demo](https://raw.githubusercontent.com/antonfisher/rpi-jenkins-light/docs/images/traffic-light-demo.gif)\n\n__Note:__ this package was tested on Raspberry Pi 2.\n\nRead [article about this project](http://antonfisher.com/posts/2016/01/05/make-raspberry-pi-jenkins-traffic-light/).\n\n## Installation\n* SSH to _Raspberry Pi_\n* `$ sudo su` (need for install _Node.js_)\n* Install NodeJs 5.x\n    * Add repository `$ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -`\n    * Run `$ apt-get install nodejs`\n* From _GitHub_ sources:\n    * Clone repository: `$ git clone https://github.com/antonfisher/rpi-jenkins-light.git`\n    * `$ cd rpi-jenkins-light`\n    * Install dependencies: `$ npm install`\n* From _NPM_:\n    * `$ npm install rpi-jenkins-light`.\n\n## Configure\nEdit `$ vim configs/config.js` file:\n\n``` javascript\nmodule.exports = {\n    rpi: {                          // Raspberry Pi sub-config\n        gpio: {                     // GPIO [General Purpose Input Output] config\n            color: {\n                red: 15,            // pin # for red color\n                yellow: 11,         // pin # for yellow color\n                green: 7            // pin # for green color\n            },\n            outputLevel: {\n                on: true,  // 3v3   // led turn on output level\n                off: false // 0v    // led turn off output level\n            }\n        }\n    },\n    jenkins: {                      // Jenkins sub-config\n        interval: 5 * 1000,         // requests interval\n        host: '10.0.0.1',\n        port: '8080',\n        view: 'JenkinsLight',       // http://localhost:8080/view/%VIEW_NAME%/\n        demoMode: true              // demo turn on red-yellow-green lights\n    }\n};\n```\n\n### Demo mode\nTo run light in demo mode set property: `demoMode: true` in `jenkins` section in `configs/config.js`.\n\n### Connect LEDs to Raspberry Pi\nExample config works with this configuration:\n![LEDs connections](https://raw.githubusercontent.com/antonfisher/rpi-jenkins-light/docs/images/schema-simple.png)\n\n### Pins map\n![Pins](https://raw.githubusercontent.com/antonfisher/rpi-jenkins-light/docs/images/rpi-pins-schema.png)\n\n[More about Pi's pins...](http://elinux.org/RPi_Low-level_peripherals)\n\n### Final version\n![Under hood 1](https://raw.githubusercontent.com/antonfisher/rpi-jenkins-light/docs/images/mounted-board.jpg)\n\n![Under hood 2](https://raw.githubusercontent.com/antonfisher/rpi-jenkins-light/docs/images/light-before-close.jpg)\n\n## Configure Jenkins\n* Open _Jenkins_ main page\n* Create new list view called `JenkinsLight`\n* Add monitored tasks to this view.\n\nThe colors indicate (by priority):\n* Blinks yellow -- at least one build is running\n* Red -- at least one build is failed\n* Green -- all builds are OK.\n\n![Jenkins View](https://raw.githubusercontent.com/antonfisher/rpi-jenkins-light/docs/images/create-jenkins-view.png)\n\n## Run\n* `$ sudo su` (need for GPIO module)\n* From _GitHub_ sources:\n    * `$ node run.js`\n* From _NPM_:\n    * `$ node ./node_modules/rpi-jenkins-light/run.js`.\n\n## Autorun application after reboot\n```bash\nsudo su #need for global modules\nnpm install pm2 -g\npm2 startup\npm2 start run.js -o \"/dev/null\" -e \"/dev/null\" #run w/o logging\n# pm2 start run.js #run w/ logging\npm2 save\n```\n\n## Advanced\nDisable ext4 journal:\n```bash\nsudo -i\necho u \u003e /proc/sysrq-trigger \necho s \u003e /proc/sysrq-trigger \ntune2fs -O ^has_journal /dev/mmcblk0p2\ne2fsck -fy /dev/mmcblk0p2\necho s \u003e /proc/sysrq-trigger \necho b \u003e /proc/sysrq-trigger\n```\n\n## Tests\n* Use _NodeJs v5.x_\n* `$ npm install --dev`\n* `$ npm test`.\n\n## Release History\n* 1.1.0 Tests and improvements\n    * configuration examples\n    * test with jenkins mock\n* 1.0.0 Initial release.\n\n## ToDo\n- [x] add link to article\n- [ ] npm global module\n\n## License\nCopyright (c) 2015 Anton Fisher \u003ca.fschr@gmail.com\u003e\n\nMIT License. Free use and change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonfisher%2Frpi-jenkins-light","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonfisher%2Frpi-jenkins-light","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonfisher%2Frpi-jenkins-light/lists"}