{"id":20427080,"url":"https://github.com/pi4j/pi4j-example-components","last_synced_at":"2025-04-12T19:09:55.946Z","repository":{"id":37900042,"uuid":"414223254","full_name":"Pi4J/pi4j-example-components","owner":"Pi4J","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-03T14:11:11.000Z","size":1627,"stargazers_count":10,"open_issues_count":9,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T19:09:50.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pi4J.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":"2021-10-06T13:28:28.000Z","updated_at":"2025-02-23T17:21:25.000Z","dependencies_parsed_at":"2023-01-20T23:18:04.512Z","dependency_job_id":"ff762fc5-25a7-4721-853d-0709138b6e7b","html_url":"https://github.com/Pi4J/pi4j-example-components","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/Pi4J%2Fpi4j-example-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pi4J%2Fpi4j-example-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pi4J%2Fpi4j-example-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pi4J%2Fpi4j-example-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pi4J","download_url":"https://codeload.github.com/Pi4J/pi4j-example-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618277,"owners_count":21134200,"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":[],"created_at":"2024-11-15T07:18:51.307Z","updated_at":"2025-04-12T19:09:55.908Z","avatar_url":"https://github.com/Pi4J.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"EditPi4J V2 :: Java I/O Library for Raspberry Pi :: Example applications for various components\n===============================================================================================\n\nGitHub Actions:\n![Maven build](https://github.com/pi4j/pi4j-example-serial/workflows/Maven/badge.svg)\n\n## PROJECT OVERVIEW\n\nThis project shows how to use Pi4J with Maven for various electronic components connected to the Raspberry Pi.\n\n## DETAILED INFORMATION\n\nSee [Pi4J website](https://pi4j.com/examples/components/).\n\n## Start application on Pi\n\n\nIt's strongly recommended to use the Linux image [Pi4J-Basic-OS](https://pi4j-download.com/latest.php?flavor=basic) and [IntelliJ IDEA](https://www.jetbrains.com/idea/) as IDE on your developer machine. But, of course, you can use any other IDE and use maven commands to experiment with our component catalogue.\n\nIn IntelliJ IDEA ready-made run-configurations are available for running the demo application on the RaspPi.\n\n## Start application on Raspberry Pi\n- Make sure that Pi and your development machine are in the same WLAN (see recommendations in [Pi4J OS](https://github.com/Pi4J/pi4j-os))\n- Check whether the correct IP-address is set in `pom.xml`\n  - set properties `\u003cpi.hostname\u003e` and `\u003cpi.ipnumber\u003e`\n- `Run on Pi` compiles and packages the demo application on your developer machine, deploys it to Raspberry Pi and starts the demo application remotely on the Raspberry Pi\n\n## Restart application on Raspberry Pi\nOnce you have started the demo application on Raspberry Pi using `Run on Pi`, you can restart it without recompiling\n- `Rerun version on Pi` starts the demo application remotely on the Raspberry Pi without applying any changes\n\n## Start application in debugger\nTo start the application on the Raspberry Pi in debug mode, two run configurations are required: `Debug on Pi` and `Attach to Pi Debugger`.\n\nThe sequence of starting the run configurations is critical:\n1. Check whether the correct IP-address (or hostname) is set in `pom.xml`\n1. Start `Debug on Pi` using the **Run** button \n1. Wait till the following message is displayed in console:  \n`Listening for transport dt_socket at address: 5005 (Attach debugger)`\n1. Start `Attach to Pi Debugger` using the **Debug** button\n1. Only now the demo application is started\n\nNow you can use the debugger from IntelliJ IDEA, setting breakpoints and stepping through the application. \n\nThe output to console is in `Debug on Pi` tab  the debugger output in `Attach to Pi Debugger` tab. You have to switch between these tabs.\n\n## LICENSE\n\nPi4J Version 2.0 and later is licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file\nexcept in compliance with the License. You may obtain a copy of the License at:\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"\nAS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific\nlanguage governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpi4j%2Fpi4j-example-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpi4j%2Fpi4j-example-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpi4j%2Fpi4j-example-components/lists"}